CommunicationBlockingAppManager CommunicationBlockingAppManager CommunicationBlockingAppManager CommunicationBlockingAppManager Class

Definition

Determines the application to use as a blocking application.

public : static class CommunicationBlockingAppManagerpublic static class CommunicationBlockingAppManagerPublic Static Class CommunicationBlockingAppManager// 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.CommunicationBlocking.CommunicationBlockingContract (introduced v1)

Remarks

A user can install multiple applications that are capable of filtering messages and calls. However, only one of these blocking applications can be active at a time. This class is used to determine the active blocking application.

When an application is selected to be the active call blocking app, it will be notified by CommunicationBlockingAppSetAsActiveTrigger

Properties

IsCurrentAppActiveBlockingApp IsCurrentAppActiveBlockingApp IsCurrentAppActiveBlockingApp IsCurrentAppActiveBlockingApp

Indicates whether the current application is the active blocking application.

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

Value that tells whether the current application is the active blocking app.

Methods

RequestSetAsActiveBlockingAppAsync() RequestSetAsActiveBlockingAppAsync() RequestSetAsActiveBlockingAppAsync() RequestSetAsActiveBlockingAppAsync()

Calls a dialog to set the current app as the default phone communication blocking application.

public : static IAsyncOperation<PlatForm::Boolean> RequestSetAsActiveBlockingAppAsync()public static IAsyncOperation<bool> RequestSetAsActiveBlockingAppAsync()Public Static Function RequestSetAsActiveBlockingAppAsync() As IAsyncOperation( Of bool )// You can use this method in JavaScript.
Returns

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

Additional features and requirements
Device family
Windows Mobile Extension SDK (introduced v10.0.14393.0)
API contract
Windows.ApplicationModel.CommunicationBlocking.CommunicationBlockingContract (introduced v2)

Remarks

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

ShowCommunicationBlockingSettingsUI() ShowCommunicationBlockingSettingsUI() ShowCommunicationBlockingSettingsUI() ShowCommunicationBlockingSettingsUI()

Displays the UI to select the currently active blocking application.

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

Remarks

Multiple call blocking applications can be installed on a single device. However, only one of these apps can be active at a time. The only way to switch the currently active app is to call ShowCommunicationBlockingSettingsUI and let the user select which app should be active.

See Also