send_message_to_page
Description:
[ Version ( since = "2.28" ) ]
public async UserMessage send_message_to_page (UserMessage message, Cancellable? cancellable = null) throws Error
public async UserMessage send_message_to_page (UserMessage message, Cancellable? cancellable = null) throws Error
Send message
to the WebKitWebPage
corresponding to this.
If message
is floating, it's consumed. If you don't expect any reply, or you simply want to ignore it, you can pass
null as callback
. When the operation is finished, callback
will be called. You can
then call send_message_to_page.end to get the message reply.
Parameters:
this |
a WebView |
message | |
cancellable |
a Cancellable or null to ignore |
callback |
(nullable): A TaskReadyCallback to call when the request is satisfied or null |
user_data |
the data to pass to callback function |