SpatialTopAppBar

Functions summary

Unit
@ExperimentalMaterial3XrApi
@Composable
SpatialTopAppBar(
    title: @Composable () -> Unit,
    modifier: Modifier,
    navigationIcon: @Composable () -> Unit,
    actions: @Composable RowScope.() -> Unit,
    windowInsets: WindowInsets,
    colors: TopAppBarColors,
    scrollBehavior: TopAppBarScrollBehavior?
)

XR-specific SingleRowTopAppBar that displays a single-row top app bar inside a top-aligned Orbiter.

Functions

@ExperimentalMaterial3XrApi
@Composable
fun SpatialTopAppBar(
    title: @Composable () -> Unit,
    modifier: Modifier = Modifier,
    navigationIcon: @Composable () -> Unit = {},
    actions: @Composable RowScope.() -> Unit = {},
    windowInsets: WindowInsets = TopAppBarDefaults.windowInsets,
    colors: TopAppBarColors = TopAppBarDefaults.topAppBarColors(),
    scrollBehavior: TopAppBarScrollBehavior? = null
): Unit

XR-specific SingleRowTopAppBar that displays a single-row top app bar inside a top-aligned Orbiter.

Parameters
title: @Composable () -> Unit

the title to be displayed in the top app bar

modifier: Modifier = Modifier

the Modifier to be applied to this 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

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