Constants¶
Details¶
- Notify.EXPIRES_DEFAULT = -1¶
The default expiration time on a notification.
- Notify.EXPIRES_NEVER = 0¶
The notification never expires.
It stays open until closed by the calling API or the user.
- Notify.NOTIFICATION_HINT_ACTION_ICONS = 'action-icons'¶
When set, a server that has the “action-icons” capability will attempt to interpret any action identifier as a named icon. The localized display name will be used to annotate the icon for accessibility purposes. The icon name should be compliant with the Freedesktop.org Icon Naming Specification.
Requires server supporting specification version >= 1.2.
Hint [type`GLib`.VariantType]: [const`GLib`.VARIANT_TYPE_BOOLEAN] (
b).New in version 0.8.8.
- Notify.NOTIFICATION_HINT_CATEGORY = 'category'¶
The type of notification this is.
Hint [type`GLib`.VariantType]: [const`GLib`.VARIANT_TYPE_STRING] (
s).New in version 0.8.8.
- Notify.NOTIFICATION_HINT_DESKTOP_ENTRY = 'desktop-entry'¶
This specifies the name of the desktop filename representing the calling program. This should be the same as the prefix used for the application’s .desktop file. An example would be “rhythmbox” from “rhythmbox.desktop”. This can be used by the daemon to retrieve the correct icon for the application, for logging purposes, etc.
Hint [type`GLib`.VariantType]: [const`GLib`.VARIANT_TYPE_STRING] (
s).New in version 0.8.8.
- Notify.NOTIFICATION_HINT_IMAGE_DATA = 'image-data'¶
This is a raw data image format which describes the width, height, rowstride, has alpha, bits per sample, channels and image data respectively.
Requires server supporting specification version >= 1.2
[type`GLib`.VariantType]:
(iiibiiay)New in version 0.8.8.
- Notify.NOTIFICATION_HINT_IMAGE_DATA_LEGACY = 'image_data'¶
This is a raw data image format which describes the width, height, rowstride, has alpha, bits per sample, channels and image data respectively.
Requires server supporting specification version >= 1.1
[type`GLib`.VariantType]:
(iiibiiay)New in version 0.8.8.
- Notify.NOTIFICATION_HINT_IMAGE_PATH = 'image-path'¶
Alternative way to define the notification image.
Requires server supporting specification version >= 1.2.
Hint [type`GLib`.VariantType]: [const`GLib`.VARIANT_TYPE_STRING] (
s).New in version 0.8.8.
- Notify.NOTIFICATION_HINT_IMAGE_PATH_LEGACY = 'image_path'¶
Alternative way to define the notification image.
Requires server supporting specification version >= 1.1.
Hint [type`GLib`.VariantType]: [const`GLib`.VARIANT_TYPE_STRING] (
s).New in version 0.8.8.
- Notify.NOTIFICATION_HINT_RESIDENT = 'resident'¶
When set the server will not automatically remove the notification when an action has been invoked. The notification will remain resident in the server until it is explicitly removed by the user or by the sender. This hint is likely only useful when the server has the “persistence” capability.
Requires server supporting specification version >= 1.2.
Hint [type`GLib`.VariantType]: [const`GLib`.VARIANT_TYPE_BOOLEAN] (
b).New in version 0.8.8.
- Notify.NOTIFICATION_HINT_SOUND_FILE = 'sound-file'¶
The path to a sound file to play when the notification pops up.
Hint [type`GLib`.VariantType]: [const`GLib`.VARIANT_TYPE_STRING] (
s).New in version 0.8.8.
- Notify.NOTIFICATION_HINT_SOUND_NAME = 'sound-name'¶
A themeable named sound from the freedesktop.org sound naming specification to play when the notification pops up. Similar to icon-name, only for sounds. An example would be “message-new-instant”.
Hint [type`GLib`.VariantType]: [const`GLib`.VARIANT_TYPE_STRING] (
s).New in version 0.8.8.
- Notify.NOTIFICATION_HINT_SUPPRESS_SOUND = 'suppress-sound'¶
Causes the server to suppress playing any sounds, if it has that ability. This is usually set when the client itself is going to play its own sound.
Hint [type`GLib`.VariantType]: [const`GLib`.VARIANT_TYPE_BOOLEAN] (
b).New in version 0.8.8.
- Notify.NOTIFICATION_HINT_TRANSIENT = 'transient'¶
When set the server will treat the notification as transient and by-pass the server’s persistence capability, if it should exist.
Requires server supporting specification version >= 1.2.
Hint [type`GLib`.VariantType]: [const`GLib`.VARIANT_TYPE_BOOLEAN] (
b).New in version 0.8.8.
- Notify.NOTIFICATION_HINT_URGENCY = 'urgency'¶
The urgency level.
Hint [type`GLib`.VariantType]: [const`GLib`.VARIANT_TYPE_BYTE] (
y).New in version 0.8.8.
- Notify.NOTIFICATION_HINT_X = 'x'¶
Specifies the X location on the screen that the notification should point to. The “y” hint must also be specified.
Hint [type`GLib`.VariantType]: [const`GLib`.VARIANT_TYPE_INT32] (
i).New in version 0.8.8.
- Notify.NOTIFICATION_HINT_Y = 'y'¶
Specifies the Y location on the screen that the notification should point to. The “x” hint must also be specified.
Hint [type`GLib`.VariantType]: [const`GLib`.VARIANT_TYPE_INT32] (
i).New in version 0.8.8.
- Notify.VERSION_MAJOR = 0¶
Notify major version component (e.g. 1 if the version is 1.2.3).
- Notify.VERSION_MICRO = 8¶
Notify micro version component (e.g. 3 if the version is 1.2.3).
- Notify.VERSION_MINOR = 8¶
Notify minor version component (e.g. 2 if the version is 1.2.3).