API reference

SceneConfigScope Class

Receiver for a SpatialSceneconfigure block. Enable scene capabilities by calling the SDK's scene configuration extensions on it — e.g. FocusMode() to observe focus mode — declaring as many as you need:
setContent { SpatialScene(configure = { FocusMode() }) { MainScreen() } }

The block is @Composable and recomposes with the scene, so features can react to state. Each feature is independent and layers onto the scene, so new ones are added as new feature composables without changing existing call sites. Obtain a scope only as the receiver of a configure block — it is not constructed directly.

Signature

class SceneConfigScope