ComposeNavigator
Kotlin
|Java
class ComposeNavigator : Navigator<ComposeNavigator.Destination>
kotlin.Any | ||
↳ | androidx.navigation.Navigator<androidx.navigation.compose.ComposeNavigator.Destination> | |
↳ | androidx.navigation.compose.ComposeNavigator |
Navigator that navigates through Composables. Every destination using this Navigator must set a valid Composable by setting it directly on an instantiated Destination or calling composable.
Summary
Nested classes | |
---|---|
NavDestination specific to ComposeNavigator |
Public constructors | |
---|---|
<init>() Navigator that navigates through Composables. |
Public methods | |
---|---|
ComposeNavigator.Destination | |
NavDestination? |
navigate(: ComposeNavigator.Destination, : Bundle?, : NavOptions?, : Navigator.Extras?) |
Unit | |
Bundle? | |
Boolean |
Public constructors
<init>
ComposeNavigator()
Navigator that navigates through Composables. Every destination using this Navigator must set a valid Composable by setting it directly on an instantiated Destination or calling composable.
Public methods
createDestination
fun createDestination(): ComposeNavigator.Destination
navigate
fun navigate(
: ComposeNavigator.Destination,
: Bundle?,
: NavOptions?,
: Navigator.Extras?
): NavDestination?
onSaveState
fun onSaveState(): Bundle?
popBackStack
fun popBackStack(): Boolean