UserMessage

class UserMessage(pointer: <Error class: unknown class><<Error class: unknown class>>)

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 webkit_user_message_send_reply().

Since

2.28

Constructors

Link copied to clipboard
constructor(name: String, parameters: <Error class: unknown class>? = null)

Create a new #WebKitUserMessage with @name.

constructor(name: String, parameters: <Error class: unknown class>? = null, fdList: <Error class: unknown class>? = null)

Create a new #WebKitUserMessage including also a list of UNIX file descriptors to be sent.

constructor(pointer: <Error class: unknown class><<Error class: unknown class>>)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val fdList: <Error class: unknown class>?

The UNIX file descriptors of the user message.

Link copied to clipboard

The name of the user message.

Link copied to clipboard
val parameters: <Error class: unknown class>?

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.

Link copied to clipboard
val webkitUserMessagePointer: <Error class: unknown class><<Error class: unknown class>>

Functions

Link copied to clipboard

Send a reply to an user message.