Partager via


AppBroadcastPreview.PreviewStateChanged Événement

Définition

Se produit lorsque l’état de l’aperçu de diffusion de l’application change.

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

Type d'événement

Configuration requise pour Windows

Fonctionnalités de l’application
appBroadcast appBroadcastSettings

S’applique à