NavController.Companion
object NavController.Companion
Summary
Constants |
|
---|---|
static final @NonNull String |
The |
Public methods |
|
---|---|
final @NavDeepLinkSaveStateControl void |
enableDeepLinkSaveState(boolean saveState) By default, |
Constants
KEY_DEEP_LINK_INTENT
public static final @NonNull String KEY_DEEP_LINK_INTENT
The Intent
that triggered a deep link to the current destination.
Public methods
enableDeepLinkSaveState
@NavDeepLinkSaveStateControl
public final void enableDeepLinkSaveState(boolean saveState)
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
.