The Meta VR Layout SDK allows Android 2D app developers to easily manage their app's visual representation in the home environment. It exposes the ability to create and anchor Spatial Windows in a way that feels natural in Jetpack Compose.
Version 1.0.0 Release Notes
New Features
Introduced the Meta VR Layout SDK for Compose, enabling developers to optimize their Android apps for spatial and VR capabilities in the Meta Horizon OS home environment. The SDK allows for the creation of spatial windows, anchoring and sizing, priority management, and fallback strategies to enhance user experience. Get started with the Meta VR Layout SDK
Added support for declaring additional windows alongside an app's main panel using Spatial Windows, each rendering its own content. Spatial Window guide
Introduced anchoring and sizing capabilities through WindowModifier, allowing developers to attach windows to edges of the main panel and set their width, height, and depth offset. Window modifiers reference
Implemented priority management for windows, determining which windows get placed when there are more declarations than available slots. Priority and preemption
Added fallback strategies for windows that cannot be placed immediately, including Inline and Drop strategies. Fallback strategy
Ensured compatibility with other Android devices by running SpatialScene in compatibility mode on unsupported platforms. Compatibility mode