Skip to main content
Version: 11 Nov 2025

Utils

Public Methods​

InputDevice FindMagicLeapDevice​

Returns valid Magic Leap input device for provided InputDeviceCharacteristics, InputDevice.isValid . If there is none matching device the returned gonna be set as false.

public static InputDevice FindMagicLeapDevice(
InputDeviceCharacteristics inputDeviceCharacteristics
)

Parameters

TypeNameDescription
InputDeviceCharacteristicsinputDeviceCharacteristics

void PredictSnapshot​

Instructs the input subsystem to use MLPerceptionGetPerdictedSnapshot by default.

public static void PredictSnapshot(
long timestamp,
bool predictSnapshots
)

Parameters

TypeNameDescription
longtimestampTime representing the time in ms for which to predict poses (the max value is 100 ms). This timestamp typically comes from out_frame_info.predicted_display_time.
boolpredictSnapshotsBoolean representing whether or not to predict the snapshot.

void ResetSnapshotPrediction​

Reset the snapshot state of the subsystem to before prediction. Use this to cleanup after PredictSnapshot

public static void ResetSnapshotPrediction()