lookUpContentRuleList(forIdentifier:completionHandler:)
Searches asynchronously for a specific rule list in the data store.
Declaration
func lookUpContentRuleList(forIdentifier identifier: String!, completionHandler: ((WKContentRuleList?, (any Error)?) -> Void)!)func contentRuleList(forIdentifier identifier: String!) async throws -> WKContentRuleList?Parameters
- identifier:
The identifier of the list you want.
- completionHandler:
A completion handler block to call with the results of the search. This block has no return value and takes the following parameters:
- ruleList
The Wkcontentrulelist object with the specified identifier. This parameter is
nilif the error occurs during the search.- error
nilon success, or an error object if an error occurs during the search.