GlobalSystemMediaTransportControlsSession.MediaPropertiesChanged 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 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
|