# AccountInfoParcelable

# AccountInfoParcelable


```
data class AccountInfoParcelable : Parcelable
```

<br />

*** ** * ** ***

Unified identity wrapper for IPC.

This class encapsulates the specific account data for a session, enabling dynamic selection between Personal (Google/Federated) and Communal modes. Only one field is expected to be non-null.

## Summary

| ### Public companion functions |
|---|---|
| `https://developers.home.google.com/reference/kotlin/com/google/home/AccountInfoParcelable` | `https://developers.home.google.com/reference/kotlin/com/google/home/AccountInfoParcelable#fromUserAccount(com.google.home.UserAccount)(userAccount: https://developers.home.google.com/reference/kotlin/com/google/home/UserAccount)` Factory method to create an `https://developers.home.google.com/reference/kotlin/com/google/home/AccountInfoParcelable` from a `https://developers.home.google.com/reference/kotlin/com/google/home/UserAccount`. |

| ### Public companion properties |
|---|---|
| `https://developer.android.com/reference/android/os/Parcelable.Creator.html<https://developers.home.google.com/reference/kotlin/com/google/home/AccountInfoParcelable>` | `https://developers.home.google.com/reference/kotlin/com/google/home/AccountInfoParcelable#CREATOR()` Creator for `https://developers.home.google.com/reference/kotlin/com/google/home/AccountInfoParcelable` instances. |

| ### Public constructors |
|---|
| `https://developers.home.google.com/reference/kotlin/com/google/home/AccountInfoParcelable#AccountInfoParcelable(android.accounts.Account,kotlin.String,kotlin.Boolean)( googleAccount: https://developer.android.com/reference/android/accounts/Account.html?, federatedJwt: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html?, isCommunal: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html )` |

| ### Public functions |
|---|---|
| `open https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/AccountInfoParcelable#writeToParcel(android.os.Parcel,kotlin.Int)(dest: https://developer.android.com/reference/android/os/Parcel.html, flags: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)` |

| ### Public properties |
|---|---|
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html?` | `https://developers.home.google.com/reference/kotlin/com/google/home/AccountInfoParcelable#federatedJwt()` The 3P JWT identity data, if applicable. |
| `https://developer.android.com/reference/android/accounts/Account.html?` | `https://developers.home.google.com/reference/kotlin/com/google/home/AccountInfoParcelable#googleAccount()` The GAIA identity data, if applicable. |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/AccountInfoParcelable#isCommunal()` Whether the account is communal, if applicable. |

## Public companion functions

### fromUserAccount

```
fun fromUserAccount(userAccount: UserAccount): AccountInfoParcelable
```

Factory method to create an `https://developers.home.google.com/reference/kotlin/com/google/home/AccountInfoParcelable` from a `https://developers.home.google.com/reference/kotlin/com/google/home/UserAccount`.

| Parameters |
|---|---|
| `userAccount: https://developers.home.google.com/reference/kotlin/com/google/home/UserAccount` | The high-level SDK identity to map to the IPC carrier. |

| Returns |
|---|---|
| `https://developers.home.google.com/reference/kotlin/com/google/home/AccountInfoParcelable` | A parcelable wrapper containing the identity data. |

## Public companion properties

### CREATOR

```
val CREATOR: Parcelable.Creator<AccountInfoParcelable>
```

Creator for `https://developers.home.google.com/reference/kotlin/com/google/home/AccountInfoParcelable` instances.

## Public constructors

### AccountInfoParcelable

```
AccountInfoParcelable(
    googleAccount: Account?,
    federatedJwt: String?,
    isCommunal: Boolean
)
```

## Public functions

### writeToParcel

```
open fun writeToParcel(dest: Parcel, flags: Int): Unit
```

## Public properties

### federatedJwt

```
val federatedJwt: String?
```

The 3P JWT identity data, if applicable.

### googleAccount

```
val googleAccount: Account?
```

The GAIA identity data, if applicable.

### isCommunal

```
val isCommunal: Boolean
```

Whether the account is communal, if applicable.