XRImageTrackingFeature

This OpenXRFeature configures Android XR extensions XR_ANDROID_trackables, XR_ANDROID_trackables_image, and XR_EXT_future at runtime and provides a XRImageTrackingSubsystem implementation that works on the 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_image " + "XR_EXT_future"
const string
The OpenXR Extension string.
FeatureId = "com.google.xr.extensions.image_tracking"
const string
The feature ID string.
UiName = "Android XR (Extensions): Image 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

RequiredPermission = AndroidXRPermission.SceneUnderstandingCoarse
Runtime permission required to enable scene understanding.

Properties

IsExtensionEnabled
static bool
Gets if the required set of OpenXR extensions is enabled.

Public functions

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

Public attributes

ExtensionStrings

const string ExtensionStrings =
            "XR_ANDROID_trackables " +
            "XR_ANDROID_trackables_image " +
            "XR_EXT_future"

The OpenXR Extension string.

Used to check if these extensions are available or enabled.

FeatureId

const string FeatureId = "com.google.xr.extensions.image_tracking"

The feature ID string.

UiName

const string UiName = "Android XR (Extensions): Image Tracking"

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

Public static attributes

RequiredPermission

readonly AndroidXRPermission RequiredPermission =
            AndroidXRPermission.SceneUnderstandingCoarse

Runtime permission required to enable scene understanding.

Properties

IsExtensionEnabled

static bool IsExtensionEnabled

Gets if the required set of OpenXR extensions is enabled.

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

Public functions

GetTargetVersion

XRSpatialSdkVersions GetTargetVersion()

Gets the target version of the given feature if applicable.