Loading...
Loading...
Build multi-window Meta Horizon OS experiences with the MetaVrx Layout SDK in Jetpack Compose or React Native. Covers framework selection, setup, anchoring, semantic offsets, window promotion, fallback, priority, lifecycle, and theming. Use for apps that need multiple app-owned panels without an immersive scene. Build path: Standard Android, including React Native; use hz-quest-verify-first if the path is unclear, and do not use this skill for immersive Spatial SDK scenes.
npx skill4agent add meta-quest/agentic-tools hz-metavrx-layout-sdk| Existing app UI | API style | Start here |
|---|---|---|
| Jetpack Compose | | Compose setup and Compose API |
| React Native | | React Native setup and React Native API |
setContent {
SpatialScene(
theme = { content -> AppTheme { content() } },
) {
MainScreen()
SpatialWindow(
key = "details",
modifier = WindowModifier
.size(480.dp, 640.dp)
.anchor(WindowAnchor.End),
) {
DetailsScreen()
}
}
}import {SpatialSceneProvider, SpatialWindow} from '@metavr/layout-compat';
<SpatialSceneProvider>
<MainScreen />
<SpatialWindow
label="details"
windowWidth={480}
windowHeight={640}
anchor="end">
<DetailsScreen />
</SpatialWindow>
</SpatialSceneProvider>;SpatialWindowmetavr docs api-search "<Class>"