Contents

removeAllScriptMessageHandlers(from:)

Uninstalls all custom message handlers from the specified content world in your JavaScript code.

Declaration

func removeAllScriptMessageHandlers(from contentWorld: WKContentWorld)

Parameters

  • contentWorld:

    The content world from which to remove the message handler. For more information about content worlds, see Wkcontentworld.

Discussion

Use this method to remove all message handlers in the specified content world. Message handlers in other content worlds are unaffected.

See Also

Adding and Removing Message Handlers