Package-level declarations

Functions

Link copied to clipboard
@JvmName(name = "setup")
fun <T : ToolbarLayout> T.setupNavigation(bottomTabLayout: BottomTabLayout, navHostFragment: NavHostFragment, configuration: AppBarConfiguration = AppBarConfiguration(bottomTabLayout.bottomTabLayoutMenu, 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 <T : DrawerLayout> T.setupNavigation(drawerNavigationView: DrawerNavigationView, navHostFragment: NavHostFragment, configuration: AppBarConfiguration = AppBarConfiguration(drawerNavigationView.getDrawerMenu(), this), @FloatRange(from = 0.0, to = 1.0) toolbarBackThreshold: Float = 0.75f, lockWithDrawer: Boolean = true)

Sets up navigation for DrawerLayout 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.bottomTabLayoutMenu, null), @FloatRange(from = 0.0, to = 1.0) toolbarBackThreshold: Float = 0.75f, builder: NavGraphBuilder.() -> Unit)
@JvmName(name = "setupDsl")
fun <T : DrawerLayout> T.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, lockWithDrawer: Boolean = true, builder: NavGraphBuilder.() -> Unit)

Overload for programmatic navigation graph creation using NavGraphBuilder DSL.