PhoneCallManager.CallStateChanged 事件

定义

当设备的基本调用状态更改时发生。

// Register
static event_token CallStateChanged(EventHandler<IInspectable> const& handler) const;

// Revoke with event_token
static void CallStateChanged(event_token const* cookie) const;

// Revoke with event_revoker
static PhoneCallManager::CallStateChanged_revoker CallStateChanged(auto_revoke_t, EventHandler<IInspectable> const& handler) const;
public static event System.EventHandler<object> CallStateChanged;
function onCallStateChanged(eventArgs) { /* Your code */ }
Windows.ApplicationModel.Calls.PhoneCallManager.addEventListener("callstatechanged", onCallStateChanged);
Windows.ApplicationModel.Calls.PhoneCallManager.removeEventListener("callstatechanged", onCallStateChanged);
- or -
Windows.ApplicationModel.Calls.PhoneCallManager.oncallstatechanged = onCallStateChanged;
Public Shared Custom Event CallStateChanged As EventHandler(Of Object) 

事件类型

Windows 要求

应用功能
phoneCallHistory phoneCallHistorySystem

适用于