NavController.Companion
object NavController.Companion
Summary
Public functions |
|
---|---|
@NavDeepLinkSaveStateControl Unit |
enableDeepLinkSaveState(saveState: Boolean) By default, |
Constants
KEY_DEEP_LINK_INTENT
const val KEY_DEEP_LINK_INTENT: String
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
.