Compartilhar via


GlobalSystemMediaTransportControlsSessionManager.SessionsChanged Evento

Definição

Ocorre quando a lista de sessões disponíveis foi alterada devido a uma nova conexão de sessão ou a uma desconexão existente.

// 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) 

Tipo de evento

Requisitos do Windows

Funcionalidades do aplicativo
globalMediaControl

Aplica-se a