// %BANNER_BEGIN% // --------------------------------------------------------------------- // %COPYRIGHT_BEGIN% // Copyright (c) (2018-2022) Magic Leap, Inc. All Rights Reserved. // Use of this file is governed by the Software License Agreement, located here: https://www.magicleap.com/software-license-agreement-ml2 // Terms and conditions applicable to third-party materials accompanying this distribution may also be found in the top-level NOTICE file appearing herein. // %COPYRIGHT_END% // --------------------------------------------------------------------- // %BANNER_END% namespace UnityEngine.XR.MagicLeap { /// /// This API can be used to get info about gaze. /// public partial class MLGazeRecognition : MLAutoAPISingleton { /// /// Get information about the user's gaze. /// /// Information about the gaze. /// /// MLResult_InvalidParam The state parameter was not valid (null). /// MLResult_Ok gaze Recognition static was successfully received. /// MLResult_UnspecifiedFailure Failed to receive gaze Recognition state data. /// public static MLResult GetState(out State state) => MLResult.Create(Instance.InternalMLGazeRecognitionGetState(out state)); /// /// Get static information about Gaze Recognition. /// /// Target to populate the data about Gaze Recognition.. /// /// MLResult_InvalidParam The data parameter was not valid (null). /// MLResult_Ok gaze Recognition data was successfully received. /// MLResult_UnspecifiedFailure Failed to receive gaze Recognition static data. /// public static MLResult GetStaticData(out StaticData data) => MLResult.Create(Instance.InternalMLGazeRecognitionGetStaticData(out data)); } }