Dela via


GazeInputSourcePreview Class

Definition

Represents the eyes and head of the user identified by an eye-tracking device.

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
Inheritance
Object Platform::Object IInspectable GazeInputSourcePreview
Attributes

Windows requirements

Device family
Windows 10, version 1803 (introduced in 10.0.17134.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v6.0)

Remarks

This object is associated with an application's UI thread.

Methods

CreateWatcher()

Creates an object for monitoring the state of the eye-tracker device associated with the current view.

GetForCurrentView()

Retrieves a reference to the user identified by an eye-tracking device, bound to the active application.

Events

GazeEntered

Occurs when the eye-tracking device detects that the gaze point has entered the bounding area of the element.

GazeExited

Occurs when the eye-tracking device detects that the gaze point has moved outside the bounding area of the element.

GazeMoved

Occurs when the eye-tracking device detects eye movement and the gaze pointer remains within the bounding rectangle of the element.

Applies to

See also