WebKit2.UserMessage¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
class |
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
Name |
Type |
Flags |
Short Description |
|---|---|---|---|
r/w/co |
|||
r/w/co |
|||
r/w/co |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
|---|---|---|---|
parent |
r |
Class Details¶
- class WebKit2.UserMessage(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
Message that can be sent between the UI process and web process extensions.
A
WebKit2.UserMessageis a message that can be used for the communication between the UI process and web process extensions. AWebKit2.UserMessagealways has a name, and it can also include parameters and UNIX file descriptors. Messages can be sent from aWebKit2.WebContextto all web process extensions, from a web process extension to its correspondingWebKit2.WebContext, and from aWebKit2.WebViewto its corresponding #WebKitWebPage (and vice versa). One to one messages can be replied to directly withWebKit2.UserMessage.send_reply().New in version 2.28.
- classmethod new(name, parameters)¶
- Parameters:
name (
str) – the message nameparameters (
GLib.VariantorNone) – the message parameters as aGLib.Variant, orNone
- Returns:
the newly created
WebKit2.UserMessageobject.- Return type:
Create a new
WebKit2.UserMessagewith name.New in version 2.28.
- classmethod new_with_fd_list(name, parameters, fd_list)¶
- Parameters:
name (
str) – the message nameparameters (
GLib.VariantorNone) – the message parameters as aGLib.Variantfd_list (
Gio.UnixFDListorNone) – the message file descriptors
- Returns:
the newly created
WebKit2.UserMessageobject.- Return type:
Create a new
WebKit2.UserMessageincluding also a list of UNIX file descriptors to be sent.New in version 2.28.
- get_fd_list()¶
- Returns:
the message list of file descriptors
- Return type:
Get the self list of file descritpor.
New in version 2.28.
- get_parameters()¶
- Returns:
the message parameters
- Return type:
GLib.VariantorNone
Get the self parameters.
New in version 2.28.
- send_reply(reply)¶
- Parameters:
reply (
WebKit2.UserMessage) – aWebKit2.UserMessageto send as reply
Send a reply to an user message.
If reply is floating, it’s consumed. You can only send a reply to a
WebKit2.UserMessagethat has been received.New in version 2.28.
Property Details¶
- WebKit2.UserMessage.props.fd_list¶
- Name:
fd-list- Type:
- Default Value:
- Flags:
The UNIX file descriptors of the user message.
New in version 2.28.
- WebKit2.UserMessage.props.name¶
- Name:
name- Type:
- Default Value:
- Flags:
The name of the user message.
New in version 2.28.
- WebKit2.UserMessage.props.parameters¶
- Name:
parameters- Type:
- Default Value:
- Flags:
The parameters of the user message as a
GLib.Variant, orNoneif the message doesn’t include parameters. Note that only complete types are allowed.New in version 2.28.