PhoneCallOriginManager.ShowPhoneCallOriginSettingsUI Method

Definition

Opens the interface that enables the user to select the call origin application.

public:
 static void ShowPhoneCallOriginSettingsUI();
 static void ShowPhoneCallOriginSettingsUI();
/// [Windows.Foundation.Metadata.Deprecated("PhoneCallOriginManager is deprecated and might not work for all platforms. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 458752, "Windows.ApplicationModel.Calls.CallsPhoneContract")]
 static void ShowPhoneCallOriginSettingsUI();
public static void ShowPhoneCallOriginSettingsUI();
[Windows.Foundation.Metadata.Deprecated("PhoneCallOriginManager is deprecated and might not work for all platforms. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 458752, "Windows.ApplicationModel.Calls.CallsPhoneContract")]
public static void ShowPhoneCallOriginSettingsUI();
function showPhoneCallOriginSettingsUI()
Public Shared Sub ShowPhoneCallOriginSettingsUI ()
Attributes

Windows requirements

App capabilities
phoneCallHistory phoneCallHistorySystem

Remarks

A user can have multiple phone call origin applications installed on a phone. However, only one of the applications can be the default application and respond to incoming calls. Calling this method opens the user interface to let the user select which phone call origin application is used.

An app must meet certain requirements in order to be show in the list of possible applications for managing call origin.

To successfully build a package to deploy a custom app, your app needs to have mobile as a value for the IgnorableNamespaces attribute of the Package. Here is a sample Package element for a custom app.

<Package
 xmlns="http://schemas.microsoft.com/appx/manifest/foundation/windows10"
 xmlns:mp="http://schemas.microsoft.com/appx/2014/phone/manifest"
 xmlns:uap="http://schemas.microsoft.com/appx/manifest/uap/windows10"
 xmlns:mobile="http://schemas.microsoft.com/appx/manifest/mobile/windows10"
 IgnorableNamespaces="uap mp mobile"
 >

The following example shows how to pull up the phone call origins application UI so the user can select the appropriate app.

private void PageInit()
{
    bool isActive = await PhoneCallOriginManager.IsCurrentAppActiveCallOriginApp();
    if (!isActive)
        PhoneCallOriginManager.ShowPhoneCallOriginSettingsUI();
}

Applies to