DynamicActivityNavigatorDestinationBuilderKt

Added in 2.3.0

public final class DynamicActivityNavigatorDestinationBuilderKt


Summary

Public methods

static final void

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

static final void

Construct a new DynamicActivityNavigator.Destination

static final void

Construct a new DynamicActivityNavigator.Destination

Public methods

public static final void activity(
    @NonNull DynamicNavGraphBuilder receiver,
    @IdRes int id,
    @ExtensionFunctionType @NonNull Function1<@NonNull DynamicActivityNavigatorDestinationBuilderUnit> builder
)

Construct a new DynamicActivityNavigator.Destination

Parameters
@IdRes int id

Destination id.

public static final void activity(
    @NonNull DynamicNavGraphBuilder receiver,
    @NonNull String route,
    @ExtensionFunctionType @NonNull Function1<@NonNull DynamicActivityNavigatorDestinationBuilderUnit> builder
)

Construct a new DynamicActivityNavigator.Destination

Parameters
@NonNull String route

Destination route.

@ExtensionFunctionType @NonNull Function1<@NonNull DynamicActivityNavigatorDestinationBuilderUnit> builder

the builder used to construct the graph

public static final void <T extends Object> activity(
    @NonNull DynamicNavGraphBuilder receiver,
    @NonNull Map<@NonNull KType, @NonNull NavType<@NonNull ?>> typeMap,
    @ExtensionFunctionType @NonNull Function1<@NonNull DynamicActivityNavigatorDestinationBuilderUnit> builder
)

Construct a new DynamicActivityNavigator.Destination

Parameters
<T extends Object>

Destination route from a KClass

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

A mapping of KType to custom NavType<*> in the T. May be empty if T does not use custom NavTypes.

@ExtensionFunctionType @NonNull Function1<@NonNull DynamicActivityNavigatorDestinationBuilderUnit> builder

the builder used to construct the graph