GazeDeviceWatcherPreview.Added Event
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.
Occurs when a new eye-tracker device is detected.
// Register
event_token Added(TypedEventHandler<GazeDeviceWatcherPreview, GazeDeviceWatcherAddedPreviewEventArgs const&> const& handler) const;
// Revoke with event_token
void Added(event_token const* cookie) const;
// Revoke with event_revoker
GazeDeviceWatcherPreview::Added_revoker Added(auto_revoke_t, TypedEventHandler<GazeDeviceWatcherPreview, GazeDeviceWatcherAddedPreviewEventArgs const&> const& handler) const;
public event TypedEventHandler<GazeDeviceWatcherPreview,GazeDeviceWatcherAddedPreviewEventArgs> Added;
function onAdded(eventArgs) { /* Your code */ }
gazeDeviceWatcherPreview.addEventListener("added", onAdded);
gazeDeviceWatcherPreview.removeEventListener("added", onAdded);
- or -
gazeDeviceWatcherPreview.onadded = onAdded;
Public Custom Event Added As TypedEventHandler(Of GazeDeviceWatcherPreview, GazeDeviceWatcherAddedPreviewEventArgs)
Event Type
Applies to
See also
Feedback
https://aka.ms/ContentUserFeedback.
Kommer snart: Under hela 2024 kommer vi att fasa ut GitHub-problem som feedbackmekanism för innehåll och ersätta det med ett nytt feedbacksystem. Mer information finns i:Skicka och visa feedback för