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 functions

Boolean

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

Unit

Invoked on a request to get a credential.

Public functions

isAvailable

Added in 1.0.0-alpha01
fun isAvailable(): Boolean

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

onRegisterCredentials

Added in 1.0.0-alpha01
fun onRegisterCredentials(
    request: RegisterCredentialsRequest,
    cancellationSignal: CancellationSignal?,
    executor: Executor,
    callback: CredentialManagerCallback<RegisterCredentialsResponseRegisterCredentialsException>
): Unit

Invoked on a request to get a credential.

Parameters
request: RegisterCredentialsRequest

the request containing the credential data to register

cancellationSignal: CancellationSignal?

an optional signal that allows for cancelling this call

executor: Executor

the callback will take place on this executor

callback: CredentialManagerCallback<RegisterCredentialsResponseRegisterCredentialsException>

the callback invoked when the request succeeds or fails