DialogFragmentNavigatorDestinationBuilder


@NavDestinationDsl
public final class DialogFragmentNavigatorDestinationBuilder extends NavDestinationBuilder


DSL for constructing a new DialogFragmentNavigator.Destination

Summary

Public constructors

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

DSL for constructing a new DialogFragmentNavigator.Destination

DSL for constructing a new DialogFragmentNavigator.Destination

Inherited methods

From androidx.navigation.NavDestinationBuilder
final void
argument(
    @NonNull String name,
    @ExtensionFunctionType @NonNull Function1<@NonNull NavArgumentBuilderUnit> argumentBuilder
)
final void
final void
<T extends Object> deepLinkSafeArgs(@NonNull String basePath)
final void
final void
final void
deepLink(@NonNull String uriPattern)
final void
<T extends Object> deepLink(
    @NonNull String basePath,
    @ExtensionFunctionType @NonNull Function1<@NonNull NavDeepLinkDslBuilderUnit> navDeepLink
)
final CharSequence
final @NonNull Navigator<@NonNull DialogFragmentNavigator.Destination>
final String
@NonNull DialogFragmentNavigator.Destination
final void

Public constructors

DialogFragmentNavigatorDestinationBuilder

Added in 2.1.0
public DialogFragmentNavigatorDestinationBuilder(
    @NonNull DialogFragmentNavigator navigator,
    @IdRes int id,
    @NonNull KClass<@NonNull DialogFragment> fragmentClass
)

DSL for constructing a new DialogFragmentNavigator.Destination

Parameters
@NonNull DialogFragmentNavigator navigator

navigator used to create the destination

@IdRes int id

the destination's unique id

@NonNull KClass<@NonNull DialogFragment> fragmentClass

the class name of the DialogFragment to show when you navigate to this destination

DialogFragmentNavigatorDestinationBuilder

public DialogFragmentNavigatorDestinationBuilder(
    @NonNull DialogFragmentNavigator navigator,
    @NonNull String route,
    @NonNull KClass<@NonNull DialogFragment> fragmentClass
)

DSL for constructing a new DialogFragmentNavigator.Destination

Parameters
@NonNull DialogFragmentNavigator navigator

navigator used to create the destination

@NonNull String route

the destination's unique route. This sets the route on the newly constructed NavDestination. This can be any valid non-empty String.

@NonNull KClass<@NonNull DialogFragment> fragmentClass

the class name of the DialogFragment to show when you navigate to this destination

DialogFragmentNavigatorDestinationBuilder

public DialogFragmentNavigatorDestinationBuilder(
    @NonNull DialogFragmentNavigator navigator,
    @NonNull KClass<@NonNull Object> route,
    @NonNull Map<@NonNull KType, @NonNull NavType<@NonNull ?>> typeMap,
    @NonNull KClass<@NonNull DialogFragment> fragmentClass
)

DSL for constructing a new DialogFragmentNavigator.Destination

Parameters
@NonNull DialogFragmentNavigator navigator

navigator used to create the destination

@NonNull KClass<@NonNull Object> route

the destination's unique route from a KClass. This sets the route on the newly constructed NavDestination.

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

@NonNull KClass<@NonNull DialogFragment> fragmentClass

the class name of the DialogFragment to show when you navigate to this destination

Public methods