# 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-beta01](https://developer.android.com/jetpack/androidx/releases/credentials-providerevents#1.0.0-beta01)

*** ** * ** ***


```
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/kotlin/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/kotlin/androidx/credentials/providerevents/transfer/ExportEntry#supportedCredentialTypes()` is empty |

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/kotlin/androidx/credentials/providerevents/transfer/ExportEntry#ExportEntry(kotlin.String,kotlin.CharSequence,kotlin.CharSequence,android.graphics.Bitmap,kotlin.collections.Set)( id: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html, accountDisplayName: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-char-sequence/index.html?, userDisplayName: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-char-sequence/index.html, icon: https://developer.android.com/reference/android/graphics/Bitmap.html, supportedCredentialTypes: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-set/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html> )` |

| ### Public properties |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-char-sequence/index.html?` | `https://developer.android.com/reference/kotlin/androidx/credentials/providerevents/transfer/ExportEntry#accountDisplayName()` the account display name of the entry |
| `https://developer.android.com/reference/android/graphics/Bitmap.html` | `https://developer.android.com/reference/kotlin/androidx/credentials/providerevents/transfer/ExportEntry#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://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/androidx/credentials/providerevents/transfer/ExportEntry#id()` the secret id that is used to identify the export entry. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-set/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html>` | `https://developer.android.com/reference/kotlin/androidx/credentials/providerevents/transfer/ExportEntry#supportedCredentialTypes()` the credential types that this entry supports. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-char-sequence/index.html` | `https://developer.android.com/reference/kotlin/androidx/credentials/providerevents/transfer/ExportEntry#userDisplayName()` the user display name of the entry |

## Public constructors

### ExportEntry

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

```
ExportEntry(
    id: String,
    accountDisplayName: CharSequence?,
    userDisplayName: CharSequence,
    icon: Bitmap,
    supportedCredentialTypes: Set<String>
)
```

| Parameters |
|---|---|
| `id: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | 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/kotlin/androidx/credentials/providerevents/transfer/ProviderImportCredentialsRequest` contains the pre-registered id. |
| `accountDisplayName: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-char-sequence/index.html?` | the account display name of the entry |
| `userDisplayName: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-char-sequence/index.html` | the user display name of the entry |
| `icon: https://developer.android.com/reference/android/graphics/Bitmap.html` | 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 |
| `supportedCredentialTypes: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-set/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html>` | 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/kotlin/androidx/credentials/providerevents/transfer/CredentialTypes` |

## Public properties

### accountDisplayName

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

```
val accountDisplayName: CharSequence?
```

the account display name of the entry

### icon

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

```
val icon: Bitmap
```

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

### id

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

```
val id: String
```

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/kotlin/androidx/credentials/providerevents/transfer/ProviderImportCredentialsRequest` contains the pre-registered id.

### supportedCredentialTypes

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

```
val supportedCredentialTypes: Set<String>
```

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/kotlin/androidx/credentials/providerevents/transfer/CredentialTypes`

### userDisplayName

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

```
val userDisplayName: CharSequence
```

the user display name of the entry