Class

AstalNotifdNotification

Description

class AstalNotifd.Notification : GObject.Object
{
  /* No available fields */
}

Class representing a notification.

Ancestors

Constructors

astal_notifd_notification_new
No description available.

Instance methods

astal_notifd_notification_dismiss

Resolve this notification with ASTAL_NOTIFD_CLOSED_REASON_DISMISSED_BY_USER.

astal_notifd_notification_expire

Resolve this notification with ASTAL_NOTIFD_CLOSED_REASON_EXPIRED. Note that there should be no reason to use this method because expiration should be left to the daemon.

astal_notifd_notification_invoke

Invoke an AstalNotifdAction of this notification.

astal_notifd_notification_add_action
No description available.

astal_notifd_notification_set_hint
No description available.

astal_notifd_notification_get_hint
No description available.

astal_notifd_notification_get_state
No description available.

astal_notifd_notification_get_time
No description available.

astal_notifd_notification_get_id
No description available.

astal_notifd_notification_set_id
No description available.

astal_notifd_notification_get_app_name
No description available.

astal_notifd_notification_set_app_name
No description available.

astal_notifd_notification_get_app_icon
No description available.

astal_notifd_notification_set_app_icon
No description available.

astal_notifd_notification_get_summary
No description available.

astal_notifd_notification_set_summary
No description available.

astal_notifd_notification_get_body
No description available.

astal_notifd_notification_set_body
No description available.

astal_notifd_notification_get_actions
No description available.

astal_notifd_notification_get_hints
No description available.

astal_notifd_notification_get_image
No description available.

astal_notifd_notification_set_image
No description available.

astal_notifd_notification_get_action_icons
No description available.

astal_notifd_notification_set_action_icons
No description available.

astal_notifd_notification_get_category
No description available.

astal_notifd_notification_set_category
No description available.

astal_notifd_notification_get_resident
No description available.

astal_notifd_notification_set_resident
No description available.

astal_notifd_notification_get_sound_file
No description available.

astal_notifd_notification_set_sound_file
No description available.

astal_notifd_notification_get_sound_name
No description available.

astal_notifd_notification_set_sound_name
No description available.

astal_notifd_notification_get_transient
No description available.

astal_notifd_notification_set_transient
No description available.

astal_notifd_notification_get_x
No description available.

astal_notifd_notification_set_x
No description available.

astal_notifd_notification_get_y
No description available.

astal_notifd_notification_set_y
No description available.

astal_notifd_notification_get_urgency
No description available.

astal_notifd_notification_set_urgency
No description available.

Methods inherited from GObject (43)

Please see GObject for a full list of methods.

Properties

AstalNotifd.Notification:state

State of the notification.

AstalNotifd.Notification:time

Unix time of when the notification was sent or received.

AstalNotifd.Notification:id

Id of the notification.

AstalNotifd.Notification:app-name

Name of the sending application.

AstalNotifd.Notification:app-icon

Icon name of the sending application.

AstalNotifd.Notification:summary

Single line overview of the notification.

AstalNotifd.Notification:body

Multi-line body of text, where each line is a paragraph. May contain markup.

AstalNotifd.Notification:expire-timeout

Time in milliseconds after the notification expires.

AstalNotifd.Notification:actions

List of AstalNotifdAction of the notification. Can be invoked by calling astal_notifd_notification_invoke() with the action’s id.

AstalNotifd.Notification:hints

Hints of the notification. Hints are a way to provide extra data to servers. To set hints on a DRAFT Notification use [method@ AstalNotifd.Notification.set_hint] or the property setters for standard hints.

AstalNotifd.Notification:image

Standard image-path hint. Path of an image.

AstalNotifd.Notification:action-icons

Standard action-icons hint. Indicates whether AstalNotifdAction identifier should be interpreted as a named icon.

AstalNotifd.Notification:category

Standard category hint. .

AstalNotifd.Notification:desktop-entry

Standard desktop-entry hint. Specifies the name of the desktop filename representing the calling program.

AstalNotifd.Notification:resident

Standard resident hint. Indicates whether notification is kept after action invocation.

AstalNotifd.Notification:sound-file

Standard sound-file hint. The path to a sound file to play when the notification pops up.

AstalNotifd.Notification:sound-name

Standard sound-name hint. A themeable named sound from to play when the notification pops up.

AstalNotifd.Notification:suppress-sound

Standard suppress-sound hint. Indicates to suppress playing any sounds.

AstalNotifd.Notification:transient

Standard transient hint. Indicates that the notification should be excluded from persistency.

AstalNotifd.Notification:x

Standard x hint. Specifies the X location on the screen that the notification should point to. The “y” hint must also be specified.

AstalNotifd.Notification:y

Standard y hint. Specifies the Y location on the screen that the notification should point to. The “x” hint must also be specified.

AstalNotifd.Notification:urgency

Standard urgency hint. AstalNotifdUrgency level of the notification.

Signals

AstalNotifd.Notification::resolved

Emitted when this this notification is resolved.

AstalNotifd.Notification::invoked

Emitted when an AstalNotifdAction of this notification is invoked.

Signals inherited from GObject (1)
GObject::notify

The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.

Class structure

struct AstalNotifdNotificationClass {
  /* no available fields */
}

No description available.