Share via


SFContentBlockerManager.GetStateOfContentBlocker Method

Definition

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

[Foundation.Export("getStateOfContentBlockerWithIdentifier:completionHandler:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public static void GetStateOfContentBlocker(string identifier, Action<SafariServices.SFContentBlockerState,Foundation.NSError> completionHandler);
[<Foundation.Export("getStateOfContentBlockerWithIdentifier:completionHandler:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
static member GetStateOfContentBlocker : string * Action<SafariServices.SFContentBlockerState, Foundation.NSError> -> unit

Parameters

identifier
String
completionHandler
Action<SFContentBlockerState,NSError>
Attributes

Applies to