# ProviderCreateCredentialRequest

Added in 1.0.0-alpha05

*** ** * ** ***


```
public final class ProviderCreateCredentialRequest
```

<br />

*** ** * ** ***

## Summary

| ### Public methods |
|---|---|
| `static final https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/credentials/registry/provider/ProviderCreateCredentialRequest#(androidx.credentials.provider.ProviderCreateCredentialRequest).getSelectedEntryId()(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/credentials/provider/ProviderCreateCredentialRequest receiver)` Returns the id of the entry selected by the user. |

## Public methods

### getSelectedEntryId

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/ProviderCreateCredentialRequest.kt+symbol:selectedEntryId) Added in [1.0.0-alpha05](https://developer.android.com/jetpack/androidx/releases/credentials-registry#1.0.0-alpha05)

```
public static final String getSelectedEntryId(@NonNull ProviderCreateCredentialRequest receiver)
```

Returns the id of the entry selected by the user.

A null return means that entry ID isn't supported for the given type of the use case at all.

For how to handle a user selection and extract the `https://developer.android.com/reference/androidx/credentials/provider/ProviderCreateCredentialRequest` containing the selection information, see `https://developer.android.com/reference/androidx/credentials/registry/provider/RegistryManager#ACTION_CREATE_CREDENTIAL()`.