PhoneCallManager PhoneCallManager PhoneCallManager PhoneCallManager Class

Definition

Provides the ability to query the call status and launch phone calls.

public : static class PhoneCallManagerpublic static class PhoneCallManagerPublic Static Class PhoneCallManager// You can use this class in JavaScript.
Attributes
Windows 10 requirements
Device family
Windows Mobile Extension SDK (introduced v10.0.10240.0)
API contract
Windows.ApplicationModel.Calls.CallsPhoneContract (introduced v1)

Remarks

Most of the methods of this API can be used even if your application is not responsible for placing phone calls. You can do this if you want to determine the status of phone calls.

Properties

IsCallActive IsCallActive IsCallActive IsCallActive

Gets a value that indicates whether an active call is in progress on the device.

public : static PlatForm::Boolean IsCallActive { get; }public static bool IsCallActive { get; }Public Static ReadOnly Property IsCallActive As bool// You can use this property in JavaScript.
Value
PlatForm::Boolean bool bool bool

True if an active call is in progress on the device; otherwise false.

IsCallIncoming IsCallIncoming IsCallIncoming IsCallIncoming

Gets a value that indicates if a call is incoming on the device.

public : static PlatForm::Boolean IsCallIncoming { get; }public static bool IsCallIncoming { get; }Public Static ReadOnly Property IsCallIncoming As bool// You can use this property in JavaScript.
Value
PlatForm::Boolean bool bool bool

True if a call is incoming on the device; otherwise false.

Methods

RequestStoreAsync() RequestStoreAsync() RequestStoreAsync() RequestStoreAsync()

Retrieves a PhoneCallStore.

public : static IAsyncOperation<PhoneCallStore> RequestStoreAsync()public static IAsyncOperation<PhoneCallStore> RequestStoreAsync()Public Static Function RequestStoreAsync() As IAsyncOperation( Of PhoneCallStore )// You can use this method in JavaScript.
Returns

Remarks

In order to use this method, you need to have the phoneCall capability in your app manifest file.

<uap:Capability Name="phoneCall" />
Important

If your application uses the phoneCall capability, you must request a waiver if you want to publish your application in China. Contact your premier support representative if you need the waiver.

ShowPhoneCallSettingsUI() ShowPhoneCallSettingsUI() ShowPhoneCallSettingsUI() ShowPhoneCallSettingsUI()

Launches the call settings UI.

public : static void ShowPhoneCallSettingsUI()public static void ShowPhoneCallSettingsUI()Public Static Function ShowPhoneCallSettingsUI() As void// You can use this method in JavaScript.

ShowPhoneCallUI(String, String) ShowPhoneCallUI(String, String) ShowPhoneCallUI(String, String) ShowPhoneCallUI(String, String)

Launches the built-in phone call UI with the specified phone number and display name.

public : static void ShowPhoneCallUI(PlatForm::String phoneNumber, PlatForm::String displayName)public static void ShowPhoneCallUI(String phoneNumber, String displayName)Public Static Function ShowPhoneCallUI(phoneNumber As String, displayName As String) As void// You can use this method in JavaScript.
Parameters
phoneNumber
PlatForm::String String String String

A phone number.

displayName
PlatForm::String String String String

A display name.

Events

CallStateChanged CallStateChanged CallStateChanged CallStateChanged

Occurs when the basic call state of the device changes.

public : static event EventHandler CallStateChanged<object>public static event EventHandler CallStateChanged<object>Public Static Event CallStateChanged<object>// You can use this event in JavaScript.