AI-generated Key Takeaways
-
The SignInCredential class is deprecated and you should use Credential Manager instead.
-
This class represents the credential returned after a successful sign-in, with the specific data depending on the credential type used.
-
The
getId()method returns the identifier of the credential, which can be an email address or username. -
The
getPhoneNumber()method is deprecated with no replacement.
This class is deprecated.
Use Credential Manager
instead.
The credential returned as a result of a successful sign-in. Data returned within this object depends on the type of credential that user has selected; for example a password is returned only when a password-backed credential was selected.
Inherited Constant Summary
Field Summary
| public static final Creator<SignInCredential> | CREATOR |
Public Method Summary
| boolean | |
| String | |
| String | |
| String | |
| String | |
| String |
getId()
Returns the identifier of the credential.
|
| String | |
| String |
getPhoneNumber()
This method is deprecated. No replacement.
|
| Uri | |
| PublicKeyCredential |
getPublicKeyCredential()
Returns
publicKeyCredential.
|
| int |
hashCode()
|
| void |
writeToParcel(Parcel dest, int
flags)
|
Inherited Method Summary
Fields
public static final Creator<SignInCredential> CREATOR
Public Methods
public boolean equals (Object o)
public String getDisplayName ()
public String getFamilyName ()
public String getGivenName ()
public String getGoogleIdToken ()
public String getId ()
Returns the identifier of the credential. For an ID token credential, this returns the email address of the user's account and for a password-backed credential, it returns the username for that password.
public String getPassword ()
public String getPhoneNumber ()
This method is deprecated.
No replacement.
public Uri getProfilePictureUri ()
public PublicKeyCredential getPublicKeyCredential ()
Returns publicKeyCredential.