PhoneAppState

Represents the current state of the phone app as communicated to Android Auto.

The phone app sets this state, and Android Auto observes it via StateFlow to determine what UI to display.

Carried over from one car session to the next

The state is kept from one car session to the next while the phone app runs, that is while its PhoneAppCallback is registered: a new session starts from the state reported last, and the phone app does not have to report it again. It goes back to UNKNOWN when a session starts or ends with no PhoneAppCallback registered, and CLOSING is never carried over.

Entries

Link copied to clipboard

No state reported yet. It is the initial state, and the state a car session starts from when no PhoneAppCallback is registered, in which case the session launches the phone app. The car shows that the application is starting.

Link copied to clipboard

Phone app is in onboarding flow (QRCode, permissions, terms, etc.). The car asks the user to complete the onboarding on the phone (AndroidAutoLoadingState.ONBOARDING_REQUIRED).

Link copied to clipboard

Phone app Core SDK is initializing and downloading maps. The car shows that the map data is being prepared (AndroidAutoLoadingState.INITIALIZING_MAPS).

Link copied to clipboard

Phone app MapViewModel is ready and available. AA can proceed with map initialization.

Link copied to clipboard

Phone app is closing. AA should close gracefully.

Properties

Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.