AudioRoutingManager.AudioEndpointChanged Event

Definition

Occurs when the audio endpoint currently in use has changed, or when the set of available audio endpoints has changed.

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

Event Type

Windows requirements

App capabilities
ID_CAP_VOIP [Windows Phone]

Remarks

This event is raised even when the application itself has requested the change by calling SetAudioEndpoint.

Applies to