Skip to content

Latest commit

 

History

History
32 lines (19 loc) · 1.42 KB

gazeinputsourcepreview_getforcurrentview_1363600702.md

File metadata and controls

32 lines (19 loc) · 1.42 KB
-api-id -api-type
M:Windows.Devices.Input.Preview.GazeInputSourcePreview.GetForCurrentView
winrt method

Windows.Devices.Input.Preview.GazeInputSourcePreview.GetForCurrentView

-description

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

-returns

A GazeInputSourcePreview object bound to the active application.

-remarks

This method must be called on the UI thread, see Keep the UI thread responsive.

Calling this method results in a privacy prompt in which the user is asked to grant permission for your app to access their eye-tracking device. The user is prompted only once, when the app is run for the first time.

Windows automatically prompts users with a consent dialog (when the app is first run), with which the user must grant permission for the app to communicate with the eye-tracking device and access gaze data.

-see-also

Gaze interactions and eye tracking in UWP apps, Gaze input sample (basic), Windows Community Toolkit Gaze library

-examples