UserInfo
interface UserInfo
FirebaseUser |
Represents a user's profile information in your Firebase project's user database. |
Represents a collection of standard profile information for a user. Can be used to expose profile information returned by an identity provider, such as Google Sign-In or Facebook Login.
Summary
Public functions |
|
|---|---|
String? |
Returns the user's display name, if available. |
String? |
getEmail()Returns the email address corresponding to the user's account in the specified provider, if available. |
String? |
Returns the phone number corresponding to the user's account, if available, or |
Uri? |
Returns a |
String |
Returns the unique identifier of the provider type that this instance corresponds to. |
String |
getUid()Returns a user identifier as specified by the authentication provider. |
Boolean |
Returns |
Public functions
getEmail
fun getEmail(): String?
Returns the email address corresponding to the user's account in the specified provider, if available. Some authentication providers, like Twitter, do not contain an email address. Others, like Facebook Login, contain it optionally.
getPhoneNumber
fun getPhoneNumber(): String?
Returns the phone number corresponding to the user's account, if available, or null if none exists.
getProviderId
fun getProviderId(): String
Returns the unique identifier of the provider type that this instance corresponds to. For example, PROVIDER_ID or PROVIDER_ID.