GlobalSystemMediaTransportControlsSessionManager.CurrentSessionChanged Evento
Definizione
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
Si verifica quando la sessione corrente è stata modificata. Questa è la sessione che il sistema ritiene sia quello che l'utente vuole più probabilmente controllare.
// 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 evento
Requisiti Windows
Funzionalità dell'app |
globalMediaControl
|