C Specification
The xrCreateGeospatialTrackerANDROID function is defined as:
// Provided by XR_ANDROID_geospatial
XrResult xrCreateGeospatialTrackerANDROID(
XrSession session,
const XrGeospatialTrackerCreateInfoANDROID* createInfo,
XrGeospatialTrackerANDROID* geospatialTrackerOutput);
Parameters
Description
An application can create an XrGeospatialTrackerANDROID handle by
calling xrCreateGeospatialTrackerANDROID.
The returned XrGeospatialTrackerANDROID handle can be subsequently
used in API calls.
If the application has not obtained the required permissions, the runtime
must return XR_ERROR_PERMISSION_INSUFFICIENT.
Only one XrGeospatialTrackerANDROID can exist at a time for a
particular XrSession.
The application must ensure that any previous
XrGeospatialTrackerANDROID objects have been destroyed before calling
this function again, otherwise the runtime must return
XR_ERROR_LIMIT_REACHED.
If the tracker is successfully created, it will initially enter the state
XR_GEOSPATIAL_TRACKER_STATE_STOPPED_ANDROID, and the application must
wait until the state changes to
XR_GEOSPATIAL_TRACKER_STATE_RUNNING_ANDROID before using the tracker.
See XrEventDataGeospatialTrackerStateChangedANDROID.
If the application passes an XrGeospatialTrackerANDROID which is not
in the state XR_GEOSPATIAL_TRACKER_STATE_RUNNING_ANDROID to a function
which requires it, the runtime must return
XR_ERROR_GEOSPATIAL_TRACKER_NOT_RUNNING_ANDROID.
If geospatialTrackerOutput is valid, it remains so only within the
lifecycle of session or until the application destroys it using
xrDestroyGeospatialTrackerANDROID, whichever comes first.
See Also
Document Notes
For more information, see the OpenXR Specification
This page is extracted from the OpenXR Specification. Fixes and changes should be made to the Specification, not directly.
Copyright
Copyright 2014-2026 The Khronos Group Inc.
This work is licensed under a Creative Commons Attribution 4.0 International License.