NavActionBuilder
@NavDestinationDsl
public final class NavActionBuilder
DSL for building a NavAction
.
Summary
Public constructors |
---|
Public methods |
|
---|---|
final @NonNull Map<@NonNull String, Object> |
The set of default arguments that should be passed to the destination. |
final int |
The ID of the destination that should be navigated to when this action is used |
final void |
navOptions( Sets the |
final void |
setDestinationId(int destinationId) The ID of the destination that should be navigated to when this action is used |
Public constructors
Public methods
getDefaultArguments
public final @NonNull Map<@NonNull String, Object> getDefaultArguments()
The set of default arguments that should be passed to the destination. The keys used here should be the same as those used on the NavDestinationBuilder.argument
for the destination.
All values added here should be able to be added to a SavedState
.
See also | |
---|---|
defaultArguments |
getDestinationId
public final int getDestinationId()
The ID of the destination that should be navigated to when this action is used
navOptions
public final void navOptions(
@ExtensionFunctionType @NonNull Function1<@NonNull NavOptionsBuilder, Unit> optionsBuilder
)
Sets the NavOptions
for this action that should be used by default
setDestinationId
public final void setDestinationId(int destinationId)
The ID of the destination that should be navigated to when this action is used