AppBroadcastBackgroundServiceStreamInfo.StreamStateChanged 事件

定义

在应用广播流状态更改时发生。

// Register
event_token StreamStateChanged(TypedEventHandler<AppBroadcastBackgroundServiceStreamInfo, AppBroadcastStreamStateChangedEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
AppBroadcastBackgroundServiceStreamInfo::StreamStateChanged_revoker StreamStateChanged(auto_revoke_t, TypedEventHandler<AppBroadcastBackgroundServiceStreamInfo, AppBroadcastStreamStateChangedEventArgs const&> const& handler) const;
public event TypedEventHandler<AppBroadcastBackgroundServiceStreamInfo,AppBroadcastStreamStateChangedEventArgs> StreamStateChanged;
function onStreamStateChanged(eventArgs) { /* Your code */ }
appBroadcastBackgroundServiceStreamInfo.addEventListener("streamstatechanged", onStreamStateChanged);
appBroadcastBackgroundServiceStreamInfo.removeEventListener("streamstatechanged", onStreamStateChanged);
- or -
appBroadcastBackgroundServiceStreamInfo.onstreamstatechanged = onStreamStateChanged;
Public Custom Event StreamStateChanged As TypedEventHandler(Of AppBroadcastBackgroundServiceStreamInfo, AppBroadcastStreamStateChangedEventArgs) 

事件类型

Windows 要求

应用功能
appBroadcast appBroadcastSettings

适用于