# RemoteEntry

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

*** ** * ** ***

<br />

```
class RemoteEntry
```

<br />

*** ** * ** ***

An entry on the selector, denoting that the credential request will be completed on a remote device.

Once this entry is selected, the corresponding `https://developer.android.com/reference/kotlin/androidx/credentials/provider/RemoteEntry#(android.app.PendingIntent)` will be invoked. The provider can then show any activity they wish to while establishing a connection with a different device and retrieving a credential. Before finishing the activity, provider must set the final `https://developer.android.com/reference/kotlin/androidx/credentials/GetCredentialResponse` through the `https://developer.android.com/reference/kotlin/androidx/credentials/provider/PendingIntentHandler#setGetCredentialResponse(android.content.Intent,androidx.credentials.GetCredentialResponse,androidx.credentials.provider.ProviderGetCredentialRequest)` helper API, or a `https://developer.android.com/reference/kotlin/androidx/credentials/CreateCredentialResponse` through the `https://developer.android.com/reference/kotlin/androidx/credentials/provider/PendingIntentHandler#setCreateCredentialResponse(android.content.Intent,androidx.credentials.CreateCredentialResponse)` helper API depending on whether it is a get or create flow.

See `https://developer.android.com/reference/android/service/credentials/BeginGetCredentialResponse.html` for usage details.

| Throws |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-null-pointer-exception/index.html` | If `https://developer.android.com/reference/kotlin/androidx/credentials/provider/RemoteEntry#pendingIntent()` is null |

## Summary

| ### Nested types |
|---|
| `class https://developer.android.com/reference/kotlin/androidx/credentials/provider/RemoteEntry.Builder` A builder for `https://developer.android.com/reference/kotlin/androidx/credentials/provider/RemoteEntry` |

| ### Public companion functions |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/credentials/provider/RemoteEntry?` | `https://developer.android.com/reference/kotlin/androidx/credentials/provider/RemoteEntry#fromRemoteEntry(android.service.credentials.RemoteEntry)(remoteEntry: https://developer.android.com/reference/android/service/credentials/RemoteEntry.html)` Converts a framework `https://developer.android.com/reference/android/service/credentials/RemoteEntry.html` class to a Jetpack `https://developer.android.com/reference/kotlin/androidx/credentials/provider/RemoteEntry` class |

| ### Public constructors |
|---|
| `https://developer.android.com/reference/kotlin/androidx/credentials/provider/RemoteEntry#RemoteEntry(android.app.PendingIntent)(pendingIntent: https://developer.android.com/reference/android/app/PendingIntent.html)` constructs an instance of `https://developer.android.com/reference/kotlin/androidx/credentials/provider/RemoteEntry` |

| ### Public functions |
|---|---|
| `open operator https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/credentials/provider/RemoteEntry#equals(kotlin.Any)(other: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?)` |
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/credentials/provider/RemoteEntry#hashCode()()` |

| ### Public properties |
|---|---|
| `https://developer.android.com/reference/android/app/PendingIntent.html` | `https://developer.android.com/reference/kotlin/androidx/credentials/provider/RemoteEntry#pendingIntent()` the `https://developer.android.com/reference/android/app/PendingIntent.html` that will get invoked when the user selects this authentication entry on the UI, must be created with flag `https://developer.android.com/reference/android/app/PendingIntent.html#FLAG_MUTABLE` so that the system can add the complete request to the extras of the associated intent |

## Public companion functions

### fromRemoteEntry

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

```
fun fromRemoteEntry(remoteEntry: RemoteEntry): RemoteEntry?
```

Converts a framework `https://developer.android.com/reference/android/service/credentials/RemoteEntry.html` class to a Jetpack `https://developer.android.com/reference/kotlin/androidx/credentials/provider/RemoteEntry` class

Note that this API is not needed in a general credential creation/retrieval flow that is implemented using this jetpack library, where you are only required to construct an instance of `https://developer.android.com/reference/kotlin/androidx/credentials/provider/RemoteEntry` to populate the `https://developer.android.com/reference/kotlin/androidx/credentials/provider/BeginGetCredentialResponse` or `https://developer.android.com/reference/kotlin/androidx/credentials/provider/BeginCreateCredentialResponse`.

| Parameters |
|---|---|
| `remoteEntry: https://developer.android.com/reference/android/service/credentials/RemoteEntry.html` | the instance of framework action class to be converted |

## Public constructors

### RemoteEntry

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

```
RemoteEntry(pendingIntent: PendingIntent)
```

constructs an instance of `https://developer.android.com/reference/kotlin/androidx/credentials/provider/RemoteEntry`

| Parameters |
|---|---|
| `pendingIntent: https://developer.android.com/reference/android/app/PendingIntent.html` | the `https://developer.android.com/reference/android/app/PendingIntent.html` that will get invoked when the user selects this authentication entry on the UI, must be created with flag `https://developer.android.com/reference/android/app/PendingIntent.html#FLAG_MUTABLE` so that the system can add the complete request to the extras of the associated intent |

## Public functions

### equals

```
open operator fun equals(other: Any?): Boolean
```

### hashCode

```
open fun hashCode(): Int
```

## Public properties

### pendingIntent

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

```
val pendingIntent: PendingIntent
```

the `https://developer.android.com/reference/android/app/PendingIntent.html` that will get invoked when the user selects this authentication entry on the UI, must be created with flag `https://developer.android.com/reference/android/app/PendingIntent.html#FLAG_MUTABLE` so that the system can add the complete request to the extras of the associated intent