Share via


GazeDeviceWatcherPreview Class

Definition

Dynamically detects and enumerates eye-tracking devices, and receives event notifications when a device is added, removed, or updated after the initial enumeration.

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
Inheritance
Object Platform::Object IInspectable GazeDeviceWatcherPreview
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)

Methods

Name Description
Start()

Starts monitoring the state of an eye-tracker device.

Stop()

Stops monitoring the state of an eye-tracker device.

Events

Name Description
Added

Occurs when a new eye-tracker device is detected.

EnumerationCompleted

Occurs when the GazeDeviceWatcherPreview finishes identifying the connected eye-tracker devices.

Removed

Occurs when an existing eye-tracker device is no longer detected.

Updated

Occurs when an update is made to an existing eye-tracker device, such as calibration.

Applies to

See also