syncToPhoneState

fun syncToPhoneState(phoneState: AANavigationState, destinationTitle: String = "", useDemoMode: Boolean = false)

Synchronizes the navigation state to match the phone's equivalent state.

This is called when AA connects while the phone is already in a specific state (e.g., route preview or active navigation). It pushes the appropriate screens to match the phone's state.

Parameters

phoneState

The phone's equivalent AA state

destinationTitle

The destination title (for navigation/route preview)

useDemoMode

Whether navigation is in demo mode