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.

Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: