Signal detail or null (default)
signal callback delegate or function to connect
bool callback(javascriptcore.value.Value value, webkit.script_message_reply.ScriptMessageReply reply, webkit.user_content_manager.UserContentManager userContentManager)
value the value received from the JavaScript world. (optional)
reply the #WebKitScriptMessageReply to send the reply to the script message. (optional)
userContentManager the instance the signal is connected to (optional)
Returns true to stop other handlers from being invoked for the event. false to propagate the event further.
Yes.After to execute callback after default handler, No.After to execute before (default)
Signal ID
Connect to ScriptMessageWithReplyReceived signal.
This signal is emitted when JavaScript in a web view calls <code>window.webkit.messageHandlers.<name>.postMessage()</code>, after registering <code><name></code> using webkit.user_content_manager.UserContentManager.registerScriptMessageHandlerWithReply
The given reply can be used to send a return value with webkit.script_message_reply.ScriptMessageReply.returnValue or an error message with webkit.script_message_reply.ScriptMessageReply.returnErrorMessage. If none of them are called, an automatic reply with an undefined value will be sent.
It is possible to handle the reply asynchronously, by simply calling gobject.object.ObjectWrap.ref_ on the reply and returning true.