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 |
發生于對現有眼球追蹤器裝置進行更新時,例如校正。 |