CreateCredentialHandle

public final class CreateCredentialHandle implements Parcelable


Returns a response for the IdentityCredentialClient.createCredential API that can be used to launch the credential selector UIs to finalize on a credential of the user's choice that can be used for app sign-in, or the actual credential response itself if no UI is needed.

Summary

Public constructors

CreateCredentialHandle(
    PendingIntent pendingIntent,
    CreateCredentialResponse createCredentialResponse
)

constructs an instance of CreateCredentialHandle

Public methods

final int
final CreateCredentialResponse

the CreateCredentialResponse if no UI is needed

final PendingIntent

the PendingIntent to launch the credential selector UI

void
writeToParcel(@NonNull Parcel dest, int flags)

Public fields

CREATOR

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

Public constructors

CreateCredentialHandle

public CreateCredentialHandle(
    PendingIntent pendingIntent,
    CreateCredentialResponse createCredentialResponse
)

constructs an instance of CreateCredentialHandle

Parameters
PendingIntent pendingIntent

the PendingIntent to launch the credential selector UI

CreateCredentialResponse createCredentialResponse

the CreateCredentialResponse if no UI is needed

Public methods

describeContents

public final int describeContents()

getCreateCredentialResponse

public final CreateCredentialResponse getCreateCredentialResponse()

the CreateCredentialResponse if no UI is needed

getPendingIntent

public final PendingIntent getPendingIntent()

the PendingIntent to launch the credential selector UI

writeToParcel

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