Compartilhar via


PhoneLineTransportDevice.AudioRoutingStatusChanged Evento

Definição

Um evento gerado quando o roteamento de áudio do dispositivo de transporte subjacente é alterado.

// Register
event_token AudioRoutingStatusChanged(TypedEventHandler<PhoneLineTransportDevice, IInspectable const&> const& handler) const;

// Revoke with event_token
void AudioRoutingStatusChanged(event_token const* cookie) const;

// Revoke with event_revoker
PhoneLineTransportDevice::AudioRoutingStatusChanged_revoker AudioRoutingStatusChanged(auto_revoke_t, TypedEventHandler<PhoneLineTransportDevice, IInspectable const&> const& handler) const;
public event TypedEventHandler<PhoneLineTransportDevice,object> AudioRoutingStatusChanged;
function onAudioRoutingStatusChanged(eventArgs) { /* Your code */ }
phoneLineTransportDevice.addEventListener("audioroutingstatuschanged", onAudioRoutingStatusChanged);
phoneLineTransportDevice.removeEventListener("audioroutingstatuschanged", onAudioRoutingStatusChanged);
- or -
phoneLineTransportDevice.onaudioroutingstatuschanged = onAudioRoutingStatusChanged;
Public Custom Event AudioRoutingStatusChanged As TypedEventHandler(Of PhoneLineTransportDevice, Object) 

Tipo de evento

Requisitos do Windows

Família de dispositivos
Windows 10, version 2104 (introduzida na 10.0.20348.0)
API contract
Windows.ApplicationModel.Calls.CallsPhoneContract (introduzida na v6.0)
Funcionalidades do aplicativo
phoneCall

Aplica-se a