UserProfile

public class UserProfile

The user’s profile information. Different authentication services provide different user information which is used to fill instances of this class.

  • id

    The user’s ID.

    Declaration

    Swift

    public var id: String
  • The authenticating service used to authenticate the user.

    Declaration

    Swift

    public var provider: String
  • The user’s name the way it should be displayed.

    Declaration

    Swift

    public var displayName: String
  • A structure for the user’s name.

    See more

    Declaration

    Swift

    public struct UserProfileName
  • The user’s name (optional).

    Declaration

    Swift

    public var name: UserProfileName?
  • A structure for user’s email address.

    See more

    Declaration

    Swift

    public struct UserProfileEmail
  • An optional array of the user’s email addresses.

    Declaration

    Swift

    public var emails: [UserProfileEmail]?
  • A structure for the user’s photo.

    See more

    Declaration

    Swift

    public struct UserProfilePhoto
  • An optional array of the user’s photos.

    Declaration

    Swift

    public var photos: [UserProfilePhoto]?
  • A dictionary of additional properties. The values have to be serializable.

    Declaration

    Swift

    public var extendedProperties: [String : Any]
  • Initialize a UserProfile instance.

    Declaration

    Swift

    public init(id: String, displayName: String, provider: String, name: UserProfileName? = nil, emails: [UserProfileEmail]? = nil, photos: [UserProfilePhoto]? = nil, extendedProperties: [String : Any]? = nil)

    Parameters

    id

    The user’s ID.

    displayName

    The user’s name to display.

    provider

    The authenticating service.

    name

    The user’s name.

    emails

    The user’s email addresses.

    photos

    The user’s photos.

    extendedProperties

    A dictionary of additional properties. The values have to be serializable.