FragmentNavigatorDestinationBuilderKt

public final class FragmentNavigatorDestinationBuilderKt


Summary

Public methods

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

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

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

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

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

Construct a new FragmentNavigator.Destination

static final void
<F extends Fragment> fragment(
    @NonNull NavGraphBuilder receiver,
    @NonNull String route,
    @NonNull Function1<@NonNull FragmentNavigatorDestinationBuilderUnit> builder
)

Construct a new FragmentNavigator.Destination

Public methods

fragment

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

Construct a new FragmentNavigator.Destination

Parameters
@IdRes int id

the destination's unique id

fragment

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

Construct a new FragmentNavigator.Destination

Parameters
@IdRes int id

the destination's unique id

@NonNull Function1<@NonNull FragmentNavigatorDestinationBuilderUnit> builder

the builder used to construct the fragment destination

fragment

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

Construct a new FragmentNavigator.Destination

Parameters
@NonNull String route

the destination's unique route

fragment

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

Construct a new FragmentNavigator.Destination

Parameters
@NonNull String route

the destination's unique route

@NonNull Function1<@NonNull FragmentNavigatorDestinationBuilderUnit> builder

the builder used to construct the fragment destination