Share via


GlobalSystemMediaTransportControlsSession.MediaPropertiesChanged Event

Definition

Occurs when the session's MediaProperties have changed.

// Register
event_token MediaPropertiesChanged(TypedEventHandler<GlobalSystemMediaTransportControlsSession, MediaPropertiesChangedEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
GlobalSystemMediaTransportControlsSession::MediaPropertiesChanged_revoker MediaPropertiesChanged(auto_revoke_t, TypedEventHandler<GlobalSystemMediaTransportControlsSession, MediaPropertiesChangedEventArgs const&> const& handler) const;
public event TypedEventHandler<GlobalSystemMediaTransportControlsSession,MediaPropertiesChangedEventArgs> MediaPropertiesChanged;
function onMediaPropertiesChanged(eventArgs) { /* Your code */ }
globalSystemMediaTransportControlsSession.addEventListener("mediapropertieschanged", onMediaPropertiesChanged);
globalSystemMediaTransportControlsSession.removeEventListener("mediapropertieschanged", onMediaPropertiesChanged);
- or -
globalSystemMediaTransportControlsSession.onmediapropertieschanged = onMediaPropertiesChanged;
Public Custom Event MediaPropertiesChanged As TypedEventHandler(Of GlobalSystemMediaTransportControlsSession, MediaPropertiesChangedEventArgs) 

Event Type

Windows requirements

App capabilities
globalMediaControl

Applies to