Signal
WebKit2WebExtensionWebPage::user-message-received
Declaration
gboolean
user_message_received (
WebKitWebPage* self,
WebKitUserMessage* message,
gpointer user_data
)
Description [src]
This signal is emitted when a WebKitUserMessage
is received from the
WebKitWebView
corresponding to web_page
. You can reply to the message
using webkit_user_message_send_reply().
You can handle the user message asynchronously by calling g_object_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_USER_MESSAGE_UNHANDLED_MESSAGE
.
Default handler: | The default handler is called after the handlers added via |
Available since: | 2.28 |
Parameters
message |
WebKitUserMessage |
The |
|
The data is owned by the caller of the function. |