AdditionalUserInfo
public interface AdditionalUserInfo extends Parcelable
Object that contains additional user information as a result of a successful sign-in, link, or re-authentication operation.
Available information contained within depends on the provider with which a sign-in, link, or re-authenticate operation was most recently done.
Summary
Public methods |
|
|---|---|
abstract @Nullable Map<String, Object> |
Returns a |
abstract @Nullable String |
Returns the provider ID for specifying which provider the information in |
abstract @Nullable String |
Returns the username if the provider is GitHub or Twitter |
abstract boolean |
Returns whether the user is new or existing |
Inherited Constants |
||||
|---|---|---|---|---|
|
Inherited methods |
||||
|---|---|---|---|---|
|
Public methods
getProfile
abstract @Nullable Map<String, Object> getProfile()
Returns a Map containing IDP-specific user data if the provider is one of Facebook, GitHub, Google, Twitter, Microsoft, or Yahoo.
getProviderId
abstract @Nullable String getProviderId()
Returns the provider ID for specifying which provider the information in getProfile is for.
getUsername
abstract @Nullable String getUsername()
Returns the username if the provider is GitHub or Twitter