GazeInputSourcePreview 类

定义

表示由眼动跟踪设备标识的用户的眼睛和头部。

public ref class GazeInputSourcePreview sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 393216)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class GazeInputSourcePreview final
/// [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 GazeInputSourcePreview final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 393216)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class GazeInputSourcePreview
[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 GazeInputSourcePreview
Public NotInheritable Class GazeInputSourcePreview
继承
Object Platform::Object IInspectable GazeInputSourcePreview
属性

Windows 要求

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

注解

此对象与应用程序的 UI 线程相关联。

方法

CreateWatcher()

创建一个 对象,用于监视与当前视图关联的目视跟踪器设备的状态。

GetForCurrentView()

检索对由眼动跟踪设备标识的用户的引用,该引用绑定到活动应用程序。

事件

GazeEntered

当目视跟踪设备检测到 凝视点 已进入元素的边界区域时发生。

GazeExited

当目视跟踪设备检测到 凝视点 已移出元素的边界区域时发生。

GazeMoved

当眼动跟踪设备检测到眼睛移动且 凝视指针 保留在元素的边界矩形内时发生。

适用于

另请参阅