C Specification
The XrEventDataGeospatialTrackerStateChangedANDROID structure is defined as:
// Provided by XR_ANDROID_geospatial
typedef struct XrEventDataGeospatialTrackerStateChangedANDROID {
XrStructureType type;
const void* next;
XrGeospatialTrackerANDROID geospatialTracker;
XrGeospatialTrackerStateANDROID state;
XrResult initializationResult;
XrTime time;
} XrEventDataGeospatialTrackerStateChangedANDROID;
Members
Description
The XrEventDataGeospatialTrackerStateChangedANDROID structure is sent
when the geospatial tracker state changes.
If the application has a valid XrGeospatialTrackerANDROID, it should
poll for this event.
The first event received for a tracker will have state
XR_GEOSPATIAL_TRACKER_STATE_STOPPED_ANDROID.
After a runtime-determined amount of time, the state must change to either
XR_GEOSPATIAL_TRACKER_STATE_RUNNING_ANDROID or
XR_GEOSPATIAL_TRACKER_STATE_INITIALIZATION_FAILED_ANDROID.
This transition will take an arbitrary amount of time.
If state changes to
XR_GEOSPATIAL_TRACKER_STATE_INITIALIZATION_FAILED_ANDROID, it must be
the last event received for this tracker, and the initializationResult
field will hold the error code.
It may take several seconds for an error to occur.
The application should destroy the tracker in this case.
If state changes to XR_GEOSPATIAL_TRACKER_STATE_STOPPED_ANDROID,
all previously created geospatial anchors must permanently stop tracking
and should be destroyed by the application.
The state may change back and forth between
XR_GEOSPATIAL_TRACKER_STATE_RUNNING_ANDROID and
XR_GEOSPATIAL_TRACKER_STATE_STOPPED_ANDROID arbitrarily many times.
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.