public interface RegistryManagerProvider


Provider interface to be implemented by a system registry manager service provider that will fulfill RegistryManager requests. The implementation must have a constructor that takes in a context.

Summary

Public methods

abstract boolean

Returns true if the provider is available on this device, or otherwise false.

abstract void

Invoked on a request to get a credential.

Public methods

isAvailable

Added in 1.0.0-alpha01
abstract boolean isAvailable()

Returns true if the provider is available on this device, or otherwise false.

onRegisterCredentials

Added in 1.0.0-alpha01
abstract void onRegisterCredentials(
    @NonNull RegisterCredentialsRequest request,
    CancellationSignal cancellationSignal,
    @NonNull Executor executor,
    @NonNull CredentialManagerCallback<@NonNull RegisterCredentialsResponse, @NonNull RegisterCredentialsException> callback
)

Invoked on a request to get a credential.

Parameters
@NonNull RegisterCredentialsRequest request

the request containing the credential data to register

CancellationSignal cancellationSignal

an optional signal that allows for cancelling this call

@NonNull Executor executor

the callback will take place on this executor

@NonNull CredentialManagerCallback<@NonNull RegisterCredentialsResponse, @NonNull RegisterCredentialsException> callback

the callback invoked when the request succeeds or fails