send_message_to_view


Description:

[ Version ( since = "2.28" ) ]
public async UserMessage send_message_to_view (UserMessage message, Cancellable? cancellable) throws Error

Send message to the WebKitWebView 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_view.end to get the message reply.

Parameters:

this

a WebPage

message

a UserMessage

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




2022 vala-language.org