Share via


SFContentBlockerManager.GetStateOfContentBlockerAsync(String) Method

Definition

Asynchronously gets the state of the specified content blocker.

[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public static System.Threading.Tasks.Task<SafariServices.SFContentBlockerState> GetStateOfContentBlockerAsync(string identifier);
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
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