WebKit.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:
Class Details¶
- class WebKit.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
WebKit.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¶
- WebKit.Notification.signals.clicked(notification)¶
- Signal Name:
clicked
- Flags:
- Parameters:
notification (
WebKit.Notification
) – The object which received the signal
Emitted when a notification has been clicked. See
WebKit.Notification.clicked
().New in version 2.12.
- WebKit.Notification.signals.closed(notification)¶
- Signal Name:
closed
- Flags:
- Parameters:
notification (
WebKit.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¶
- WebKit.Notification.props.body¶
-
The body for the notification.
New in version 2.8.
- WebKit.Notification.props.id¶
-
The unique id for the notification.
New in version 2.8.
- WebKit.Notification.props.tag¶
-
The tag identifier for the notification.
New in version 2.16.