navigateToCustom
Navigates to a custom screen using a custom action.
Use this for client-defined screens that were registered via additionalTransitions. The state machine validates the transition before pushing the screen.
Example
val openPayment = AANavigationAction.Custom("OpenPayment")
val paymentScreen = PaymentScreen(carContext)
coordinator.navigateToCustom(openPayment, paymentScreen)Content copied to clipboard
Return
True if the transition was valid and the screen was pushed
Parameters
action
The action triggering the transition (typically AANavigationAction.Custom)
screen
The Screen instance to push if the transition is valid