# 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 />

```
public final 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/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/androidx/credentials/GetCredentialResponse` through the `https://developer.android.com/reference/androidx/credentials/provider/PendingIntentHandler#setGetCredentialResponse(android.content.Intent,androidx.credentials.GetCredentialResponse,androidx.credentials.provider.ProviderGetCredentialRequest)` helper API, or a `https://developer.android.com/reference/androidx/credentials/CreateCredentialResponse` through the `https://developer.android.com/reference/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/androidx/credentials/provider/RemoteEntry#pendingIntent()` is null |

## Summary

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

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

| ### Public methods |
|---|---|
| `boolean` | `https://developer.android.com/reference/androidx/credentials/provider/RemoteEntry#equals(kotlin.Any)(https://developer.android.com/reference/java/lang/Object.html other)` |
| `static final https://developer.android.com/reference/androidx/credentials/provider/RemoteEntry` | `https://developer.android.com/reference/androidx/credentials/provider/RemoteEntry#fromRemoteEntry(android.service.credentials.RemoteEntry)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/android/service/credentials/RemoteEntry.html remoteEntry)` Converts a framework `https://developer.android.com/reference/android/service/credentials/RemoteEntry.html` class to a Jetpack `https://developer.android.com/reference/androidx/credentials/provider/RemoteEntry` class |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/android/app/PendingIntent.html` | `https://developer.android.com/reference/androidx/credentials/provider/RemoteEntry#getPendingIntent()()` 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 |
| `int` | `https://developer.android.com/reference/androidx/credentials/provider/RemoteEntry#hashCode()()` |

## Public constructors

### RemoteEntry

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

```
public RemoteEntry(@NonNull PendingIntent pendingIntent)
```

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

| Parameters |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/android/app/PendingIntent.html 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 methods

### equals

```
public boolean equals(Object other)
```

### fromRemoteEntry

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

```
public static final RemoteEntry fromRemoteEntry(@NonNull RemoteEntry remoteEntry)
```

Converts a framework `https://developer.android.com/reference/android/service/credentials/RemoteEntry.html` class to a Jetpack `https://developer.android.com/reference/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/androidx/credentials/provider/RemoteEntry` to populate the `https://developer.android.com/reference/androidx/credentials/provider/BeginGetCredentialResponse` or `https://developer.android.com/reference/androidx/credentials/provider/BeginCreateCredentialResponse`.

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

### getPendingIntent

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

```
public final @NonNull PendingIntent getPendingIntent()
```

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

### hashCode

```
public int hashCode()
```