Compose Component

NavigationSuiteScaffold

XR-specific Navigation Suite Scaffold that wraps its content in a SpatialPanel.

Source set: Android
@Composable
public fun NavigationSuiteScaffold(
    navigationSuiteItems: NavigationSuiteScope.() -> Unit,
    modifier: SubspaceModifier,
    layoutType: NavigationSuiteType,
    navigationSuiteColors: NavigationSuiteColors = NavigationSuiteDefaults.colors(),
    state: NavigationSuiteScaffoldState = rememberNavigationSuiteScaffoldState(),
    content: @Composable () -> Unit = {},
)

Parameters

navigationSuiteItems the navigation items to be displayed
modifier the SubspaceModifier to be applied to the navigation suite scaffold
layoutType the current NavigationSuiteType
navigationSuiteColors NavigationSuiteColors that will be used to determine the container (background) color of the navigation component and the preferred color for content inside the navigation component
state the NavigationSuiteScaffoldState of this navigation suite scaffold
content the content of your screen
Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: