共用方式為


GazeDeviceWatcherPreview.Added 事件

定義

偵測到新的眼球追蹤器裝置時發生。

// 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) 

事件類型

適用於

另請參閱