Package-level declarations

Types

Link copied to clipboard

Marks declarations that are still experimental in solivagant API, which means that the design of the corresponding declarations has open issues which may (or may not) lead to their changes in the future. Roughly speaking, there is a chance that those declarations will be deprecated in the near future or the semantics of their behavior may change in some way that may break some code.

sealed interface LifecycleOwnerComposeUIViewControllerDelegate : ComposeUIViewControllerDelegate, LifecycleOwner

Represents both a ComposeUIViewControllerDelegate and a LifecycleOwner.

Link copied to clipboard

Defaults used in NavHost

Link copied to clipboard

Represents set of callbacks to define transition animations for destinations in NavHost

Link copied to clipboard

A class helps to support saved state in Compose.

Link copied to clipboard

Stack validation mode.

Functions

Link copied to clipboard
Link copied to clipboard

Clear this SavedStateSupport when the @Composable exits the composition.

Link copied to clipboard
Link copied to clipboard
fun NavHost(startRoute: NavRoot, destinations: ImmutableSet<NavDestination>, modifier: Modifier = Modifier, navEventNavigator: NavEventNavigator? = null, destinationChangedCallback: (BaseRoute) -> Unit? = null, transitionAnimations: NavHostTransitionAnimations = NavHostDefaults.transitionAnimations(), stackValidationMode: StackValidationMode = NavHostDefaults.stackValidationMode())

Create a new NavHost containing all given destinations. startRoute will be used as the start destination of the graph. Use com.hoc081098.solivagant.navigation.NavEventNavigator and NavigationSetup to change what is shown in NavHost.

Link copied to clipboard
inline fun <T : Closeable> rememberCloseableOnRoute(route: BaseRoute, noinline factory: () -> T): T
fun <T : Closeable> rememberCloseableOnRoute(route: BaseRoute, type: KClass<T>, factory: () -> T): T

Remember a Closeable on the route.