DynamicActivityNavigatorDestinationBuilder


@NavDestinationDsl
public final class DynamicActivityNavigatorDestinationBuilder extends NavDestinationBuilder


DSL for constructing a new DynamicActivityNavigator.Destination

Summary

Public constructors

This method is deprecated. Use routes to build your DynamicActivityDestination instead

DSL for constructing a new DynamicActivityNavigator.Destination

Public methods

@NonNull DynamicActivityNavigator.Destination

Build the NavDestination by calling Navigator.createDestination.

final String
final String
final Uri
final String
final String
final String
final void
setAction(String action)
final void
setActivityClassName(String activityClassName)
final void
setData(Uri data)
final void
setDataPattern(String dataPattern)
final void
setModuleName(String moduleName)
final void
setTargetPackage(String targetPackage)

Inherited methods

From androidx.navigation.NavDestinationBuilder
final void
action(
    int actionId,
    @ExtensionFunctionType @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,
    @ExtensionFunctionType @NonNull Function1<@NonNull NavArgumentBuilderUnit> argumentBuilder
)

Add a NavArgument to this destination.

final void

Add a NavArgument to this destination.

final void
<T extends Object> deepLinkSafeArgs(@NonNull String basePath)

Add a deep link to this destination.

final void

Add a deep link to this destination.

final void

Add a deep link to this destination.

final void
deepLink(@NonNull String uriPattern)

Add a deep link to this destination.

final void
<T extends Object> deepLink(
    @NonNull String basePath,
    @ExtensionFunctionType @NonNull Function1<@NonNull NavDeepLinkDslBuilderUnit> navDeepLink
)

Add a deep link to this destination.

final void
<T extends Object> deepLink(
    @NonNull KClass<@NonNull T> route,
    @NonNull String basePath,
    @ExtensionFunctionType @NonNull Function1<@NonNull NavDeepLinkDslBuilderUnit> navDeepLink
)

Add a deep link to this destination.

final int

The destination's unique ID.

final CharSequence

The descriptive label of the destination

final @NonNull Navigator<@NonNull ActivityNavigator.Destination>

The navigator the destination that will be used in instantiateDestination to create the destination.

final String

The destination's unique route.

@NonNull ActivityNavigator.Destination

Instantiate a new instance of D that will be passed to build.

final void

The descriptive label of the destination

Public constructors

DynamicActivityNavigatorDestinationBuilder

Added in 2.3.0
Deprecated in 2.4.0
public DynamicActivityNavigatorDestinationBuilder(
    @NonNull DynamicActivityNavigator activityNavigator,
    @IdRes int id
)

DynamicActivityNavigatorDestinationBuilder

Added in 2.4.0
public DynamicActivityNavigatorDestinationBuilder(
    @NonNull DynamicActivityNavigator activityNavigator,
    @NonNull String route
)

DynamicActivityNavigatorDestinationBuilder

Added in 2.8.0
public DynamicActivityNavigatorDestinationBuilder(
    @NonNull DynamicActivityNavigator activityNavigator,
    @NonNull KClass<@NonNull ?> route,
    @NonNull Map<@NonNull KType, @NonNull NavType<@NonNull ?>> typeMap
)

DSL for constructing a new DynamicActivityNavigator.Destination

Parameters
@NonNull DynamicActivityNavigator activityNavigator

navigator used to create the destination

@NonNull KClass<@NonNull ?> route

the route from a KClass of the destination

@NonNull Map<@NonNull KType, @NonNull NavType<@NonNull ?>> typeMap

map of destination arguments' kotlin type KType to its respective custom NavType. May be empty if route does not use custom NavTypes.

Public methods

build

Added in 2.3.0
public @NonNull DynamicActivityNavigator.Destination build()

Build the NavDestination by calling Navigator.createDestination.

getAction

Added in 2.3.0
public final String getAction()

getActivityClassName

Added in 2.3.0
public final String getActivityClassName()

getData

Added in 2.3.0
public final Uri getData()

getDataPattern

Added in 2.3.0
public final String getDataPattern()

getModuleName

Added in 2.3.0
public final String getModuleName()

getTargetPackage

Added in 2.3.0
public final String getTargetPackage()

setAction

Added in 2.3.0
public final void setAction(String action)

setActivityClassName

Added in 2.3.0
public final void setActivityClassName(String activityClassName)

setData

Added in 2.3.0
public final void setData(Uri data)

setDataPattern

Added in 2.3.0
public final void setDataPattern(String dataPattern)

setModuleName

Added in 2.3.0
public final void setModuleName(String moduleName)

setTargetPackage

Added in 2.3.0
public final void setTargetPackage(String targetPackage)