Composable Component

NavigationSuiteScaffold

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

RevenueCat

RevenueCat

Add subscriptions to your apps in minutes

Ad Get started for free
Android
@ExperimentalMaterial3XrApi
@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