Class

ValentNotification

since: 1.0

Description [src]

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

A class representing a notification.

ValentNotification is a derivable, generic class for a notification.

Available since: 1.0

Hierarchy

hierarchy this ValentNotification ancestor_0 GObject ancestor_0--this

Ancestors

Constructors

valent_notification_new

Create a new ValentNotification.

since: 1.0

Functions

valent_notification_add_device_button

Add an action button to notification. action is wrapped in the special device action for device, which allows it to be activated from the app action scope.

since: 1.0

valent_notification_deserialize

Deserializes variant into a ValentNotification. Since ValentNotification is effectively a super-set of GNotification, variant may be a serialized GNotification or ValentNotification.

since: 1.0

valent_notification_set_device_action

Set the default action for notification. action is wrapped in the special device action for device, which allows it to be activated from the app action scope.

since: 1.0

Instance methods

valent_notification_add_button

Add a notification button.

since: 1.0

valent_notification_add_button_with_target

Add a notification button.

since: 1.0

valent_notification_equal

Compare two notifications for equality by ID.

since: 1.0

valent_notification_get_application

Get the notifying application.

since: 1.0

valent_notification_get_body

Get the notification body.

since: 1.0

valent_notification_get_icon

Get the notification icon.

since: 1.0

valent_notification_get_id

Get the notification ID.

since: 1.0

valent_notification_get_priority

Get the notification priority.

since: 1.0

valent_notification_get_time

Get the notification time.

since: 1.0

valent_notification_get_title

Get the notification title.

since: 1.0

valent_notification_hash

Converts a notification to a hash value, using g_str_hash() on the ID.

since: 1.0

valent_notification_serialize

Serialize the notification into a variant of type a{sv}.

since: 1.0

valent_notification_set_action

Sets the default notification action.

since: 1.0

valent_notification_set_action_and_target

Set the default notification action.

since: 1.0

valent_notification_set_application

Set the notifying application.

since: 1.0

valent_notification_set_body

Set the notification body.

since: 1.0

valent_notification_set_icon

Set the notification icon.

since: 1.0

valent_notification_set_id

Set the notification ID.

since: 1.0

valent_notification_set_priority

Set the notification priority.

since: 1.0

valent_notification_set_time

Set the notification time.

since: 1.0

valent_notification_set_title

Set the notification title.

since: 1.0

Methods inherited from GObject (43)

Please see GObject for a full list of methods.

Properties

Valent.Notification:action

The default notification action.

since: 1.0

Valent.Notification:application

The notifying application.

since: 1.0

Valent.Notification:body

The notification body.

since: 1.0

Valent.Notification:icon

The notification GIcon.

since: 1.0

Valent.Notification:id

The unique ID of the notification.

since: 1.0

Valent.Notification:priority

The notification priority.

since: 1.0

Valent.Notification:time

The posting time of the notification in milliseconds.

since: 1.0

Valent.Notification:title

The title of the notification.

since: 1.0

Signals

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 ValentNotificationClass {
  GObjectClass parent_class;
  
}
No description available.
Class members
parent_class: GObjectClass
No description available.