Skip to main content
Version: 20 Mar 2024

NativeBindings

Public Methods

MLResult.Code MLEyeTrackingGetStaticData

Gets static information about the eye tracker

public MLResult.Code MLEyeTrackingGetStaticData(
ulong handle,
ref MLEyeTrackingStaticData outData
)

Parameters

TypeNameDescription
ulonghandleA handle to an Eye Tracker retrievced from GetEyeTrackerHandle()
ref MLEyeTrackingStaticDataoutDataTarget to populate the data about the eye tracker

Returns: MLResult.Result will be MLResult.Code.InvalidParam if the out_data param was not valid (null). MLResult.Result will be MLResult.Code.Ok if eye tracking static data was successfully received. MLResult.Result will be MLResult.Code.UnspecifiedFailure if failed to retrieve eye tracking static data.


bool TryGetTrackingState

public static bool TryGetTrackingState(
InputDevice eyesDevice,
out State state
)

Parameters

TypeNameDescription
InputDeviceeyesDevice
out Statestate