NavigatorProvider

public class NavigatorProvider


A NavigationProvider stores a set of Navigators that are valid ways to navigate to a destination.

Summary

Public constructors

Public methods

final Navigator<@NonNull NavDestination>

Register a navigator using the name provided by the Navigator.Name annotation.

@CallSuper Navigator<@NonNull NavDestination>

Register a navigator by name.

final @NonNull T
<T extends Navigator<?>> getNavigator(Class<T> navigatorClass)

Retrieves a registered Navigator using the name provided by the Navigator.Name annotation.

@CallSuper @NonNull T
<T extends Navigator<?>> getNavigator(String name)

Retrieves a registered Navigator by name.

Extension functions

final @NonNull NavGraph
DynamicNavGraphBuilderKt.navigation(
    NavigatorProvider receiver,
    @IdRes int id,
    @IdRes int startDestination,
    @ExtensionFunctionType Function1<DynamicNavGraphBuilderUnit> builder
)

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

final @NonNull NavGraph