SysSpatialInputDeviceWatcher.Added 事件

定义

添加新的空间输入设备时引发的事件。

重要

此 API 仅适用于 Windows 操作系统的组件。 对于所有其他进程,对这些 API 的调用将在运行时失败。 将来的 Windows 版本中可能会修改或删除这些 API。

// Register
event_token Added(TypedEventHandler<SysSpatialInputDeviceWatcher, SysSpatialInputDevice const&> const& handler) const;

// Revoke with event_token
void Added(event_token const* cookie) const;

// Revoke with event_revoker
SysSpatialInputDeviceWatcher::Added_revoker Added(auto_revoke_t, TypedEventHandler<SysSpatialInputDeviceWatcher, SysSpatialInputDevice const&> const& handler) const;
public event TypedEventHandler<SysSpatialInputDeviceWatcher,SysSpatialInputDevice> Added;
function onAdded(eventArgs) { /* Your code */ }
sysSpatialInputDeviceWatcher.addEventListener("added", onAdded);
sysSpatialInputDeviceWatcher.removeEventListener("added", onAdded);
- or -
sysSpatialInputDeviceWatcher.onadded = onAdded;
Public Custom Event Added As TypedEventHandler(Of SysSpatialInputDeviceWatcher, SysSpatialInputDevice) 

事件类型

适用于