Package-level declarations

Types

Link copied to clipboard
class Nav3BrowserHistory(pushState: (serializedState: String) -> Unit, replaceState: (serializedState: String) -> Unit, restoreState: (serializedState: String) -> Unit)

Coordinates serialized navigation snapshots with a platform browser-history adapter.

Link copied to clipboard
interface NavScreen : NavKey

A Nav3 destination key that also provides the destination's UI.

Link copied to clipboard
Link copied to clipboard
data class ToolbarConfig(val title: String, val subtitle: String? = null, val actions: @Composable RowScope.() -> Unit = {}, val scrollBehavior: StyledExpandableTopBarScrollBehavior? = null)

Values for the shared scaffold toolbar. The page can opt into expandable scrolling by providing a behavior; null keeps the toolbar non-expandable. Navigation and platform presentation remain scaffold-owned.

Functions

Link copied to clipboard
fun RegisterNavigationBackHandler(enabled: Boolean = true, canNavigateBack: Boolean = false, canNavigateForward: Boolean = false, priority: NavigationBackPriority = NavigationBackPriority.Screen, owner: NavScreen? = LocalNav3ActiveScreen.current, onBack: () -> Boolean)

Registers a back handler with the root navigation manager. Enabled handlers run before the root stack; NavigationBackPriority.Overlay handlers run before screen handlers. The callback returns true when it consumed Back. For screen-priority handlers, canNavigateBack controls whether the handler is exposed as an available toolbar action. Overlay handlers can consume Back without exposing a toolbar action. By default, the handler belongs to the current NavScreen; pass owner = null for an app-wide handler such as a sheet.