send_message_to_context


Description:

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

Send message to the WebKitWebContext 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 calback. When the operation is finished, callback will be called. You can then call send_message_to_context.end to get the message reply.

Parameters:

this

a WebExtension

message

a UserMessage

cancellable

a Cancellable or null to ignore

callback

A TaskReadyCallback to call when the request is satisfied or null

user_data

the data to pass to callback function