com.google.firebase.auth.UserInfo |
![]() |
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.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns the user's display name, if available.
| |||||||||||
Returns the email address corresponding to the user's account in the
specified provider, if available.
| |||||||||||
Returns the phone number corresponding to the user's account, if available, or
null
if none exists. | |||||||||||
Returns a
Uri to the user's profile picture, if available. | |||||||||||
Returns the unique identifier of the provider type that this instance
corresponds to.
| |||||||||||
Returns a user identifier as specified by the authentication provider.
| |||||||||||
Returns
true if the user's email is verified. |
Returns the user's display name, if available.
Returns | |
---|---|
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.
Returns | |
---|---|
String |
Returns the phone number corresponding to the user's account, if available, or null
if none exists.
Returns | |
---|---|
String |
Returns a Uri
to the user's profile picture, if available.
Returns | |
---|---|
Uri |
Returns the unique identifier of the provider type that this instance
corresponds to. For example, PROVIDER_ID
or
PROVIDER_ID
.
Returns | |
---|---|
String |
Returns a user identifier as specified by the authentication provider. For example, if this object corresponds to a Google user, returns a Google user ID. For phone number accounts, the UID will be the normalized phone number in E.164 format.
Returns | |
---|---|
String |
Returns true
if the user's email is verified.
Returns | |
---|---|
boolean |