UserInfo

public interface UserInfo
Known Indirect Subclasses

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 Method Summary

abstract String
getDisplayName()
Returns the user's display name, if available.
abstract String
getEmail()
Returns the email address corresponding to the user's account in the specified provider, if available.
abstract Uri
getPhotoUrl()
Returns a Uri to the user's profile picture, if available.
abstract String
getProviderId()
Returns the unique identifier of the provider type that this instance corresponds to.
abstract String
getUid()
Returns a user identifier as specified by the authentication provider.
abstract boolean
isEmailVerified()
Returns true if the user's email is verified.

Public Methods

public abstract String getDisplayName ()

Returns the user's display name, if available.

public abstract String getEmail ()

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.

public abstract Uri getPhotoUrl ()

Returns a Uri to the user's profile picture, if available.

public abstract String getProviderId ()

Returns the unique identifier of the provider type that this instance corresponds to. For example, PROVIDER_ID or PROVIDER_ID.

public abstract String getUid ()

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.

public abstract boolean isEmailVerified ()

Returns true if the user's email is verified.

Send feedback about...

Need help? Visit our support page.