AppBroadcastingMonitor.IsCurrentAppBroadcastingChanged 事件
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
当当前应用的当前广播状态更改时发生。
// Register
event_token IsCurrentAppBroadcastingChanged(TypedEventHandler<AppBroadcastingMonitor, IInspectable const&> const& handler) const;
// Revoke with event_token
void IsCurrentAppBroadcastingChanged(event_token const* cookie) const;
// Revoke with event_revoker
AppBroadcastingMonitor::IsCurrentAppBroadcastingChanged_revoker IsCurrentAppBroadcastingChanged(auto_revoke_t, TypedEventHandler<AppBroadcastingMonitor, IInspectable const&> const& handler) const;
public event TypedEventHandler<AppBroadcastingMonitor,object> IsCurrentAppBroadcastingChanged;
function onIsCurrentAppBroadcastingChanged(eventArgs) { /* Your code */ }
appBroadcastingMonitor.addEventListener("iscurrentappbroadcastingchanged", onIsCurrentAppBroadcastingChanged);
appBroadcastingMonitor.removeEventListener("iscurrentappbroadcastingchanged", onIsCurrentAppBroadcastingChanged);
- or -
appBroadcastingMonitor.oniscurrentappbroadcastingchanged = onIsCurrentAppBroadcastingChanged;
Public Custom Event IsCurrentAppBroadcastingChanged As TypedEventHandler(Of AppBroadcastingMonitor, Object)
事件类型
TypedEventHandler<AppBroadcastingMonitor,IInspectable>
注解
在此事件的处理程序中,检查作为事件发送方传递的 AppBroadcastingMonitor 对象的 IsCurrentAppBroadcasting 属性,以确定当前应用当前是否正在广播。