Instance Method

userContentController(_:didReceive:)

Invoked when a script message is received from a webpage.

Required.

Declaration

func userContentController(_ userContentController: WKUserContentController, didReceive message: WKScriptMessage)

Parameters

userContentController

The user content controller invoking the delegate method.

message

The script message received.