GlobalSystemMediaTransportControlsSessionManager.CurrentSessionChanged Événement
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Se produit lorsque la session active a changé. Il s’agit de la session que le système estime être celle que l’utilisateur souhaitera probablement contrôler.
// 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)
Type d'événement
Configuration requise pour Windows
Fonctionnalités de l’application |
globalMediaControl
|
S’applique à
Commentaires
https://aka.ms/ContentUserFeedback.
Bientôt disponible : Tout au long de 2024, nous allons supprimer progressivement GitHub Issues comme mécanisme de commentaires pour le contenu et le remplacer par un nouveau système de commentaires. Pour plus d’informations, consultezEnvoyer et afficher des commentaires pour