GlobalSystemMediaTransportControlsSession.PlaybackInfoChanged Event
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
|