ActivityNavigatorDestinationBuilderKt

Added in 1.0.0

public final class ActivityNavigatorDestinationBuilderKt


Summary

Public methods

static final void
activity(
    @NonNull NavGraphBuilder receiver,
    @IdRes int id,
    @ExtensionFunctionType @NonNull Function1<@NonNull ActivityNavigatorDestinationBuilderUnit> builder
)

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

static final void
activity(
    @NonNull NavGraphBuilder receiver,
    @NonNull String route,
    @ExtensionFunctionType @NonNull Function1<@NonNull ActivityNavigatorDestinationBuilderUnit> builder
)

Construct a new ActivityNavigator.Destination

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

Construct a new ActivityNavigator.Destination

Public methods

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

Construct a new ActivityNavigator.Destination

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

Construct a new ActivityNavigator.Destination

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

Construct a new ActivityNavigator.Destination

Parameters
<T extends Object>

destination's unique route from a KClass

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

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

@ExtensionFunctionType @NonNull Function1<@NonNull ActivityNavigatorDestinationBuilderUnit> builder

the builder used to construct the fragment destination