Instance Method

removeScriptMessageHandler(forName:)

Removes a script message handler.

Declaration

func removeScriptMessageHandler(forName name: String)

Parameters

name

The name of the message handler to remove.

See Also

Adding and Removing User Scripts

func removeAllUserScripts()

Removes all associated user scripts.

var userScripts: [WKUserScript]

The user scripts associated with the user content controller.