Compartir a través de


GlobalSystemMediaTransportControlsSessionManager.CurrentSessionChanged Evento

Definición

Se produce cuando ha cambiado la sesión actual. Esta es la sesión que el sistema cree que es la que probablemente el usuario desea controlar.

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

Tipo de evento

Requisitos de Windows

Características de aplicaciones
globalMediaControl

Se aplica a