AudioRoutingManager.AudioEndpointChanged É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 le point de terminaison audio actuellement utilisé a changé, ou lorsque l’ensemble des points de terminaison audio disponibles a changé.
// Register
event_token AudioEndpointChanged(TypedEventHandler<AudioRoutingManager, IInspectable const&> const& handler) const;
// Revoke with event_token
void AudioEndpointChanged(event_token const* cookie) const;
// Revoke with event_revoker
AudioRoutingManager::AudioEndpointChanged_revoker AudioEndpointChanged(auto_revoke_t, TypedEventHandler<AudioRoutingManager, IInspectable const&> const& handler) const;
public event TypedEventHandler<AudioRoutingManager,object> AudioEndpointChanged;
function onAudioEndpointChanged(eventArgs) { /* Your code */ }
audioRoutingManager.addEventListener("audioendpointchanged", onAudioEndpointChanged);
audioRoutingManager.removeEventListener("audioendpointchanged", onAudioEndpointChanged);
- or -
audioRoutingManager.onaudioendpointchanged = onAudioEndpointChanged;
Public Custom Event AudioEndpointChanged As TypedEventHandler(Of AudioRoutingManager, Object)
Type d'événement
Configuration requise pour Windows
Fonctionnalités de l’application |
ID_CAP_VOIP [Windows Phone]
|
Remarques
Cet événement est déclenché même lorsque l’application elle-même a demandé la modification en appelant SetAudioEndpoint.