Class MLSpatialAnchorsStorage

java.lang.Object
org.lwjgl.openxr.MLSpatialAnchorsStorage

public class MLSpatialAnchorsStorage extends Object
The XR_ML_spatial_anchors_storage extension.

This extension allows spatial anchors created by XR_ML_spatial_anchors to be persisted beyond the head pose session.

Spatial anchor management is closely tied to the selected mapping mode on the device. The modes are mutually exclusive and affect the functionality of these APIs. The available mapping modes are:

On-Device Mode
A persistent mode in which anchors are persisted locally and will be available across multiple sessions when localized to the same localization map in which they were published.
AR Cloud Mode
A persistent mode in which anchors are persisted in the cloud environment and will be available across multiple sessions and across multiple devices that are localized to the same localization map in which they were published.

For more details on mapping modes refer to the XR_ML_localization_map extension.

Permissions

Android applications must have the com.magicleap.permission.SPATIAL_ANCHOR permission listed in their manifest to use this extension. (protection level: normal)