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
UserMessage self()Returns `this`, for use in `with` statements.UserMessageGidBuilder builder()Get builder for [webkit.user_message.UserMessage] Returns: New builder objectgio.unix_fdlist.UnixFDList fdList() @propertyGet `fdList` property. Returns: The UNIX file descriptors 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.webkit.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 descriptorsstring getName()Get the message name. Returns: the message nameglib.variant.Variant getParameters()Get the message parameters. Returns: the message parametersvoid sendReply(webkit.user_message.UserMessage reply)Send a reply to an user message.Constructors
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 chainingT name(string propval)Set `name` property. Params: propval = The name of the user message. Returns: Builder instance for fluent chainingT 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 [webkit.user_message.UserMessage]
Methods