setAADisconnecting

fun setAADisconnecting(disconnecting: Boolean)

Sets the Android Auto disconnecting flag.

Called by AndroidAutoSession at the START of session destruction (in onStop, before screens are destroyed). This allows screens to detect that they're being destroyed due to AA disconnection rather than user navigation.

Uses AtomicBoolean.set for lock-free thread safety.

Parameters

disconnecting

True when AA is starting to disconnect

See also