webkit.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 _getGType() static nothrow
GType _gType() @property nothrow
UserMessage self() nothrowReturns `this`, for use in `with` statements.
UserMessageGidBuilder builder() static nothrowGet builder for [webkit.user_message.UserMessage] Returns: New builder object
gio.unix_fdlist.UnixFDList fdList() @property nothrowGet `fdList` property. Returns: The UNIX file descriptors of the user message.
string name() @property nothrowGet `name` property. Returns: The name of the user message.
glib.variant.Variant parameters() @property nothrowGet `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.
webkit.user_message.UserMessage newWithFdList(string name, glib.variant.Variant parameters = null, gio.unix_fdlist.UnixFDList fdList = null) static nothrowCreate a new #WebKitUserMessage including also a list of UNIX file descriptors to be sent.
gio.unix_fdlist.UnixFDList getFdList() nothrowGet the message list of file descritpor. Returns: the message list of file descriptors
string getName() nothrowGet the message name. Returns: the message name
glib.variant.Variant getParameters() nothrowGet the message parameters. Returns: the message parameters
void sendReply(webkit.user_message.UserMessage reply) nothrowSend 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.

Fluent builder implementation template for webkit.user_message.UserMessage

Methods
T fdList(gio.unix_fdlist.UnixFDList propval) nothrowSet `fdList` property. Params: propval = The UNIX file descriptors of the user message. Returns: Builder instance for fluent chaining
T name(string propval) nothrowSet `name` property. Params: propval = The name of the user message. Returns: Builder instance for fluent chaining
T parameters(glib.variant.Variant propval) nothrowSet `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...
Methods
UserMessage build() nothrowCreate object from builder. Returns: New object