ProviderGetCredentialRequest

Added in 1.0.0-alpha01

public final class ProviderGetCredentialRequest


Summary

Public methods

static final String

Returns the id of the entry selected by the user.

Public methods

public static final String getSelectedEntryId(@NonNull ProviderGetCredentialRequest receiver)

Returns the id of the entry selected by the user. For example, for a digital credential entry, this maps to the corresponding entry's DigitalCredentialEntry.id.

A null return means that entry ID isn't supported for the given type of the use case at all. For example, a androidx.credentials.provider.PasswordCredentialEntry does not have an id property and so this getter will return null if the selected entry was a password credential.