The Android XR SDK has reached Developer Preview 4, and we want your feedback! Try things out, and visit our support page to reach out.

XRObjectTrackingFeature

This OpenXRInteractionFeature configures Android XR extensions XR_ANDROID_trackables and XR_ANDROID_trackables_object at runtime and provides XRObjectTrackingSubsystem implementation that works on Android XR platform.

Note: due to the dependency on XRSessionFeature, its priority must be lower than it so the feature registration happens after XrInstanceManager creation.

Summary

Inheritance

Inherits from: OpenXRFeature, Google.XR.Extensions.IXRSpatialSdk

Public attributes

ExtensionStrings = "XR_ANDROID_trackables " + "XR_ANDROID_trackables_object"
const string
The OpenXR Extension string.
FeatureId = "com.google.xr.extensions.object_tracking"
const string
The feature ID string.
UiName = "Android XR (Extensions): Object Tracking"
const string
The UI name shows on the XR Plug-in Management panel, help users to understand validation errors and expected fixes.

Public static attributes

IsExtensionEnabled => _extensionEnabled
bool
Gets if the required OpenXR extension is enabled.
RequiredPermission = AndroidXRPermission.SceneUnderstandingCoarse
Runtime permission required to enable scene understanding.

Public functions

GetTargetVersion()
Gets the target version of the given feature if applicable.

Public attributes

ExtensionStrings

conststringExtensionStrings=
"XR_ANDROID_trackables "+
"XR_ANDROID_trackables_object"

The OpenXR Extension string.

Used to check if this extensions is available or enabled. To enable runtime configuration, always enabling persistence extension when it's available.

FeatureId

conststringFeatureId="com.google.xr.extensions.object_tracking"

The feature ID string.

UiName

conststringUiName="Android XR (Extensions): Object Tracking"

The UI name shows on the XR Plug-in Management panel, help users to understand validation errors and expected fixes.

Public static attributes

IsExtensionEnabled

boolIsExtensionEnabled=>_extensionEnabled

Gets if the required OpenXR extension is enabled.

When OpenXR runtime is waiting, it returns null. Otherwise, it indicates whether the XR_ANDROID_trackables and XR_ANDROID_trackables_object extensions are available on current device.

RequiredPermission

readonlyAndroidXRPermission RequiredPermission=
AndroidXRPermission.SceneUnderstandingCoarse

Runtime permission required to enable scene understanding.

Public functions

GetTargetVersion

XRSpatialSdkVersions GetTargetVersion()

Gets the target version of the given feature if applicable.

Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.

Last updated 2026年07月30日 UTC.