# BeginCreateCredentialResponse

# BeginCreateCredentialResponse

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

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/androidx/credentials/provider/BeginCreateCredentialResponse "View this page in Java")

<br />

```
class BeginCreateCredentialResponse
```

<br />

*** ** * ** ***

Response to[BeginCreateCredentialRequest](https://developer.android.com/reference/kotlin/androidx/credentials/provider/BeginCreateCredentialRequest).

Credential providers must add a list of[CreateEntry](https://developer.android.com/reference/kotlin/androidx/credentials/provider/CreateEntry), and an optional[RemoteEntry](https://developer.android.com/reference/kotlin/androidx/credentials/provider/RemoteEntry)to this response.

Each[CreateEntry](https://developer.android.com/reference/kotlin/androidx/credentials/provider/CreateEntry)is displayed to the user on the account selector, as an account option where the given credential can be stored. A[RemoteEntry](https://developer.android.com/reference/kotlin/androidx/credentials/provider/RemoteEntry)is an entry on the selector, through which user can choose to create the credential on a remote device.

## Summary

|                                                                                                                                                      ### Nested types                                                                                                                                                       |
|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `class `[BeginCreateCredentialResponse.Builder](https://developer.android.com/reference/kotlin/androidx/credentials/provider/BeginCreateCredentialResponse.Builder) Builder for[BeginCreateCredentialResponse](https://developer.android.com/reference/kotlin/androidx/credentials/provider/BeginCreateCredentialResponse). |

|                                                         ### Public companion functions                                                         |
|------------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Bundle](https://developer.android.com/reference/android/os/Bundle.html)                                                                       | [asBundle](https://developer.android.com/reference/kotlin/androidx/credentials/provider/BeginCreateCredentialResponse#asBundle(androidx.credentials.provider.BeginCreateCredentialResponse))`(response: `[BeginCreateCredentialResponse](https://developer.android.com/reference/kotlin/androidx/credentials/provider/BeginCreateCredentialResponse)`)` Helper method to convert the class to a parcelable[Bundle](https://developer.android.com/reference/android/os/Bundle.html), in case the class instance needs to be sent across a process.                                                                                                                                                                          |
| [BeginCreateCredentialResponse](https://developer.android.com/reference/kotlin/androidx/credentials/provider/BeginCreateCredentialResponse)`?` | [fromBundle](https://developer.android.com/reference/kotlin/androidx/credentials/provider/BeginCreateCredentialResponse#fromBundle(android.os.Bundle))`(bundle: `[Bundle](https://developer.android.com/reference/android/os/Bundle.html)`)` Helper method to convert a[Bundle](https://developer.android.com/reference/android/os/Bundle.html)retrieved through[asBundle](https://developer.android.com/reference/kotlin/androidx/credentials/provider/BeginCreateCredentialResponse#asBundle(androidx.credentials.provider.BeginCreateCredentialResponse)), back to an instance of[BeginGetCredentialResponse](https://developer.android.com/reference/kotlin/androidx/credentials/provider/BeginGetCredentialResponse). |

|                                                                                                                                                                                                                                                                                         ### Public constructors                                                                                                                                                                                                                                                                                          |
|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [BeginCreateCredentialResponse](https://developer.android.com/reference/kotlin/androidx/credentials/provider/BeginCreateCredentialResponse#BeginCreateCredentialResponse(kotlin.collections.List,androidx.credentials.provider.RemoteEntry))`(` ` createEntries: `[List](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html)`<`[CreateEntry](https://developer.android.com/reference/kotlin/androidx/credentials/provider/CreateEntry)`>,` ` remoteEntry: `[RemoteEntry](https://developer.android.com/reference/kotlin/androidx/credentials/provider/RemoteEntry)`?` `)` |

|                                                                                         ### Public properties                                                                                          |
|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------|
| [List](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html)`<`[CreateEntry](https://developer.android.com/reference/kotlin/androidx/credentials/provider/CreateEntry)`>` | [createEntries](https://developer.android.com/reference/kotlin/androidx/credentials/provider/BeginCreateCredentialResponse#createEntries()) |
| [RemoteEntry](https://developer.android.com/reference/kotlin/androidx/credentials/provider/RemoteEntry)`?`                                                                                             | [remoteEntry](https://developer.android.com/reference/kotlin/androidx/credentials/provider/BeginCreateCredentialResponse#remoteEntry())     |

## Public companion functions

### asBundle

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

```
fun asBundle(response: BeginCreateCredentialResponse): Bundle
```

Helper method to convert the class to a parcelable[Bundle](https://developer.android.com/reference/android/os/Bundle.html), in case the class instance needs to be sent across a process. Consumers of this method should use[fromBundle](https://developer.android.com/reference/kotlin/androidx/credentials/provider/BeginCreateCredentialResponse#fromBundle(android.os.Bundle))to reconstruct the class instance back from the bundle returned here.  

### fromBundle

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

```
fun fromBundle(bundle: Bundle): BeginCreateCredentialResponse?
```

Helper method to convert a[Bundle](https://developer.android.com/reference/android/os/Bundle.html)retrieved through[asBundle](https://developer.android.com/reference/kotlin/androidx/credentials/provider/BeginCreateCredentialResponse#asBundle(androidx.credentials.provider.BeginCreateCredentialResponse)), back to an instance of[BeginGetCredentialResponse](https://developer.android.com/reference/kotlin/androidx/credentials/provider/BeginGetCredentialResponse).  

## Public constructors

### BeginCreateCredentialResponse

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

```
BeginCreateCredentialResponse(
    createEntries: List<CreateEntry> = listOf(),
    remoteEntry: RemoteEntry? = null
)
```  

## Public properties

### createEntries

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

```
val createEntries: List<CreateEntry>
```  

### remoteEntry

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

```
val remoteEntry: RemoteEntry?
```