# RegistryManagerProvider

Artifact: [androidx.credentials.registry:registry-provider](https://developer.android.com/jetpack/androidx/releases/credentials-registry) [View Source](https://cs.android.com/search?q=file:androidx/credentials/registry/provider/RegistryManagerProvider.kt+class:androidx.credentials.registry.provider.RegistryManagerProvider) Added in [1.0.0-alpha05](https://developer.android.com/jetpack/androidx/releases/credentials-registry#1.0.0-alpha05)

*** ** * ** ***


```
interface RegistryManagerProvider
```

<br />

*** ** * ** ***

Provider interface to be implemented by a system registry manager service provider that will fulfill `https://developer.android.com/reference/kotlin/androidx/credentials/registry/provider/RegistryManager` requests. The implementation **must** have a constructor that takes in a context.

## Summary

| ### Public functions |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/credentials/registry/provider/RegistryManagerProvider#isAvailable()()` Returns true if the provider is available on this device, or otherwise false. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/credentials/registry/provider/RegistryManagerProvider#onClearCreationOptions(androidx.credentials.registry.provider.ClearCreationOptionsRequest,java.util.concurrent.Executor,androidx.credentials.CredentialManagerCallback)( request: https://developer.android.com/reference/kotlin/androidx/credentials/registry/provider/ClearCreationOptionsRequest, executor: https://developer.android.com/reference/java/util/concurrent/Executor.html, callback: https://developer.android.com/reference/kotlin/androidx/credentials/CredentialManagerCallback<https://developer.android.com/reference/kotlin/androidx/credentials/registry/provider/ClearCreationOptionsResponse, https://developer.android.com/reference/kotlin/androidx/credentials/registry/provider/ClearCreationOptionsException> )` Invoked on a request to clear creation options. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/credentials/registry/provider/RegistryManagerProvider#onClearCredentialRegistry(androidx.credentials.registry.provider.ClearCredentialRegistryRequest,java.util.concurrent.Executor,androidx.credentials.CredentialManagerCallback)( request: https://developer.android.com/reference/kotlin/androidx/credentials/registry/provider/ClearCredentialRegistryRequest, executor: https://developer.android.com/reference/java/util/concurrent/Executor.html, callback: https://developer.android.com/reference/kotlin/androidx/credentials/CredentialManagerCallback<https://developer.android.com/reference/kotlin/androidx/credentials/registry/provider/ClearCredentialRegistryResponse, https://developer.android.com/reference/kotlin/androidx/credentials/registry/provider/ClearCredentialRegistryException> )` Invoked on a request to clear credential registries. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/credentials/registry/provider/RegistryManagerProvider#onRegisterCreationOptions(androidx.credentials.registry.provider.RegisterCreationOptionsRequest,android.os.CancellationSignal,java.util.concurrent.Executor,androidx.credentials.CredentialManagerCallback)( request: https://developer.android.com/reference/kotlin/androidx/credentials/registry/provider/RegisterCreationOptionsRequest, cancellationSignal: https://developer.android.com/reference/android/os/CancellationSignal.html?, executor: https://developer.android.com/reference/java/util/concurrent/Executor.html, callback: https://developer.android.com/reference/kotlin/androidx/credentials/CredentialManagerCallback<https://developer.android.com/reference/kotlin/androidx/credentials/registry/provider/RegisterCreationOptionsResponse, https://developer.android.com/reference/kotlin/androidx/credentials/registry/provider/RegisterCreationOptionsException> )` Invoked on a request to register creation options. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/credentials/registry/provider/RegistryManagerProvider#onRegisterCredentials(androidx.credentials.registry.provider.RegisterCredentialsRequest,android.os.CancellationSignal,java.util.concurrent.Executor,androidx.credentials.CredentialManagerCallback)( request: https://developer.android.com/reference/kotlin/androidx/credentials/registry/provider/RegisterCredentialsRequest, cancellationSignal: https://developer.android.com/reference/android/os/CancellationSignal.html?, executor: https://developer.android.com/reference/java/util/concurrent/Executor.html, callback: https://developer.android.com/reference/kotlin/androidx/credentials/CredentialManagerCallback<https://developer.android.com/reference/kotlin/androidx/credentials/registry/provider/RegisterCredentialsResponse, https://developer.android.com/reference/kotlin/androidx/credentials/registry/provider/RegisterCredentialsException> )` Invoked on a request to register a credential. |

## Public functions

### isAvailable

Added in [1.0.0-alpha05](https://developer.android.com/jetpack/androidx/releases/credentials-registry#1.0.0-alpha05)

```
fun isAvailable(): Boolean
```

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

### onClearCreationOptions

Added in [1.0.0-alpha05](https://developer.android.com/jetpack/androidx/releases/credentials-registry#1.0.0-alpha05)

```
fun onClearCreationOptions(
    request: ClearCreationOptionsRequest,
    executor: Executor,
    callback: CredentialManagerCallback<ClearCreationOptionsResponse, ClearCreationOptionsException>
): Unit
```

Invoked on a request to clear creation options.

| Parameters |
|---|---|
| `request: https://developer.android.com/reference/kotlin/androidx/credentials/registry/provider/ClearCreationOptionsRequest` | the request to specify clearing configurations |
| `executor: https://developer.android.com/reference/java/util/concurrent/Executor.html` | the callback will take place on this executor |
| `callback: https://developer.android.com/reference/kotlin/androidx/credentials/CredentialManagerCallback<https://developer.android.com/reference/kotlin/androidx/credentials/registry/provider/ClearCreationOptionsResponse, https://developer.android.com/reference/kotlin/androidx/credentials/registry/provider/ClearCreationOptionsException>` | the callback invoked when the request succeeds or fails |

### onClearCredentialRegistry

Added in [1.0.0-alpha05](https://developer.android.com/jetpack/androidx/releases/credentials-registry#1.0.0-alpha05)

```
fun onClearCredentialRegistry(
    request: ClearCredentialRegistryRequest,
    executor: Executor,
    callback: CredentialManagerCallback<ClearCredentialRegistryResponse, ClearCredentialRegistryException>
): Unit
```

Invoked on a request to clear credential registries.

| Parameters |
|---|---|
| `request: https://developer.android.com/reference/kotlin/androidx/credentials/registry/provider/ClearCredentialRegistryRequest` | the request to specify clearing configurations |
| `executor: https://developer.android.com/reference/java/util/concurrent/Executor.html` | the callback will take place on this executor |
| `callback: https://developer.android.com/reference/kotlin/androidx/credentials/CredentialManagerCallback<https://developer.android.com/reference/kotlin/androidx/credentials/registry/provider/ClearCredentialRegistryResponse, https://developer.android.com/reference/kotlin/androidx/credentials/registry/provider/ClearCredentialRegistryException>` | the callback invoked when the request succeeds or fails |

### onRegisterCreationOptions

Added in [1.0.0-alpha05](https://developer.android.com/jetpack/androidx/releases/credentials-registry#1.0.0-alpha05)

```
fun onRegisterCreationOptions(
    request: RegisterCreationOptionsRequest,
    cancellationSignal: CancellationSignal?,
    executor: Executor,
    callback: CredentialManagerCallback<RegisterCreationOptionsResponse, RegisterCreationOptionsException>
): Unit
```

Invoked on a request to register creation options.

| Parameters |
|---|---|
| `request: https://developer.android.com/reference/kotlin/androidx/credentials/registry/provider/RegisterCreationOptionsRequest` | the request containing the creation options to register |
| `cancellationSignal: https://developer.android.com/reference/android/os/CancellationSignal.html?` | an optional signal that allows for cancelling this call |
| `executor: https://developer.android.com/reference/java/util/concurrent/Executor.html` | the callback will take place on this executor |
| `callback: https://developer.android.com/reference/kotlin/androidx/credentials/CredentialManagerCallback<https://developer.android.com/reference/kotlin/androidx/credentials/registry/provider/RegisterCreationOptionsResponse, https://developer.android.com/reference/kotlin/androidx/credentials/registry/provider/RegisterCreationOptionsException>` | the callback invoked when the request succeeds or fails |

### onRegisterCredentials

Added in [1.0.0-alpha05](https://developer.android.com/jetpack/androidx/releases/credentials-registry#1.0.0-alpha05)

```
fun onRegisterCredentials(
    request: RegisterCredentialsRequest,
    cancellationSignal: CancellationSignal?,
    executor: Executor,
    callback: CredentialManagerCallback<RegisterCredentialsResponse, RegisterCredentialsException>
): Unit
```

Invoked on a request to register a credential.

| Parameters |
|---|---|
| `request: https://developer.android.com/reference/kotlin/androidx/credentials/registry/provider/RegisterCredentialsRequest` | the request containing the credential data to register |
| `cancellationSignal: https://developer.android.com/reference/android/os/CancellationSignal.html?` | an optional signal that allows for cancelling this call |
| `executor: https://developer.android.com/reference/java/util/concurrent/Executor.html` | the callback will take place on this executor |
| `callback: https://developer.android.com/reference/kotlin/androidx/credentials/CredentialManagerCallback<https://developer.android.com/reference/kotlin/androidx/credentials/registry/provider/RegisterCredentialsResponse, https://developer.android.com/reference/kotlin/androidx/credentials/registry/provider/RegisterCredentialsException>` | the callback invoked when the request succeeds or fails |