Edit

Share via


WKContentRuleListStore.CompileContentRuleList Method

Definition

Compiles the provided list of rules, adds the list to the store with the specified identifier, and runs a handler that receives the content list and any error that is encountered.

[Foundation.Export("compileContentRuleListForIdentifier:encodedContentRuleList:completionHandler:")]
public virtual void CompileContentRuleList (string identifier, string encodedContentRuleList, Action<WebKit.WKContentRuleList,Foundation.NSError> completionHandler);
abstract member CompileContentRuleList : string * string * Action<WebKit.WKContentRuleList, Foundation.NSError> -> unit
override this.CompileContentRuleList : string * string * Action<WebKit.WKContentRuleList, Foundation.NSError> -> unit

Parameters

identifier
String

The identifier for the newly compiled list.

encodedContentRuleList
String

JSON source to compile.

completionHandler
Action<WKContentRuleList,NSError>

A handler to run after compilation completes or stops with an error.

Attributes

Applies to