Class

WKScriptMessage

A WKScriptMessage object contains information about a message sent from a webpage.

Declaration

@interface WKScriptMessage : NSObject

Topics

Inspecting Message Information

body

The body of the message.

frameInfo

The frame sending the message.

name

The name of the message handler to which the message is sent.

webView

The web view sending the message.

Relationships

Inherits From

See Also

Scripts

WKUserContentController

A WKUserContentController object provides a way for JavaScript to post messages and inject user scripts to a web view.

WKUserScript

A WKUserScript object represents a script that can be injected into a webpage.

WKScriptMessageHandler

A class conforming to the WKScriptMessageHandler protocol provides a method for receiving messages from JavaScript running in a webpage.