AppBroadcastingMonitor.IsCurrentAppBroadcastingChanged 事件

定义

当当前应用的当前广播状态更改时发生。

// 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) 

事件类型

注解

在此事件的处理程序中,检查作为事件发送方传递的 AppBroadcastingMonitor 对象的 IsCurrentAppBroadcasting 属性,以确定当前应用当前是否正在广播。

适用于