GlobalSystemMediaTransportControlsSessionManager.SessionsChanged 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 list of available sessions has changed due to a new session connecting or an existing one disconnecting.
// Register
event_token SessionsChanged(TypedEventHandler<GlobalSystemMediaTransportControlsSessionManager, SessionsChangedEventArgs const&> const& handler) const;
// Revoke with event_token
void SessionsChanged(event_token const* cookie) const;
// Revoke with event_revoker
GlobalSystemMediaTransportControlsSessionManager::SessionsChanged_revoker SessionsChanged(auto_revoke_t, TypedEventHandler<GlobalSystemMediaTransportControlsSessionManager, SessionsChangedEventArgs const&> const& handler) const;
public event TypedEventHandler<GlobalSystemMediaTransportControlsSessionManager,SessionsChangedEventArgs> SessionsChanged;
function onSessionsChanged(eventArgs) { /* Your code */ }
globalSystemMediaTransportControlsSessionManager.addEventListener("sessionschanged", onSessionsChanged);
globalSystemMediaTransportControlsSessionManager.removeEventListener("sessionschanged", onSessionsChanged);
- or -
globalSystemMediaTransportControlsSessionManager.onsessionschanged = onSessionsChanged;
Public Custom Event SessionsChanged As TypedEventHandler(Of GlobalSystemMediaTransportControlsSessionManager, SessionsChangedEventArgs)
Event Type
Windows requirements
App capabilities |
globalMediaControl
|