# PrepareGetCredentialResponse.PendingGetCredentialHandle

Artifact: [androidx.credentials:credentials](https://developer.android.com/jetpack/androidx/releases/credentials) [View Source](https://cs.android.com/search?q=file:androidx/credentials/PrepareGetCredentialResponse.kt+class:androidx.credentials.PrepareGetCredentialResponse.PendingGetCredentialHandle) Added in [1.2.0](https://developer.android.com/jetpack/androidx/releases/credentials#1.2.0)

*** ** * ** ***

<br />

```
@RequiresApi(value = 34)
public final class PrepareGetCredentialResponse.PendingGetCredentialHandle
```

<br />

*** ** * ** ***

A handle that represents a pending get-credential operation. Pass this handle to `https://developer.android.com/reference/androidx/credentials/CredentialManager#getCredential(android.content.Context,androidx.credentials.GetCredentialRequest)` or `https://developer.android.com/reference/androidx/credentials/CredentialManager#getCredentialAsync(android.content.Context,androidx.credentials.GetCredentialRequest,android.os.CancellationSignal,java.util.concurrent.Executor,androidx.credentials.CredentialManagerCallback)` to perform the remaining flows to officially retrieve a credential.

| Throws |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-null-pointer-exception/index.html` | If `https://developer.android.com/reference/androidx/credentials/PrepareGetCredentialResponse.PendingGetCredentialHandle#frameworkHandle()` is null at API level \>= 34. |

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/androidx/credentials/PrepareGetCredentialResponse.PendingGetCredentialHandle#PendingGetCredentialHandle(android.credentials.PrepareGetCredentialResponse.PendingGetCredentialHandle)( https://developer.android.com/reference/android/credentials/PrepareGetCredentialResponse.PendingGetCredentialHandle.html frameworkHandle )` |

## Public constructors

### PendingGetCredentialHandle

Added in [1.2.0](https://developer.android.com/jetpack/androidx/releases/credentials#1.2.0)

```
public PendingGetCredentialHandle(
    PrepareGetCredentialResponse.PendingGetCredentialHandle frameworkHandle
)
```

| Parameters |
|---|---|
| `https://developer.android.com/reference/android/credentials/PrepareGetCredentialResponse.PendingGetCredentialHandle.html frameworkHandle` | the framework handle representing this pending operation. Must not be null at API level \>= 34. |