Partager via


AudioRoutingManager.AudioEndpointChanged Événement

Définition

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.

S’applique à