BeginCreateCredentialResponse


public final class BeginCreateCredentialResponse


Response to BeginCreateCredentialRequest.

Credential providers must add a list of CreateEntry, and an optional RemoteEntry to this response.

Each CreateEntry is displayed to the user on the account selector, as an account option where the given credential can be stored. A RemoteEntry is an entry on the selector, through which user can choose to create the credential on a remote device.

Summary

Nested types

Builder for BeginCreateCredentialResponse.

Public constructors

BeginCreateCredentialResponse(
    @NonNull List<@NonNull CreateEntry> createEntries,
    RemoteEntry remoteEntry
)

Public methods

static final @NonNull Bundle

Helper method to convert the class to a parcelable Bundle, in case the class instance needs to be sent across a process.

static final BeginCreateCredentialResponse

Helper method to convert a Bundle retrieved through asBundle, back to an instance of BeginGetCredentialResponse.

final @NonNull List<@NonNull CreateEntry>
final RemoteEntry

Public constructors

BeginCreateCredentialResponse

Added in 1.2.0
public BeginCreateCredentialResponse(
    @NonNull List<@NonNull CreateEntry> createEntries,
    RemoteEntry remoteEntry
)

Public methods

asBundle

Added in 1.2.0
public static final @NonNull Bundle asBundle(@NonNull BeginCreateCredentialResponse response)

Helper method to convert the class to a parcelable Bundle, in case the class instance needs to be sent across a process. Consumers of this method should use fromBundle to reconstruct the class instance back from the bundle returned here.

fromBundle

Added in 1.2.0
public static final BeginCreateCredentialResponse fromBundle(@NonNull Bundle bundle)

Helper method to convert a Bundle retrieved through asBundle, back to an instance of BeginGetCredentialResponse.

getCreateEntries

Added in 1.2.0
public final @NonNull List<@NonNull CreateEntrygetCreateEntries()

getRemoteEntry

Added in 1.2.0
public final RemoteEntry getRemoteEntry()