GlobalSystemMediaTransportControlsSessionManager.CurrentSessionChanged 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 current session has changed. This is the session that the system believes is the one the user would most likely want to control.
// Register
event_token CurrentSessionChanged(TypedEventHandler<GlobalSystemMediaTransportControlsSessionManager, CurrentSessionChangedEventArgs const&> const& handler) const;
// Revoke with event_token
void CurrentSessionChanged(event_token const* cookie) const;
// Revoke with event_revoker
GlobalSystemMediaTransportControlsSessionManager::CurrentSessionChanged_revoker CurrentSessionChanged(auto_revoke_t, TypedEventHandler<GlobalSystemMediaTransportControlsSessionManager, CurrentSessionChangedEventArgs const&> const& handler) const;
public event TypedEventHandler<GlobalSystemMediaTransportControlsSessionManager,CurrentSessionChangedEventArgs> CurrentSessionChanged;
function onCurrentSessionChanged(eventArgs) { /* Your code */ }
globalSystemMediaTransportControlsSessionManager.addEventListener("currentsessionchanged", onCurrentSessionChanged);
globalSystemMediaTransportControlsSessionManager.removeEventListener("currentsessionchanged", onCurrentSessionChanged);
- or -
globalSystemMediaTransportControlsSessionManager.oncurrentsessionchanged = onCurrentSessionChanged;
Public Custom Event CurrentSessionChanged As TypedEventHandler(Of GlobalSystemMediaTransportControlsSessionManager, CurrentSessionChangedEventArgs)
Event Type
Windows requirements
App capabilities |
globalMediaControl
|