GetCredentialResponse

public final class GetCredentialResponse implements Parcelable


A response from the get-credential operation.

Summary

Public constructors

GetCredentialResponse(
    @NonNull Credential credential,
    List<@NonNull Credential> credentialList
)

constructs an instance of GetCredentialResponse

Public methods

final @NonNull Credential

the credential that was returned

final @NonNull List<@NonNull Credential>

The list of credentials returned by the provider(s).

void
writeToParcel(@NonNull Parcel dest, int flags)

Public fields

CREATOR

public static final @NonNull Parcelable.Creator<@NonNull GetCredentialResponseCREATOR

Public constructors

GetCredentialResponse

public GetCredentialResponse(@NonNull Credential credential)

GetCredentialResponse

public GetCredentialResponse(@NonNull List<@NonNull Credential> credentials)

GetCredentialResponse

public GetCredentialResponse(
    @NonNull Credential credential,
    List<@NonNull Credential> credentialList
)

constructs an instance of GetCredentialResponse

Parameters
@NonNull Credential credential

the credential that was returned

List<@NonNull Credential> credentialList

the backing list of credentials used for parceling

Public methods

getCredential

public final @NonNull Credential getCredential()

the credential that was returned

getCredentials

public final @NonNull List<@NonNull CredentialgetCredentials()

The list of credentials returned by the provider(s).

In multi-provider scenarios, this will hold all successfully accumulated credentials. For single-provider scenarios or backward compatibility with older GMS Core versions, this will cleanly fall back to a list containing only the single credential.

writeToParcel

public void writeToParcel(@NonNull Parcel dest, int flags)