removeScriptMessageHandler(forName:contentWorld:)
Uninstalls a custom message handler from the specified content world in your JavaScript code.
Declaration
func removeScriptMessageHandler(forName name: String, contentWorld: WKContentWorld)Parameters
- name:
The name of the message handler to remove. If no message handler with this name exists in the user content controller, this method does nothing.
- contentWorld:
The content world from which to remove the message handler. For more information about content worlds, see Wkcontentworld.