public class IdpResponse extends Object implements Parcelable
| Modifier and Type | Class and Description |
|---|---|
static class |
IdpResponse.Builder |
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>| Modifier and Type | Field and Description |
|---|---|
static Parcelable.Creator<IdpResponse> |
CREATOR |
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE| Modifier and Type | Method and Description |
|---|---|
int |
describeContents() |
boolean |
equals(Object o) |
static IdpResponse |
from(Exception e) |
static IdpResponse |
fromResultIntent(Intent resultIntent)
Extract the
IdpResponse from the flow's result intent. |
com.google.firebase.auth.AuthCredential |
getCredentialForLinking() |
String |
getEmail()
Get the email used to sign in.
|
FirebaseUiException |
getError()
Get the error for a failed sign in.
|
static Intent |
getErrorIntent(Exception e) |
String |
getIdpSecret()
Twitter only.
|
String |
getIdpToken()
Get the token received as a result of logging in with the specified IDP
|
String |
getPhoneNumber()
Get the phone number used to sign in.
|
String |
getProviderType()
Get the type of provider.
|
User |
getUser() |
boolean |
hasCredentialForLinking() |
int |
hashCode() |
boolean |
isNewUser()
Returns true if this user has just signed up, false otherwise.
|
boolean |
isRecoverableErrorResponse() |
boolean |
isSuccessful() |
IdpResponse.Builder |
mutate() |
Intent |
toIntent() |
String |
toString() |
IdpResponse |
withResult(com.google.firebase.auth.AuthResult result) |
void |
writeToParcel(Parcel dest,
int flags) |
public static final Parcelable.Creator<IdpResponse> CREATOR
@Nullable public static IdpResponse fromResultIntent(@Nullable Intent resultIntent)
IdpResponse from the flow's result intent.resultIntent - The intent which onActivityResult was called with.@NonNull public static IdpResponse from(@NonNull Exception e)
@NonNull public IdpResponse withResult(com.google.firebase.auth.AuthResult result)
@NonNull public Intent toIntent()
@NonNull public IdpResponse.Builder mutate()
public boolean isSuccessful()
public User getUser()
@Nullable public String getProviderType()
GoogleAuthProvider.PROVIDER_IDpublic boolean isNewUser()
@Nullable public String getEmail()
@Nullable public String getPhoneNumber()
@Nullable public String getIdpToken()
@Nullable public String getIdpSecret()
@Nullable public FirebaseUiException getError()
@Nullable public com.google.firebase.auth.AuthCredential getCredentialForLinking()
@Nullable public boolean hasCredentialForLinking()
public boolean isRecoverableErrorResponse()
public int describeContents()
describeContents in interface Parcelablepublic void writeToParcel(Parcel dest, int flags)
writeToParcel in interface Parcelable