signal callback delegate or function to connect
bool callback(webkitwebprocessextension.user_message.UserMessage message, webkitwebprocessextension.web_page.WebPage webPage)
message the #WebKitUserMessage received (optional)
webPage the instance the signal is connected to (optional)
Returns true if the message was handled, or false otherwise.
Yes.After to execute callback after default handler, No.After to execute before (default)
Signal ID
Connect to UserMessageReceived signal.
This signal is emitted when a #WebKitUserMessage is received from the #WebKitWebView corresponding to web_page. You can reply to the message using webkitwebprocessextension.user_message.UserMessage.sendReply.
You can handle the user message asynchronously by calling gobject.object.ObjectWrap.ref_ on message and returning true. If the last reference of message is removed and the message has been replied, the operation in the #WebKitWebView will finish with error webkit.types.UserMessageError.Message.