Share via


GlobalSystemMediaTransportControlsSession.PlaybackInfoChanged Event

Definition

Occurs when the session's playback info has changed.

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

Event Type

Windows requirements

App capabilities
globalMediaControl

Applies to