GazeDeviceWatcherPreview 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
动态检测和枚举目视跟踪设备,并在初始枚举后添加、删除或更新设备时接收事件通知。
public ref class GazeDeviceWatcherPreview sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 393216)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class GazeDeviceWatcherPreview final
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 393216)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class GazeDeviceWatcherPreview final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 393216)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class GazeDeviceWatcherPreview
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 393216)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class GazeDeviceWatcherPreview
Public NotInheritable Class GazeDeviceWatcherPreview
- 继承
- 属性
Windows 要求
设备系列 |
Windows 10, version 1803 (在 10.0.17134.0 中引入)
|
API contract |
Windows.Foundation.UniversalApiContract (在 v6.0 中引入)
|
方法
Start() |
开始监视目视跟踪器设备的状态。 |
Stop() |
停止监视目视跟踪器设备的状态。 |
事件
Added |
在检测到新的目视跟踪器设备时发生。 |
EnumerationCompleted |
当 GazeDeviceWatcherPreview 完成识别连接的目视跟踪器设备时发生。 |
Removed |
当不再检测到现有的目视跟踪器设备时发生。 |
Updated |
对现有目视跟踪器设备(例如校准)进行更新时发生。 |