onAARouteSelected

abstract fun onAARouteSelected(index: Int)

Called when user selects a route on Android Auto route preview screen.

The phone app should:

  • Update the selected route index in PreviewViewModel

  • This triggers onRouteSelectionChange callback which updates map polylines

Parameters

index

The index of the selected route (0-based)