ActivityNavigatorDestinationBuilder

public final class ActivityNavigatorDestinationBuilder extends NavDestinationBuilder


DSL for constructing a new ActivityNavigator.Destination

Summary

Public fields

final @Nullable String
final @Nullable KClass<@NonNull Activity>
final @Nullable Uri
final @Nullable String
final int

The destination's unique ID.

final @Nullable CharSequence

The descriptive label of the destination

final @Nullable String

The destination's unique route.

final @Nullable String

Public constructors

Public methods

@NonNull ActivityNavigator.Destination

Build the NavDestination by calling Navigator.createDestination.

Inherited methods

From class NavDestinationBuilder
final void
action(
    int actionId,
    @NonNull Function1<@NonNull NavActionBuilderUnit> actionBuilder
)

This method is deprecated. Building NavDestinations using IDs with the Kotlin DSL has been deprecated in favor of using routes.

final void
argument(
    @NonNull String name,
    @NonNull Function1<@NonNull NavArgumentBuilderUnit> argumentBuilder
)

Add a NavArgument to this destination.

final void
deepLink(
    @NonNull Function1<@NonNull NavDeepLinkDslBuilderUnit> navDeepLink
)

Add a deep link to this destination.

final void
deepLink(@NonNull String uriPattern)

Add a deep link to this destination.

Public fields

action

@Nullable
public final @Nullable String action

activityClass

@Nullable
public final @Nullable KClass<@NonNull ActivityactivityClass

data

@Nullable
public final @Nullable Uri data

dataPattern

@Nullable
public final @Nullable String dataPattern

id

@NonNull
public final int id

The destination's unique ID.

label

@Nullable
public final @Nullable CharSequence label

The descriptive label of the destination

route

@Nullable
public final @Nullable String route

The destination's unique route.

targetPackage

@Nullable
public final @Nullable String targetPackage

Public constructors

ActivityNavigatorDestinationBuilder

public final ActivityNavigatorDestinationBuilder(
    @NonNull ActivityNavigator navigator,
    @IdRes int id
)

ActivityNavigatorDestinationBuilder

public final ActivityNavigatorDestinationBuilder(
    @NonNull ActivityNavigator navigator,
    @NonNull String route
)

Public methods

build

@NonNull
public ActivityNavigator.Destination build()

Build the NavDestination by calling Navigator.createDestination.