CommunicationBlockingAccessManager
CommunicationBlockingAccessManager
CommunicationBlockingAccessManager
CommunicationBlockingAccessManager
Class
Definition
The manager responsible for keeping track of blocked numbers and displaying the appropriate blocking user interfaces.
public : static class CommunicationBlockingAccessManagerpublic static class CommunicationBlockingAccessManagerPublic Static Class CommunicationBlockingAccessManager// You can use this class in JavaScript.
- Attributes
| Device family |
Windows Mobile Extension SDK (introduced v10.0.10240.0)
|
| API contract |
Windows.ApplicationModel.CommunicationBlocking.CommunicationBlockingContract (introduced v1)
|
Properties
IsBlockingActive IsBlockingActive IsBlockingActive IsBlockingActive
Gets whether or not blocking is currently enabled.
public : static PlatForm::Boolean IsBlockingActive { get; }public static bool IsBlockingActive { get; }Public Static ReadOnly Property IsBlockingActive As bool// You can use this property in JavaScript.
- Value
- PlatForm::Boolean bool bool bool
Determines if blocking is enabled.
Methods
IsBlockedNumberAsync(String) IsBlockedNumberAsync(String) IsBlockedNumberAsync(String) IsBlockedNumberAsync(String)
An asynchronous operation that returns whether or not a number is on the block list.
public : static IAsyncOperation<PlatForm::Boolean> IsBlockedNumberAsync(PlatForm::String number)public static IAsyncOperation<bool> IsBlockedNumberAsync(String number)Public Static Function IsBlockedNumberAsync(number As String) As IAsyncOperation( Of bool )// You can use this method in JavaScript.
- number
- PlatForm::String String String String
The number to check.
Asynchronously returns whether or not the number is blocked.
ShowBlockedCallsUI() ShowBlockedCallsUI() ShowBlockedCallsUI() ShowBlockedCallsUI()
Displays the list of blocked calls.
public : static void ShowBlockedCallsUI()public static void ShowBlockedCallsUI()Public Static Function ShowBlockedCallsUI() As void// You can use this method in JavaScript.
ShowBlockedMessagesUI() ShowBlockedMessagesUI() ShowBlockedMessagesUI() ShowBlockedMessagesUI()
Displays the list of blocked messages.
public : static void ShowBlockedMessagesUI()public static void ShowBlockedMessagesUI()Public Static Function ShowBlockedMessagesUI() As void// You can use this method in JavaScript.
ShowBlockNumbersUI(IIterable)
ShowBlockNumbersUI(IIterable)
ShowBlockNumbersUI(IIterable)
ShowBlockNumbersUI(IIterable)
Launches a UI to block numbers if there as an active blocking app.
public : static PlatForm::Boolean ShowBlockNumbersUI(IIterable<PlatForm::String> phoneNumbers)public static bool ShowBlockNumbersUI(IEnumerable<String> phoneNumbers)Public Static Function ShowBlockNumbersUI(phoneNumbers As IEnumerable<String>) As bool// You can use this method in JavaScript.
- phoneNumbers
- IIterable<PlatForm::String> IEnumerable<String> IEnumerable<String> IEnumerable<String>
The list of numbers to add to the block list.
Returns true if the active blocking app is launched, otherwise returns false.
Remarks
This method creates and displays a user interface to enable the user to block the provided phoneNumbers.
ShowUnblockNumbersUI(IIterable)
ShowUnblockNumbersUI(IIterable)
ShowUnblockNumbersUI(IIterable)
ShowUnblockNumbersUI(IIterable)
Launches the app to unblock numbers if there as an active blocking app.
public : static PlatForm::Boolean ShowUnblockNumbersUI(IIterable<PlatForm::String> phoneNumbers)public static bool ShowUnblockNumbersUI(IEnumerable<String> phoneNumbers)Public Static Function ShowUnblockNumbersUI(phoneNumbers As IEnumerable<String>) As bool// You can use this method in JavaScript.
- phoneNumbers
- IIterable<PlatForm::String> IEnumerable<String> IEnumerable<String> IEnumerable<String>
The list of numbers to remove from the block list.
Returns true if the active blocking app is launched, otherwise returns false.