Property

LocalSpatialCapabilities

Provides the current SpatialCapabilities that are currently available to the application.

Source set: Android
public val LocalSpatialCapabilities: ProvidableCompositionLocal<SpatialCapabilities> =
    compositionLocalWithComputedDefaultOf {
        LocalComposeXrOwners.currentValue.spatialCapabilities ?: SpatialCapabilities.NoCapabilities
    }

Provides the current SpatialCapabilities that are currently available to the application.

The SpatialCapabilities represents a set of inherent permissions that the application may have depending on the context. For example, in home space mode, the app may not have the ability to create spatial UI; however, in full space mode, the application may have this capability.

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: