NavController.Companion

object NavController.Companion


Summary

Constants

const String

The Intent that triggered a deep link to the current destination.

Public functions

@NavDeepLinkSaveStateControl Unit

By default, handleDeepLink will automatically add calls to NavOptions.Builder.setPopUpTo with a saveState of true when the deep link takes you to another graph (e.g., a different navigation graph than the one your start destination is in).

Constants

const val KEY_DEEP_LINK_INTENTString

The Intent that triggered a deep link to the current destination.

Public functions

enableDeepLinkSaveState

@NavDeepLinkSaveStateControl
fun enableDeepLinkSaveState(saveState: Boolean): Unit

By default, handleDeepLink will automatically add calls to NavOptions.Builder.setPopUpTo with a saveState of true when the deep link takes you to another graph (e.g., a different navigation graph than the one your start destination is in).

You can disable this behavior by passing false for saveState.