PhoneLineTransportDevice.AudioRoutingStatusChanged 事件
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
當基礎傳輸裝置的音訊路由變更時所引發的事件。
// 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)
事件類型
TypedEventHandler<PhoneLineTransportDevice,IInspectable>
Windows 需求
裝置系列 |
Windows 10, version 2104 (已於 10.0.20348.0 引進)
|
API contract |
Windows.ApplicationModel.Calls.CallsPhoneContract (已於 v6.0 引進)
|
應用程式功能 |
phoneCall
|