Skip to main content
Version: 21 Aug 2024

MagicLeapLocalizationMapFeature

NameSpace: LocalizationMaps

Inherits from:
MagicLeapOpenXRFeatureWithInterception< MagicLeapLocalizationMapFeature >,
MagicLeapOpenXRFeatureBase,
OpenXRFeature

Public Methods

XrResult EnableLocalizationEvents

public XrResult EnableLocalizationEvents(
bool enableEvents
)

Parameters

TypeNameDescription
boolenableEvents

XrResult ExportLocalizatioMap

public XrResult ExportLocalizatioMap(
string mapId,
out byte [] mapData
)

Parameters

TypeNameDescription
stringmapId
out byte []mapData

XrResult ExportLocalizationMap

public XrResult ExportLocalizationMap(
string mapId,
out byte [] mapData
)

Parameters

TypeNameDescription
stringmapId
out byte []mapData

bool GetLatestLocalizationMapData

public bool GetLatestLocalizationMapData(
out LocalizationEventData data
)

Parameters

TypeNameDescription
out LocalizationEventDatadata

XrResult GetLocalizationMapsList

public XrResult GetLocalizationMapsList(
out LocalizationMap [] maps
)

Parameters

TypeNameDescription
out LocalizationMap []maps

Pose GetMapOrigin

public Pose GetMapOrigin()

XrResult ImportLocalizationMap

public XrResult ImportLocalizationMap(
byte [] mapData,
out string mapId
)

Parameters

TypeNameDescription
byte []mapData
out stringmapId

XrResult RequestMapLocalization

public XrResult RequestMapLocalization(
string mapId
)

Parameters

TypeNameDescription
stringmapId

Protected Methods

MarkFunctionsToIntercept

protected virtual override void MarkFunctionsToIntercept()

Reimplements: MarkFunctionsToIntercept


OnInstanceCreate

protected override bool OnInstanceCreate(
ulong xrInstance
)

Parameters

TypeNameDescription
ulongxrInstance

OnSessionDestroy

protected override void OnSessionDestroy(
ulong xrSession
)

Parameters

TypeNameDescription
ulongxrSession

Public Attributes

ExtensionName


public const string ExtensionName = "XR_ML_localization_map";


FeatureId


public const string FeatureId = "com.magicleap.openxr.feature.ml2_localizationmap";


Public Events

OnLocalizationChangedEvent

public static Action< LocalizationEventData > OnLocalizationChangedEvent()