Start native apps faster with the Composables CLI ->
Property

LocalSpatialConfiguration

Provides the current SpatialConfiguration.

Source set: Android
public val LocalSpatialConfiguration: ProvidableCompositionLocal<SpatialConfiguration> =
    compositionLocalWithComputedDefaultOf {
        LocalComposeXrOwners.currentValue.spatialConfiguration
            ?: ContextOnlySpatialConfiguration(LocalContext.currentValue)
    }

Provides the current SpatialConfiguration.

The behavior of the configuration object will depend on whether the system XR Spatial feature is enabled.