add
TypeScriptadd(contentRuleList: WKContentRuleList): Promise<void>Swift declarationfunc add(_ contentRuleList: WKContentRuleList)class · iOS 8.0+ · SDK 27.1
@MainActor class WKUserContentControlleradd(contentRuleList: WKContentRuleList): Promise<void>Swift declarationfunc add(_ contentRuleList: WKContentRuleList)addContentWorldName(scriptMessageHandler: Implements<WKScriptMessageHandler> | SDKHandle, world: WKContentWorld, name: string): Promise<void>Swift declarationfunc add(_ scriptMessageHandler: any WKScriptMessageHandler, contentWorld world: WKContentWorld, name: String)addName(scriptMessageHandler: Implements<WKScriptMessageHandler> | SDKHandle, name: string): Promise<void>Swift declarationfunc add(_ scriptMessageHandler: any WKScriptMessageHandler, name: String)addScriptMessageHandler(scriptMessageHandlerWithReply: SDKHandle, contentWorld: WKContentWorld, name: string): Promise<void>Swift declarationfunc addScriptMessageHandler(_ scriptMessageHandlerWithReply: any WKScriptMessageHandlerWithReply, contentWorld: WKContentWorld, name: String)addUserScript(userScript: WKUserScript): Promise<void>Swift declarationfunc addUserScript(_ userScript: WKUserScript)static init(): Promise<WKUserContentController>Swift declarationinit()removeAllContentRuleLists(): Promise<void>Swift declarationfunc removeAllContentRuleLists()removeAllScriptMessageHandlers(): Promise<void>Swift declarationfunc removeAllScriptMessageHandlers()removeAllScriptMessageHandlersFrom(contentWorld: WKContentWorld): Promise<void>Swift declarationfunc removeAllScriptMessageHandlers(from contentWorld: WKContentWorld)removeAllUserScripts(): Promise<void>Swift declarationfunc removeAllUserScripts()remove(contentRuleList: WKContentRuleList): Promise<void>Swift declarationfunc remove(_ contentRuleList: WKContentRuleList)removeScriptMessageHandlerForName(name: string): Promise<void>Swift declarationfunc removeScriptMessageHandler(forName name: String)removeScriptMessageHandlerForNameContentWorld(name: string, contentWorld: WKContentWorld): Promise<void>Swift declarationfunc removeScriptMessageHandler(forName name: String, contentWorld: WKContentWorld)get userScripts(): Promise<Array<WKUserScript>>Swift declarationvar userScripts: [WKUserScript] { get }removeBuffer(name: string, contentWorld: WKContentWorld): Promise<void>Swift declaration@MainActor @preconcurrency func removeBuffer(named name: String, from contentWorld: WKContentWorld)Removes a previously added data buffer from the given `WKContentWorld`. - Parameters: - name: The name of the buffer to remove. - contentWorld: The `WKContentWorld` from which to remove the buffer.
1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.
WKUserContentController.addBuffer(_:name:to:)
The iOS SDK compiler rejected this binding: instance method 'arg' requires that 'RawSpan' conform to 'Escapable'