1.24 <WebKitNotification>

Class: <WebKitNotification>

It derives from <GObject>.

Holds information about a notification that should be shown to the user.

Properties

Property: notification:body self

The body for the notification.

Its value is a string, or #f.

It is read only.

Property: notification:id self

The unique id for the notification.

Its value is an unsigned 64-bit integer.

It is read only.

Property: notification:tag self

The tag identifier for the notification.

Its value is a string, or #f.

It is read only.

Property: notification:title self

The title for the notification.

Its value is a string, or #f.

It is read only.

Procedures

Method: notification:clicked self
Method: clicked self

Tells WebKit the notification has been clicked.

This will emit the notification:clicked signal.

self

Passed: a <WebKitNotification>.

a <WebKitNotification>

Method: notification:close self
Method: close self

Closes the notification.

self

Passed: a <WebKitNotification>.

a <WebKitNotification>

Method: notification:get-body self ⇒ %return
Method: get-body self ⇒ %return

Obtains the body for the notification.

self

Passed: a <WebKitNotification>.

a <WebKitNotification>

%return

Returned: a string.

the body for the notification

Method: notification:get-id self ⇒ %return
Method: get-id self ⇒ %return

Obtains the unique id for the notification.

self

Passed: a <WebKitNotification>.

a <WebKitNotification>

%return

Returned: an unsigned 64-bit integer.

the unique id for the notification

Method: notification:get-tag self ⇒ %return
Method: get-tag self ⇒ %return

Obtains the tag identifier for the notification.

self

Passed: a <WebKitNotification>.

a <WebKitNotification>

%return

Returned: a string, or #f.

the tag for the notification

Method: notification:get-title self ⇒ %return
Method: get-title self ⇒ %return

Obtains the title for the notification.

self

Passed: a <WebKitNotification>.

a <WebKitNotification>

%return

Returned: a string.

the title for the notification

Signals

Signal: notification:clicked

Connect a handler with (connect object notification:clicked handler). It is called as (handler self).

Emitted when a notification has been clicked. See notification:clicked.

self

Passed: a <WebKitNotification>.

Signal: notification:closed

Connect a handler with (connect object notification:closed handler). It is called as (handler self).

Emitted when a notification has been withdrawn.

The default handler will close the notification using libnotify, if built with support for it.

self

Passed: a <WebKitNotification>.