다음을 통해 공유


AppBroadcastState.ViewerCountChanged 이벤트

정의

앱 브로드캐스트의 뷰어 수가 변경되면 발생합니다.

// Register
event_token ViewerCountChanged(TypedEventHandler<AppBroadcastState, AppBroadcastViewerCountChangedEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
AppBroadcastState::ViewerCountChanged_revoker ViewerCountChanged(auto_revoke_t, TypedEventHandler<AppBroadcastState, AppBroadcastViewerCountChangedEventArgs const&> const& handler) const;
public event TypedEventHandler<AppBroadcastState,AppBroadcastViewerCountChangedEventArgs> ViewerCountChanged;
function onViewerCountChanged(eventArgs) { /* Your code */ }
appBroadcastState.addEventListener("viewercountchanged", onViewerCountChanged);
appBroadcastState.removeEventListener("viewercountchanged", onViewerCountChanged);
- or -
appBroadcastState.onviewercountchanged = onViewerCountChanged;
Public Custom Event ViewerCountChanged As TypedEventHandler(Of AppBroadcastState, AppBroadcastViewerCountChangedEventArgs) 

이벤트 유형

Windows 요구 사항

앱 기능
appBroadcast appBroadcastSettings

적용 대상