SysSpatialInputDeviceWatcher.Updated 事件
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
当现有空间输入设备更新其元数据时引发的事件。
重要
此 API 仅适用于 Windows 操作系统的组件。 对于所有其他进程,对这些 API 的调用将在运行时失败。 这些 API 可能会在将来的 Windows 版本中修改或删除。
// Register
event_token Updated(TypedEventHandler<SysSpatialInputDeviceWatcher, SysSpatialInputDevice const&> const& handler) const;
// Revoke with event_token
void Updated(event_token const* cookie) const;
// Revoke with event_revoker
SysSpatialInputDeviceWatcher::Updated_revoker Updated(auto_revoke_t, TypedEventHandler<SysSpatialInputDeviceWatcher, SysSpatialInputDevice const&> const& handler) const;
public event TypedEventHandler<SysSpatialInputDeviceWatcher,SysSpatialInputDevice> Updated;
function onUpdated(eventArgs) { /* Your code */ }
sysSpatialInputDeviceWatcher.addEventListener("updated", onUpdated);
sysSpatialInputDeviceWatcher.removeEventListener("updated", onUpdated);
- or -
sysSpatialInputDeviceWatcher.onupdated = onUpdated;
Public Custom Event Updated As TypedEventHandler(Of SysSpatialInputDeviceWatcher, SysSpatialInputDevice)