Share via


PhoneCallOriginManager.RequestSetAsActiveCallOriginAppAsync Method

Definition

Calls a dialog to set the current app as the default phone origin app.

public:
 static IAsyncOperation<bool> ^ RequestSetAsActiveCallOriginAppAsync();
/// [Windows.Foundation.Metadata.RemoteAsync]
 static IAsyncOperation<bool> RequestSetAsActiveCallOriginAppAsync();
/// [Windows.Foundation.Metadata.RemoteAsync]
/// [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 IAsyncOperation<bool> RequestSetAsActiveCallOriginAppAsync();
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncOperation<bool> RequestSetAsActiveCallOriginAppAsync();
[Windows.Foundation.Metadata.RemoteAsync]
[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 IAsyncOperation<bool> RequestSetAsActiveCallOriginAppAsync();
function requestSetAsActiveCallOriginAppAsync()
Public Shared Function RequestSetAsActiveCallOriginAppAsync () As IAsyncOperation(Of Boolean)

Returns

Indicates whether the app was set as the default phone origin application.

Attributes

Windows requirements

Device family
Windows Mobile Extension SDK (introduced in 10.0.14393.0)
API contract
Windows.ApplicationModel.Calls.CallsPhoneContract (introduced in v3.0)
App capabilities
phoneCallHistory phoneCallHistorySystem

Remarks

In order to use this API, your application needs to be registered as a phone call origin provider. If the application is not appropriately registered, this API will throw an exception. See Windows.ApplicationModel.Calls.Provider for more information about how to register as a phone call origin provider.

Applies to