次の方法で共有


AppBroadcastBackgroundService.BroadcastChannelChanged イベント

定義

BroadcastChannel プロパティの値が変更されたときに発生します。

// Register
event_token BroadcastChannelChanged(TypedEventHandler<AppBroadcastBackgroundService, IInspectable const&> const& handler) const;

// Revoke with event_token
void BroadcastChannelChanged(event_token const* cookie) const;

// Revoke with event_revoker
AppBroadcastBackgroundService::BroadcastChannelChanged_revoker BroadcastChannelChanged(auto_revoke_t, TypedEventHandler<AppBroadcastBackgroundService, IInspectable const&> const& handler) const;
public event TypedEventHandler<AppBroadcastBackgroundService,object> BroadcastChannelChanged;
function onBroadcastChannelChanged(eventArgs) { /* Your code */ }
appBroadcastBackgroundService.addEventListener("broadcastchannelchanged", onBroadcastChannelChanged);
appBroadcastBackgroundService.removeEventListener("broadcastchannelchanged", onBroadcastChannelChanged);
- or -
appBroadcastBackgroundService.onbroadcastchannelchanged = onBroadcastChannelChanged;
Public Custom Event BroadcastChannelChanged As TypedEventHandler(Of AppBroadcastBackgroundService, Object) 

イベントの種類

Windows の要件

デバイス ファミリ
Windows Desktop Extension SDK (10.0.16299.0 で導入)
API contract
Windows.Media.Capture.AppBroadcastContract (v2.0 で導入)

適用対象