Package com.kpstv.navigation.compose
Types
A navigator for managing pure composable navigation in Jetpack Compose.
Transition are usually implemented by customizing the Modifier.graphicsLayer.
Destination must implement this interface to identify a Route as Dialog.
A class which is tied to every Route's destination that itself is SavedStateRegistryOwner&ViewModelStoreOwner.
Interface to define custom transition.
Set of options that can be optionally specified when navigating to new destination through ComposeNavigator.Controller.navigateTo.
Class must implement this interface to identify as navigation root. Each navigation root should specify a Key to identify this route as a unique route in the backstack.
Navigation root key to be provided during ComposeNavigator.Setup(...)
to make current navigation unique in the backstack & to enforce correct typesafe navigation.
This key then can be used to retrieve an instance of ComposeNavigator.Controller
A key to uniquely identify this transition that can be used in conjunction with NavOptions.withAnimation to specify animations for navigating to a new destination.
If marked on a function or a property then it means that the function or property is unstable & should be carefully use in production code as it's behavior might not be stable.
Functions
Find the ComposeNavigator provided by the nearest CompositionLocalProvider.
Find & remember an instance of ComposeNavigator.Controller provided by the nearest CompositionLocalProvider for a Navigation root key.
Create & remember the instance of the ComposeNavigator.Controller that will be used for navigation within the Route of type T.