PhoneLineTransportDevice.AudioRoutingStatusChanged 事件

定义

基础传输设备的音频路由更改时引发的事件。

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

事件类型

Windows 要求

设备系列
Windows 10, version 2104 (在 10.0.20348.0 中引入)
API contract
Windows.ApplicationModel.Calls.CallsPhoneContract (在 v6.0 中引入)
应用功能
phoneCall

适用于