Share via


GlobalSystemMediaTransportControlsSessionManager.SessionsChanged Event

Definition

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

Applies to