GazeDeviceWatcherPreview 类

定义

动态检测和枚举目视跟踪设备,并在初始枚举后添加、删除或更新设备时接收事件通知。

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
继承
Object Platform::Object IInspectable GazeDeviceWatcherPreview
属性

Windows 要求

设备系列
Windows 10, version 1803 (在 10.0.17134.0 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v6.0 中引入)

方法

Start()

开始监视目视跟踪器设备的状态。

Stop()

停止监视目视跟踪器设备的状态。

事件

Added

在检测到新的目视跟踪器设备时发生。

EnumerationCompleted

GazeDeviceWatcherPreview 完成识别连接的目视跟踪器设备时发生。

Removed

当不再检测到现有的目视跟踪器设备时发生。

Updated

对现有目视跟踪器设备(例如校准)进行更新时发生。

适用于

另请参阅