Car
useCarConnected()
ts
function useCarConnected(): boolean;Hook that returns whether a car is connected and updates on changes (always false on web).
Returns
boolean
onCarConnectedChanged
ts
const onCarConnectedChanged: NativeUpdatedValue<boolean>;Emits when a car connects or disconnects (CarPlay on iOS, Android Auto / Android Automotive on Android), with the new state. Subscribe with addListener, which returns the unsubscribe function. Never emits on web.
isCarConnected()
ts
function isCarConnected(): boolean;Whether a car is currently connected: a CarPlay scene on iOS, an Android Auto / Android Automotive connection on Android (via the androidx.car.app CarConnection provider). Always false on web.
Returns
boolean