Partager via


GlobalSystemMediaTransportControlsSession.PlaybackInfoChanged Événement

Définition

Se produit lorsque les informations de lecture de la session ont changé.

// Register
event_token PlaybackInfoChanged(TypedEventHandler<GlobalSystemMediaTransportControlsSession, PlaybackInfoChangedEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
GlobalSystemMediaTransportControlsSession::PlaybackInfoChanged_revoker PlaybackInfoChanged(auto_revoke_t, TypedEventHandler<GlobalSystemMediaTransportControlsSession, PlaybackInfoChangedEventArgs const&> const& handler) const;
public event TypedEventHandler<GlobalSystemMediaTransportControlsSession,PlaybackInfoChangedEventArgs> PlaybackInfoChanged;
function onPlaybackInfoChanged(eventArgs) { /* Your code */ }
globalSystemMediaTransportControlsSession.addEventListener("playbackinfochanged", onPlaybackInfoChanged);
globalSystemMediaTransportControlsSession.removeEventListener("playbackinfochanged", onPlaybackInfoChanged);
- or -
globalSystemMediaTransportControlsSession.onplaybackinfochanged = onPlaybackInfoChanged;
Public Custom Event PlaybackInfoChanged As TypedEventHandler(Of GlobalSystemMediaTransportControlsSession, PlaybackInfoChangedEventArgs) 

Type d'événement

Configuration requise pour Windows

Fonctionnalités de l’application
globalMediaControl

S’applique à