Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

GazeInputSourcePreview Class

Definition

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

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

Requirements Description
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

Name Description
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

Name Description
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


Feedback

Was this page helpful?