WebKit2.Notification¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r |
|||
r |
|||
r |
|||
r |
Signals¶
- Inherited:
Name |
Short Description |
---|---|
Emitted when a notification has been clicked. |
|
Emitted when a notification has been withdrawn. |
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent |
r |
Class Details¶
- class WebKit2.Notification(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
Holds information about a notification that should be shown to the user.
New in version 2.8.
- clicked()¶
Tells WebKit the notification has been clicked.
This will emit the
WebKit2.Notification
::clicked
signal.New in version 2.12.
- close()¶
Closes the notification.
New in version 2.8.
- get_body()¶
- Returns:
the body for the notification
- Return type:
Obtains the body for the notification.
New in version 2.8.
- get_id()¶
- Returns:
the unique id for the notification
- Return type:
Obtains the unique id for the notification.
New in version 2.8.
- get_tag()¶
-
Obtains the tag identifier for the notification.
New in version 2.16.
Signal Details¶
- WebKit2.Notification.signals.clicked(notification)¶
- Signal Name:
clicked
- Flags:
- Parameters:
notification (
WebKit2.Notification
) – The object which received the signal
Emitted when a notification has been clicked. See
WebKit2.Notification.clicked
().New in version 2.12.
- WebKit2.Notification.signals.closed(notification)¶
- Signal Name:
closed
- Flags:
- Parameters:
notification (
WebKit2.Notification
) – The object which received the signal
Emitted when a notification has been withdrawn.
The default handler will close the notification using libnotify, if built with support for it.
New in version 2.8.
Property Details¶
- WebKit2.Notification.props.body¶
-
The body for the notification.
New in version 2.8.
- WebKit2.Notification.props.id¶
-
The unique id for the notification.
New in version 2.8.
- WebKit2.Notification.props.tag¶
-
The tag identifier for the notification.
New in version 2.16.