webkitwebprocessextension.user_message

Module for [UserMessage] class

Types 3

Message that can be sent between the UI process and web process extensions.

A WebKitUserMessage is a message that can be used for the communication between the UI process and web process extensions. A WebKitUserMessage always has a name, and it can also include parameters and UNIX file descriptors. Messages can be sent from a #WebKitWebContext to all web process extensions, from a web process extension to its corresponding #WebKitWebContext, and from a #WebKitWebView to its corresponding #WebKitWebPage (and vice versa). One to one messages can be replied to directly with [webkitwebprocessextension.user_message.UserMessage.sendReply].

Methods
GType _gType() @property
UserMessage self()Returns `this`, for use in `with` statements.
UserMessageGidBuilder builder()Get builder for [webkitwebprocessextension.user_message.UserMessage] Returns: New builder object
gio.unix_fdlist.UnixFDList fdList() @propertyGet `fdList` property. Returns: The UNIX file descriptors of the user message.
string name() @propertyGet `name` property. Returns: The name of the user message.
glib.variant.Variant parameters() @propertyGet `parameters` property. Returns: The parameters of the user message as a #GVariant, or null if the message doesn't include parameters. Note that only complete types are allowed.
webkitwebprocessextension.user_message.UserMessage newWithFdList(string name, glib.variant.Variant parameters = null, gio.unix_fdlist.UnixFDList fdList = null)Create a new #WebKitUserMessage including also a list of UNIX file descriptors to be sent.
gio.unix_fdlist.UnixFDList getFdList()Get the message list of file descritpor. Returns: the message list of file descriptors
string getName()Get the message name. Returns: the message name
glib.variant.Variant getParameters()Get the message parameters. Returns: the message parameters
void sendReply(webkitwebprocessextension.user_message.UserMessage reply)Send a reply to an user message.
Constructors
this(void * ptr, Flag!"Take" take)
this(string name, glib.variant.Variant parameters = null)Create a new #WebKitUserMessage with name.
Methods
T fdList(gio.unix_fdlist.UnixFDList propval)Set `fdList` property. Params: propval = The UNIX file descriptors of the user message. Returns: Builder instance for fluent chaining
T name(string propval)Set `name` property. Params: propval = The name of the user message. Returns: Builder instance for fluent chaining
T parameters(glib.variant.Variant propval)Set `parameters` property. Params: propval = The parameters of the user message as a #GVariant, or null if the message doesn't include parameters. Note that only complete types are allowed. Returns...

Fluent builder for [webkitwebprocessextension.user_message.UserMessage]