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.
-
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 moreDeclaration
Swift
public struct UserProfileName -
The user’s name (optional).
Declaration
Swift
public var name: UserProfileName? -
A structure for user’s email address.
See moreDeclaration
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 moreDeclaration
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
UserProfileinstance.Declaration
Swift
public init(id: String, displayName: String, provider: String, name: UserProfileName? = nil, emails: [UserProfileEmail]? = nil, photos: [UserProfilePhoto]? = nil, extendedProperties: [String : Any]? = nil)Parameters
idThe user’s ID.
displayNameThe user’s name to display.
providerThe authenticating service.
nameThe user’s name.
emailsThe user’s email addresses.
photosThe user’s photos.
extendedPropertiesA dictionary of additional properties. The values have to be serializable.
View on GitHub
UserProfile Class Reference