PerceptionControlSession.ControlLost 事件
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
订阅 ControlLost 事件。 当会话控制权丢失给另一个客户端时,将触发此事件。
// Register
event_token ControlLost(TypedEventHandler<PerceptionControlSession, IInspectable const&> const& handler) const;
// Revoke with event_token
void ControlLost(event_token const* cookie) const;
// Revoke with event_revoker
PerceptionControlSession::ControlLost_revoker ControlLost(auto_revoke_t, TypedEventHandler<PerceptionControlSession, IInspectable const&> const& handler) const;
/// [add: Windows.Foundation.Metadata.Deprecated("PerceptionControlSession may be unavailable after Windows Creator Update. Please refer to Windows.Media.Capture.Frames APIs on MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 262144, "Windows.Foundation.UniversalApiContract")]
/// [remove: Windows.Foundation.Metadata.Deprecated("PerceptionControlSession may be unavailable after Windows Creator Update. Please refer to Windows.Media.Capture.Frames APIs on MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 262144, "Windows.Foundation.UniversalApiContract")]
// Register
event_token ControlLost(TypedEventHandler<PerceptionControlSession, IInspectable const&> const& handler) const;
// Revoke with event_token
void ControlLost(event_token const* cookie) const;
// Revoke with event_revoker
PerceptionControlSession::ControlLost_revoker ControlLost(auto_revoke_t, TypedEventHandler<PerceptionControlSession, IInspectable const&> const& handler) const;
public event TypedEventHandler<PerceptionControlSession,object> ControlLost;
[add: Windows.Foundation.Metadata.Deprecated("PerceptionControlSession may be unavailable after Windows Creator Update. Please refer to Windows.Media.Capture.Frames APIs on MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 262144, "Windows.Foundation.UniversalApiContract")]
[remove: Windows.Foundation.Metadata.Deprecated("PerceptionControlSession may be unavailable after Windows Creator Update. Please refer to Windows.Media.Capture.Frames APIs on MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 262144, "Windows.Foundation.UniversalApiContract")]
public event TypedEventHandler<PerceptionControlSession,object> ControlLost;
function onControlLost(eventArgs) { /* Your code */ }
perceptionControlSession.addEventListener("controllost", onControlLost);
perceptionControlSession.removeEventListener("controllost", onControlLost);
- or -
perceptionControlSession.oncontrollost = onControlLost;
Public Custom Event ControlLost As TypedEventHandler(Of PerceptionControlSession, Object)
事件类型
TypedEventHandler<PerceptionControlSession,IInspectable>
- 属性