script_message_with_reply_received
Description:
public signal bool script_message_with_reply_received (Value value, ScriptMessageReply reply)
This signal is emitted when JavaScript in a web view calls <code>window.
webkit.messageHandlers.<name>.postMessage()</code>, after registering <code><name></code> using register_script_message_handler_with_reply
The given reply
can be used to send a return value with
return_value or an error message with
return_error_message. 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 @ref on
the reply
and returning true.
Parameters:
value |
the value received from the JavaScript world. |
reply |
the ScriptMessageReply to send the reply to the script message. |
Returns:
true to stop other handlers from being invoked for the event. false to propagate the event further. |