NavActionBuilder

public final class NavActionBuilder


DSL for building a NavAction.

Summary

Public fields

final @NonNull Map<@NonNull String, @NonNull 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

Public constructors

Public methods

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

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

Public fields

defaultArguments

@NonNull
public final @NonNull Map<@NonNull String, @NonNull ObjectdefaultArguments

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

@NonNull
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

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

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