Edit

Share via


SFContentBlockerManager.GetStateOfContentBlockerAsync(String) Method

Definition

Passes the state of the specified content blocker to the provided completionHandler.

[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 10, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public static System.Threading.Tasks.Task<SafariServices.SFContentBlockerState> GetStateOfContentBlockerAsync (string identifier);
static member GetStateOfContentBlockerAsync : string -> System.Threading.Tasks.Task<SafariServices.SFContentBlockerState>

Parameters

identifier
String

Returns

A task that represents the asynchronous GetStateOfContentBlocker operation. The value of the TResult parameter is of type System.Action<SafariServices.SFContentBlockerState,Foundation.NSError>.

Attributes

Remarks

The GetStateOfContentBlockerAsync method is suitable to be used with C# async by returning control to the caller with a Task representing the operation.

To be added.

Applies to