Skip to main content
Version: 14 Oct 2024

MagicLeapXrProviderNativeBindings

NameSpace: MagicLeap

Inherits from:
MagicLeapNativeBindings

Public Methods

ulong GetControllerTrackerHandle

public ulong GetControllerTrackerHandle()

ulong GetEyeTrackerHandle

public ulong GetEyeTrackerHandle()

ulong GetHandTrackerHandle

public ulong GetHandTrackerHandle()

ulong GetHeadTrackerHandle

public ulong GetHeadTrackerHandle()

ulong GetInputHandle

public ulong GetInputHandle()

MLResult.Code GetUnityPose

public MLResult.Code GetUnityPose(
MLCoordinateFrameUID cfuid,
out Pose pose
)

Parameters

TypeNameDescription
MLCoordinateFrameUIDcfuidA unique identifier which represents a coordinate frame. The unique identifier is comprised of two values.
out Posepose

bool IsHeadTrackingAvailable

public bool IsHeadTrackingAvailable()

delegate void OnDebugMessageDelegate

Delegate describing the callback necessary to monitor when an debug message is received.

public delegate void OnDebugMessageDelegate(
LogLevel logLevel,
string message,
IntPtr context
)

Parameters

TypeNameDescription
LogLevellogLevelThe log level of the debug utils.
stringmessageThe debug message.
IntPtrcontextPointer to a context object.

void PredictSnapshot

public void PredictSnapshot(
long predictionTimestamp,
bool enableSnapshotPrediction
)

Parameters

TypeNameDescription
longpredictionTimestamp
boolenableSnapshotPrediction

void ResetSnapshotPrediction

public void ResetSnapshotPrediction()

MLResult.Code StartHapticsPattern

public MLResult.Code StartHapticsPattern(
uint eventType,
IntPtr buffer
)

Parameters

TypeNameDescription
uinteventType
IntPtrbuffer

MLResult.Code StopHaptics

public MLResult.Code StopHaptics()

Public Attributes

SettingsKey


public const string SettingsKey = "com.magicleap.unitysdk.settings";


Public Enums

LogLevel

EnumeratorValueDescription
Fatal
Error
Warning
Info
Debug
Verbose