One Logo Pool Ball
WebKit · IOS API REFERENCE

WKContentRuleListStore

class · iOS 11.0+ · SDK 27.1

@MainActor class WKContentRuleListStore

Members (6)

static · iOS 11.0+

default

TypeScript
static default(): Promise<(WKContentRuleListStore) | null>
Swift declaration
class func `default`() -> Self!
init · iOS 11.0+

init

TypeScript
static init(url?: (string) | null): Promise<WKContentRuleListStore>
Swift declaration
convenience init!(url: URL!)
method · iOS 11.0+

compileContentRuleList

TypeScript
compileContentRuleList(identifier?: (string) | null, encodedContentRuleList?: (string) | null, completionHandler?: (((arg0: (WKContentRuleList) | null, arg1: (NativeError) | null) => void)) | null): Promise<void>
Swift declaration
func compileContentRuleList(forIdentifier identifier: String!, encodedContentRuleList: String!) async throws -> WKContentRuleList?
method · iOS 11.0+

getAvailableContentRuleListIdentifiers

TypeScript
getAvailableContentRuleListIdentifiers(completionHandler?: (((arg0: (Array<string>) | null) => void)) | null): Promise<void>
Swift declaration
func availableIdentifiers() async -> [String]?
method · iOS 11.0+

lookUpContentRuleList

TypeScript
lookUpContentRuleList(identifier?: (string) | null, completionHandler?: (((arg0: (WKContentRuleList) | null, arg1: (NativeError) | null) => void)) | null): Promise<void>
Swift declaration
func contentRuleList(forIdentifier identifier: String!) async throws -> WKContentRuleList?
method · iOS 11.0+

removeContentRuleList

TypeScript
removeContentRuleList(identifier?: (string) | null, completionHandler?: (((arg0: (NativeError) | null) => void)) | null): Promise<void>
Swift declaration
func removeContentRuleList(forIdentifier identifier: String!) async throws

Skipped declarations

1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.

WKContentRuleListStore.init()

inherited init: cannot prove legal (class declares 2 custom initializers)

All WebKit types →