SpatialTwoRowsTopAppBar

Functions summary

Unit
@ExperimentalMaterial3XrApi
@Composable
SpatialTwoRowsTopAppBar(
    title: @Composable (expanded: Boolean) -> Unit,
    modifier: Modifier,
    subtitle: (@Composable (expanded: Boolean) -> Unit)?,
    navigationIcon: @Composable () -> Unit,
    actions: @Composable RowScope.() -> Unit,
    titleHorizontalAlignment: Alignment.Horizontal,
    collapsedHeight: Dp,
    expandedHeight: Dp,
    windowInsets: WindowInsets,
    colors: TopAppBarColors,
    scrollBehavior: TopAppBarScrollBehavior?
)

XR-specific TwoRowsTopAppBar that displays a two-rows top app bar inside a top-aligned Orbiter.

Functions

SpatialTwoRowsTopAppBar

@ExperimentalMaterial3XrApi
@Composable
fun SpatialTwoRowsTopAppBar(
    title: @Composable (expanded: Boolean) -> Unit,
    modifier: Modifier = Modifier,
    subtitle: (@Composable (expanded: Boolean) -> Unit)? = null,
    navigationIcon: @Composable () -> Unit = {},
    actions: @Composable RowScope.() -> Unit = {},
    titleHorizontalAlignment: Alignment.Horizontal = Alignment.Start,
    collapsedHeight: Dp = Dp.Unspecified,
    expandedHeight: Dp = Dp.Unspecified,
    windowInsets: WindowInsets = TopAppBarDefaults.windowInsets,
    colors: TopAppBarColors = TopAppBarDefaults.topAppBarColors(),
    scrollBehavior: TopAppBarScrollBehavior? = null
): Unit

XR-specific TwoRowsTopAppBar that displays a two-rows top app bar inside a top-aligned Orbiter.

Parameters
title: @Composable (expanded: Boolean) -> Unit

the title to be displayed in the top app bar

modifier: Modifier = Modifier

the Modifier to be applied to this top app bar

subtitle: (@Composable (expanded: Boolean) -> Unit)? = null

optional subtitle to be displayed in the top app bar

navigationIcon: @Composable () -> Unit = {}

optional navigation icon to be displayed at the start of the top app bar

actions: @Composable RowScope.() -> Unit = {}

optional actions to be displayed at the end of the top app bar

titleHorizontalAlignment: Alignment.Horizontal = Alignment.Start

the horizontal alignment of the title

collapsedHeight: Dp = Dp.Unspecified

the collapsed height of the top app bar

expandedHeight: Dp = Dp.Unspecified

the expanded height of the top app bar

windowInsets: WindowInsets = TopAppBarDefaults.windowInsets

a window insets of the top app bar

colors: TopAppBarColors = TopAppBarDefaults.topAppBarColors()

TopAppBarColors that will be used to resolve the colors used for this top app bar

scrollBehavior: TopAppBarScrollBehavior? = null

a TopAppBarScrollBehavior