API reference

LocalSpatialSupported Composition Local

Whether the host device can place volumetric (spatial) windows. SpatialScene provides true only when the device is a HorizonOS headset on a supported SDK version, the app holds the volumetric-window permission, and the platform window manager and the activity's window token are available; and false in compatibility mode (a phone, a HorizonOS build below the SDK's minimum supported version, a missing permission, or an activity with no token). Window composables read it to decide whether to attempt platform placement or render their fallback.
Defaults to true so a window emitted outside a scene still surfaces the usual "no scene" error rather than silently falling back.
Type: ProvidableCompositionLocal

Signature

val LocalSpatialSupported: ProvidableCompositionLocal<Boolean>