Instance Method

userContentController:didReceiveScriptMessage:

Invoked when a script message is received from a webpage.

Required.

Declaration

- (void)userContentController:(WKUserContentController *)userContentController didReceiveScriptMessage:(WKScriptMessage *)message;

Parameters

userContentController

The user content controller invoking the delegate method.

message

The script message received.