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<StringObject>

Returns a Map containing IDP-specific user data if the provider is one of Facebook, GitHub, Google, Twitter, Microsoft, or Yahoo.

abstract @Nullable String

Returns the provider ID for specifying which provider the information in getProfile is for.

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

From android.os.Parcelable
default static final int
default static final int
default static final int
default static final int

Inherited methods

From android.os.Parcelable
abstract int
default int
abstract void
writeToParcel(Parcel p, int p1)

Public methods

getProfile

abstract @Nullable Map<StringObjectgetProfile()

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

isNewUser

abstract boolean isNewUser()

Returns whether the user is new or existing