Package-level declarations

Functions

Link copied to clipboard
@JvmName(name = "setup")
fun <T : ToolbarLayout> T.setupNavigation(bottomTabLayout: BottomTabLayout, navHostFragment: NavHostFragment, configuration: AppBarConfiguration = AppBarConfiguration(bottomTabLayout.menu, null), @FloatRange(from = 0.0, to = 1.0) toolbarBackThreshold: Float = 0.75f)

Sets up navigation for ToolbarLayout with a BottomTabLayout and NavHostFragment. Supports both XML and programmatically created navigation graphs (NavGraphBuilder DSL).

@JvmName(name = "setup")
fun NavDrawerLayout.setupNavigation(drawerNavigationView: DrawerNavigationView, navHostFragment: NavHostFragment, configuration: AppBarConfiguration = AppBarConfiguration(drawerNavigationView.getDrawerMenu(), this), @FloatRange(from = 0.0, to = 1.0) toolbarBackThreshold: Float = 0.75f)

Sets up navigation for NavDrawerLayout with a DrawerNavigationView and NavHostFragment. Supports both XML and programmatically created navigation graphs (NavGraphBuilder DSL).

@JvmName(name = "setupDsl")
fun <T : ToolbarLayout> T.setupNavigation(bottomTabLayout: BottomTabLayout, navHostFragment: NavHostFragment, startDestination: KClass<*>, route: KClass<*>? = null, configuration: AppBarConfiguration = AppBarConfiguration(bottomTabLayout.menu, null), @FloatRange(from = 0.0, to = 1.0) toolbarBackThreshold: Float = 0.75f, builder: NavGraphBuilder.() -> Unit)
@JvmName(name = "setupDsl")
fun NavDrawerLayout.setupNavigation(drawerNavigationView: DrawerNavigationView, navHostFragment: NavHostFragment, startDestination: KClass<*>, route: KClass<*>? = null, configuration: AppBarConfiguration = AppBarConfiguration(drawerNavigationView.getDrawerMenu(), this), @FloatRange(from = 0.0, to = 1.0) toolbarBackThreshold: Float = 0.75f, builder: NavGraphBuilder.() -> Unit)

Overload for programmatic navigation graph creation using NavGraphBuilder DSL.