AppBroadcastPreview.PreviewStateChanged 事件

定义

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

// Register
event_token PreviewStateChanged(TypedEventHandler<AppBroadcastPreview, AppBroadcastPreviewStateChangedEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
AppBroadcastPreview::PreviewStateChanged_revoker PreviewStateChanged(auto_revoke_t, TypedEventHandler<AppBroadcastPreview, AppBroadcastPreviewStateChangedEventArgs const&> const& handler) const;
public event TypedEventHandler<AppBroadcastPreview,AppBroadcastPreviewStateChangedEventArgs> PreviewStateChanged;
function onPreviewStateChanged(eventArgs) { /* Your code */ }
appBroadcastPreview.addEventListener("previewstatechanged", onPreviewStateChanged);
appBroadcastPreview.removeEventListener("previewstatechanged", onPreviewStateChanged);
- or -
appBroadcastPreview.onpreviewstatechanged = onPreviewStateChanged;
Public Custom Event PreviewStateChanged As TypedEventHandler(Of AppBroadcastPreview, AppBroadcastPreviewStateChangedEventArgs) 

事件类型

Windows 要求

应用功能
appBroadcast appBroadcastSettings

适用于