WKContentRuleListStore.CompileContentRuleListAsync(String, String) 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.

public virtual System.Threading.Tasks.Task<WebKit.WKContentRuleList> CompileContentRuleListAsync (string identifier, string encodedContentRuleList);
abstract member CompileContentRuleListAsync : string * string -> System.Threading.Tasks.Task<WebKit.WKContentRuleList>
override this.CompileContentRuleListAsync : string * string -> System.Threading.Tasks.Task<WebKit.WKContentRuleList>

Parameters

identifier
String

The identifier for the newly compiled list.

encodedContentRuleList
String

JSON source to compile.

Returns

A task that represents the asynchronous CompileContentRuleList operation. The value of the TResult parameter is of type System.Action<WebKit.WKContentRuleList,Foundation.NSError>.

Applies to