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 |
|---|
public final class BeginCreateCredentialResponse.BuilderBuilder for |
Public constructors |
|---|
BeginCreateCredentialResponse( |
Public methods |
|
|---|---|
static final @NonNull Bundle |
asBundle(@NonNull BeginCreateCredentialResponse response)Helper method to convert the class to a parcelable |
static final BeginCreateCredentialResponse |
fromBundle(@NonNull Bundle bundle)Helper method to convert a |
final @NonNull List<@NonNull CreateEntry> |
|
final RemoteEntry |
Public constructors
BeginCreateCredentialResponse
public BeginCreateCredentialResponse(
@NonNull List<@NonNull CreateEntry> createEntries,
RemoteEntry remoteEntry
)
Public methods
asBundle
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
public static final BeginCreateCredentialResponse fromBundle(@NonNull Bundle bundle)
Helper method to convert a Bundle retrieved through asBundle, back to an instance of BeginGetCredentialResponse.