AccountInfoParcelable

data class AccountInfoParcelable : Parcelable


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

AccountInfoParcelable

Factory method to create an AccountInfoParcelable from a UserAccount.

Public companion properties

Parcelable.Creator<AccountInfoParcelable>

Creator for AccountInfoParcelable instances.

Public constructors

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

Public functions

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

Public properties

String?

The 3P JWT identity data, if applicable.

Account?

The GAIA identity data, if applicable.

Boolean

Whether the account is communal, if applicable.

Public companion functions

fromUserAccount

fun fromUserAccount(userAccount: UserAccount): AccountInfoParcelable

Factory method to create an AccountInfoParcelable from a UserAccount.

Parameters
userAccount: UserAccount

The high-level SDK identity to map to the IPC carrier.

Returns
AccountInfoParcelable

A parcelable wrapper containing the identity data.

Public companion properties

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 federatedJwtString?

The 3P JWT identity data, if applicable.

googleAccount

val googleAccountAccount?

The GAIA identity data, if applicable.

isCommunal

val isCommunalBoolean

Whether the account is communal, if applicable.