Package-level declarations

Types

Link copied to clipboard
data class ListDetailScene<T : Any>(val key: Any, val listEntry: NavEntry<T>, val detailEntry: NavEntry<T>?, val previousEntries: List<NavEntry<T>>, onBack: () -> Unit, framed: Boolean = true) : Scene<T>

A list page with the detail opened from it beside it, or with a placeholder until one is.

Link copied to clipboard
class ListDetailSceneStrategy<T : Any>(enabled: Boolean, framed: Boolean = true) : SceneStrategy<T>

Shows list and detail pages side by side while enabled, which follows the window width.

Link copied to clipboard
class PageChrome(val title: @Composable () -> String, val actions: @Composable RowScope.() -> Unit? = null, val key: Any? = null, val topBarScrollMode: TopBarScrollMode = TopBarScrollMode.Default)

A page's title and app bar actions, attached to its entry so a scene that shows several pages at once can draw one app bar for all of them.

Link copied to clipboard
data class PageScene<T : Any>(val key: Any, val entry: NavEntry<T>, val previousEntries: List<NavEntry<T>>) : Scene<T>

One page filling the window, drawn like a window: opaque and clipped to the display's rounded corners. At full size the clip hides behind the physical corners; while the back gesture shrinks the page, the page keeps the corners the screen had, as a system window does. Beside a rail or a drawer the page's start corners meet the navigation instead, and stay square.

Link copied to clipboard
Link copied to clipboard
data class ShellEntryInfo(val kind: DestinationKind, val tabIndex: Int, val paneRole: PaneRole, val transition: ScreenTransition? = null)

What the shell attaches to every entry it creates, so scenes and transitions can tell a tab from a child and a list from a detail without knowing the app's keys.

Properties

Link copied to clipboard

The pane the current page is drawn in. A page inside a pane leaves its app bar to the scene, and a detail beside its list has no back button, since the list is already on screen.

Link copied to clipboard

The content key of the detail open beside a list, so the list can highlight its row.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun PageSurface(content: @Composable () -> Unit)
Link copied to clipboard

The shape of the display's own rounded corners, or a rectangle where the device reports none (below Android 12, or in a freeform window).