DynamicFragmentNavigatorDestinationBuilderKt

Added in 2.3.0

public final class DynamicFragmentNavigatorDestinationBuilderKt


Summary

Public methods

static final void
<F extends Fragment> fragment(
    @NonNull DynamicNavGraphBuilder receiver,
    @IdRes int id
)

This method is deprecated. Use routes to create your DynamicFragmentDestination instead

static final void
<F extends Fragment> fragment(
    @NonNull DynamicNavGraphBuilder receiver,
    @NonNull String route
)

Construct a new DynamicFragmentNavigator.Destination

static final void
<F extends Fragment, T extends Object> fragment(
    @NonNull DynamicNavGraphBuilder receiver,
    @NonNull Map<@NonNull KType, @NonNull NavType<@NonNull ?>> typeMap
)

Construct a new DynamicFragmentNavigator.Destination

static final void
<F extends Fragment> fragment(
    @NonNull DynamicNavGraphBuilder receiver,
    @IdRes int id,
    @ExtensionFunctionType @NonNull Function1<@NonNull DynamicFragmentNavigatorDestinationBuilderUnit> builder
)

This method is deprecated. Use routes to create your DynamicFragmentDestination instead

static final void
<F extends Fragment> fragment(
    @NonNull DynamicNavGraphBuilder receiver,
    @NonNull String route,
    @ExtensionFunctionType @NonNull Function1<@NonNull DynamicFragmentNavigatorDestinationBuilderUnit> builder
)

Construct a new DynamicFragmentNavigator.Destination

static final void
<F extends Fragment, T extends Object> fragment(
    @NonNull DynamicNavGraphBuilder receiver,
    @NonNull Map<@NonNull KType, @NonNull NavType<@NonNull ?>> typeMap,
    @ExtensionFunctionType @NonNull Function1<@NonNull DynamicFragmentNavigatorDestinationBuilderUnit> builder
)

Construct a new DynamicFragmentNavigator.Destination

static final void
<T extends Object> fragment(
    @NonNull DynamicNavGraphBuilder receiver,
    @NonNull String fragmentClassName,
    @NonNull Map<@NonNull KType, @NonNull NavType<@NonNull ?>> typeMap,
    @ExtensionFunctionType @NonNull Function1<@NonNull DynamicFragmentNavigatorDestinationBuilderUnit> builder
)

Construct a new DynamicFragmentNavigator.Destination

static final void
fragment(
    @NonNull DynamicNavGraphBuilder receiver,
    @IdRes int id,
    @NonNull String fragmentClassName,
    @ExtensionFunctionType @NonNull Function1<@NonNull DynamicFragmentNavigatorDestinationBuilderUnit> builder
)

This method is deprecated. Use routes to create your DynamicFragmentDestination instead

static final void
fragment(
    @NonNull DynamicNavGraphBuilder receiver,
    @NonNull String route,
    @NonNull String fragmentClassName,
    @ExtensionFunctionType @NonNull Function1<@NonNull DynamicFragmentNavigatorDestinationBuilderUnit> builder
)

Construct a new DynamicFragmentNavigator.Destination

Public methods

public static final void <F extends Fragment> fragment(
    @NonNull DynamicNavGraphBuilder receiver,
    @IdRes int id
)

Construct a new DynamicFragmentNavigator.Destination

Parameters
@IdRes int id

Destination id.

public static final void <F extends Fragment> fragment(
    @NonNull DynamicNavGraphBuilder receiver,
    @NonNull String route
)

Construct a new DynamicFragmentNavigator.Destination

Parameters
@NonNull String route

Destination route.

public static final void <F extends Fragment, T extends Object> fragment(
    @NonNull DynamicNavGraphBuilder receiver,
    @NonNull Map<@NonNull KType, @NonNull NavType<@NonNull ?>> typeMap
)

Construct a new DynamicFragmentNavigator.Destination

Parameters
<T extends Object>

the 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.

public static final void <F extends Fragment> fragment(
    @NonNull DynamicNavGraphBuilder receiver,
    @IdRes int id,
    @ExtensionFunctionType @NonNull Function1<@NonNull DynamicFragmentNavigatorDestinationBuilderUnit> builder
)

Construct a new DynamicFragmentNavigator.Destination

Parameters
@IdRes int id

Destination id.

public static final void <F extends Fragment> fragment(
    @NonNull DynamicNavGraphBuilder receiver,
    @NonNull String route,
    @ExtensionFunctionType @NonNull Function1<@NonNull DynamicFragmentNavigatorDestinationBuilderUnit> builder
)

Construct a new DynamicFragmentNavigator.Destination

Parameters
@NonNull String route

Destination route.

@ExtensionFunctionType @NonNull Function1<@NonNull DynamicFragmentNavigatorDestinationBuilderUnit> builder

the builder used to construct the fragment destination

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

Construct a new DynamicFragmentNavigator.Destination

Parameters
<T extends Object>

the 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 DynamicFragmentNavigatorDestinationBuilderUnit> builder

the builder used to construct the fragment destination

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

Construct a new DynamicFragmentNavigator.Destination

Parameters
<T extends Object>

the destination's unique route from a KClass

@NonNull String fragmentClassName

Fully qualified class name of destination Fragment.

@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 DynamicFragmentNavigatorDestinationBuilderUnit> builder

the builder used to construct the fragment destination

public static final void fragment(
    @NonNull DynamicNavGraphBuilder receiver,
    @IdRes int id,
    @NonNull String fragmentClassName,
    @ExtensionFunctionType @NonNull Function1<@NonNull DynamicFragmentNavigatorDestinationBuilderUnit> builder
)

Construct a new DynamicFragmentNavigator.Destination

Parameters
@IdRes int id

Destination id.

@NonNull String fragmentClassName

Fully qualified class name of destination Fragment.

public static final void fragment(
    @NonNull DynamicNavGraphBuilder receiver,
    @NonNull String route,
    @NonNull String fragmentClassName,
    @ExtensionFunctionType @NonNull Function1<@NonNull DynamicFragmentNavigatorDestinationBuilderUnit> builder
)

Construct a new DynamicFragmentNavigator.Destination

Parameters
@NonNull String route

Destination route.

@NonNull String fragmentClassName

Fully qualified class name of destination Fragment.

@ExtensionFunctionType @NonNull Function1<@NonNull DynamicFragmentNavigatorDestinationBuilderUnit> builder

the builder used to construct the fragment destination