# ExportEntry

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

*** ** * ** ***

<br />

```
public final class ExportEntry
```

<br />

*** ** * ** ***

Each export entry corresponds to an entry in the provider selector UI that the user can choose from.

ExportEntry serves two purposes:

1. Contain display data to be shown on the selector UI.

2. Contain fields that can be used to match an incoming `https://developer.android.com/reference/androidx/credentials/providerevents/transfer/ImportCredentialsRequest`. By default, the `supportedCredentialTypes` field will be used to match against the request.

| Throws |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-illegal-argument-exception/index.html` | if `https://developer.android.com/reference/androidx/credentials/providerevents/transfer/ExportEntry#supportedCredentialTypes()` is empty |

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/androidx/credentials/providerevents/transfer/ExportEntry#ExportEntry(kotlin.String,kotlin.CharSequence,kotlin.CharSequence,android.graphics.Bitmap,kotlin.collections.Set)( @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html id, https://developer.android.com/reference/java/lang/CharSequence.html accountDisplayName, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/CharSequence.html userDisplayName, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/android/graphics/Bitmap.html icon, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/util/Set.html<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html> supportedCredentialTypes )` |

| ### Public methods |
|---|---|
| `final https://developer.android.com/reference/java/lang/CharSequence.html` | `https://developer.android.com/reference/androidx/credentials/providerevents/transfer/ExportEntry#getAccountDisplayName()()` the account display name of the entry |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/android/graphics/Bitmap.html` | `https://developer.android.com/reference/androidx/credentials/providerevents/transfer/ExportEntry#getIcon()()` the icon to display for this entry; this icon should be 32x32 and if not will be rescaled into a 32x32 pixel PGN for display |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/credentials/providerevents/transfer/ExportEntry#getId()()` the secret id that is used to identify the export entry. |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/util/Set.html<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html>` | `https://developer.android.com/reference/androidx/credentials/providerevents/transfer/ExportEntry#getSupportedCredentialTypes()()` the credential types that this entry supports. |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/CharSequence.html` | `https://developer.android.com/reference/androidx/credentials/providerevents/transfer/ExportEntry#getUserDisplayName()()` the user display name of the entry |

## Public constructors

### ExportEntry

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

```
public ExportEntry(
    @NonNull String id,
    CharSequence accountDisplayName,
    @NonNull CharSequence userDisplayName,
    @NonNull Bitmap icon,
    @NonNull Set<@NonNull String> supportedCredentialTypes
)
```

| Parameters |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html id` | the secret id that is used to identify the export entry. This should be randomly generated and stored. When the provider's credential transfer activity gets launched, the provider should verify that the `https://developer.android.com/reference/androidx/credentials/providerevents/transfer/ProviderImportCredentialsRequest` contains the pre-registered id. |
| `https://developer.android.com/reference/java/lang/CharSequence.html accountDisplayName` | the account display name of the entry |
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/CharSequence.html userDisplayName` | the user display name of the entry |
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/android/graphics/Bitmap.html icon` | the icon to display for this entry; this icon should be 32x32 and if not will be rescaled into a 32x32 pixel PGN for display |
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/util/Set.html<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html> supportedCredentialTypes` | the credential types that this entry supports. By default, this field will be used to filter whether the entry will be displayed for an incoming import request. The values include, but not limited to, the constants in `https://developer.android.com/reference/androidx/credentials/providerevents/transfer/CredentialTypes` |

## Public methods

### getAccountDisplayName

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

```
public final CharSequence getAccountDisplayName()
```

the account display name of the entry

### getIcon

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

```
public final @NonNull Bitmap getIcon()
```

the icon to display for this entry; this icon should be 32x32 and if not will be rescaled into a 32x32 pixel PGN for display

### getId

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

```
public final @NonNull String getId()
```

the secret id that is used to identify the export entry. This should be randomly generated and stored. When the provider's credential transfer activity gets launched, the provider should verify that the `https://developer.android.com/reference/androidx/credentials/providerevents/transfer/ProviderImportCredentialsRequest` contains the pre-registered id.

### getSupportedCredentialTypes

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

```
public final @NonNull Set<@NonNull String> getSupportedCredentialTypes()
```

the credential types that this entry supports. By default, this field will be used to filter whether the entry will be displayed for an incoming import request. The values include, but not limited to, the constants in `https://developer.android.com/reference/androidx/credentials/providerevents/transfer/CredentialTypes`

### getUserDisplayName

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

```
public final @NonNull CharSequence getUserDisplayName()
```

the user display name of the entry