SpatialApiVersionHelper


object SpatialApiVersionHelper


Provides the Spatial API version that the device supports.

This object queries the underlying XR platform to determine which Spatial API versions are supported. It loads all available SpatialApiVersionProvider implementations and reports the highest version number found.

Summary

Public properties

Int

The version of the Android XR Spatial APIs available to Jetpack XR at runtime.

Public properties

spatialApiVersion

Added in 1.0.0-alpha11
val spatialApiVersionInt

The version of the Android XR Spatial APIs available to Jetpack XR at runtime.

If the Spatial APIs are available, this value will be one of the constants declared in SpatialApiVersions.

Throws
IllegalStateException

if no SpatialApiVersionProvider service implementation is found.