Class

ValentNotification

unstable 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.

unstable 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.

unstable 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.

unstable 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.

unstable since: 1.0

Instance methods

valent_notification_add_button

Add a notification button.

unstable since: 1.0

valent_notification_add_button_with_target

Add a notification button.

unstable since: 1.0

valent_notification_equal

Compare two notifications for equality by ID.

unstable since: 1.0

valent_notification_get_application

Get the notifying application.

unstable since: 1.0

valent_notification_get_body

Get the notification body.

unstable since: 1.0

valent_notification_get_icon

Get the notification icon.

unstable since: 1.0

valent_notification_get_id

Get the notification ID.

unstable since: 1.0

valent_notification_get_priority

Get the notification priority.

unstable since: 1.0

valent_notification_get_time

Get the notification time.

unstable since: 1.0

valent_notification_get_title

Get the notification title.

unstable since: 1.0

valent_notification_hash

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

unstable since: 1.0

valent_notification_serialize

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

unstable since: 1.0

valent_notification_set_action

Sets the default notification action.

unstable since: 1.0

valent_notification_set_action_and_target

Set the default notification action.

unstable since: 1.0

valent_notification_set_application

Set the notifying application.

unstable since: 1.0

valent_notification_set_body

Set the notification body.

unstable since: 1.0

valent_notification_set_icon

Set the notification icon.

unstable since: 1.0

valent_notification_set_id

Set the notification ID.

unstable since: 1.0

valent_notification_set_priority

Set the notification priority.

unstable since: 1.0

valent_notification_set_time

Set the notification time.

unstable since: 1.0

valent_notification_set_title

Set the notification title.

unstable 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.

unstable since: 1.0

Valent.Notification:application

The notifying application.

unstable since: 1.0

Valent.Notification:body

The notification body.

unstable since: 1.0

Valent.Notification:icon

The notification GIcon.

unstable since: 1.0

Valent.Notification:id

The unique ID of the notification.

unstable since: 1.0

Valent.Notification:priority

The notification priority.

unstable since: 1.0

Valent.Notification:time

The posting time of the notification in milliseconds.

unstable since: 1.0

Valent.Notification:title

The title of the notification.

unstable 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.