SysSpatialInputDeviceWatcher.Stopped 事件
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
空間輸入裝置監看停止時所引發的事件。
重要
此 API 僅適用于 Windows 作業系統的元件。 對這些 API 的呼叫會在執行時間失敗,其他所有進程都會失敗。 未來 Windows 版本中可能會修改或移除這些 API。
// Register
event_token Stopped(TypedEventHandler<SysSpatialInputDeviceWatcher, IInspectable const&> const& handler) const;
// Revoke with event_token
void Stopped(event_token const* cookie) const;
// Revoke with event_revoker
SysSpatialInputDeviceWatcher::Stopped_revoker Stopped(auto_revoke_t, TypedEventHandler<SysSpatialInputDeviceWatcher, IInspectable const&> const& handler) const;
public event TypedEventHandler<SysSpatialInputDeviceWatcher,object> Stopped;
function onStopped(eventArgs) { /* Your code */ }
sysSpatialInputDeviceWatcher.addEventListener("stopped", onStopped);
sysSpatialInputDeviceWatcher.removeEventListener("stopped", onStopped);
- or -
sysSpatialInputDeviceWatcher.onstopped = onStopped;
Public Custom Event Stopped As TypedEventHandler(Of SysSpatialInputDeviceWatcher, Object)
事件類型
TypedEventHandler<SysSpatialInputDeviceWatcher,IInspectable>