NavActionBuilder

@NavDestinationDsl public final class NavActionBuilder


DSL for building a NavAction.

Summary

Public fields

final @NonNull Map<@NonNull StringObject>

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

Public constructors

Public methods

final void
navOptions(
    @ExtensionFunctionType Function1<NavOptionsBuilderUnit> optionsBuilder
)

Sets the NavOptions for this action that should be used by default

Public fields

defaultArguments

public final @NonNull Map<@NonNull StringObjectdefaultArguments

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 android.os.Bundle.

See also
NavAction.getDefaultArguments

destinationId

public final int destinationId

The ID of the destination that should be navigated to when this action is used

Public constructors

public final NavActionBuilder()

Public methods

public final void navOptions(
    @ExtensionFunctionType Function1<NavOptionsBuilderUnit> optionsBuilder
)

Sets the NavOptions for this action that should be used by default