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

적용 대상