WebKit.Notification

g GObject.Object GObject.Object WebKit.Notification WebKit.Notification GObject.Object->WebKit.Notification

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

clicked ()

close ()

get_body ()

get_id ()

get_tag ()

get_title ()

Virtual Methods

Inherited:

GObject.Object (7)

Properties

Name

Type

Flags

Short Description

body

str

r

id

int

r

tag

str

r

title

str

r

Signals

Inherited:

GObject.Object (1)

Name

Short Description

clicked

Emitted when a notification has been clicked.

closed

Emitted when a notification has been withdrawn.

Fields

Inherited:

GObject.Object (1)

Class Details

class WebKit.Notification(**kwargs)
Bases:

GObject.Object

Abstract:

No

Structure:

WebKit.NotificationClass

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

New in version 2.8.

clicked()

Tells WebKit the notification has been clicked.

This will emit the WebKit.Notification ::clicked signal.

New in version 2.12.

close()

Closes the notification.

New in version 2.8.

get_body()
Returns:

the body for the notification

Return type:

str

Obtains the body for the notification.

New in version 2.8.

get_id()
Returns:

the unique id for the notification

Return type:

int

Obtains the unique id for the notification.

New in version 2.8.

get_tag()
Returns:

the tag for the notification

Return type:

str or None

Obtains the tag identifier for the notification.

New in version 2.16.

get_title()
Returns:

the title for the notification

Return type:

str

Obtains the title for the notification.

New in version 2.8.

Signal Details

WebKit.Notification.signals.clicked(notification)
Signal Name:

clicked

Flags:

RUN_LAST

Parameters:

notification (WebKit.Notification) – The object which received the signal

Emitted when a notification has been clicked. See WebKit.Notification.clicked().

New in version 2.12.

WebKit.Notification.signals.closed(notification)
Signal Name:

closed

Flags:

RUN_LAST

Parameters:

notification (WebKit.Notification) – The object which received the signal

Emitted when a notification has been withdrawn.

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

New in version 2.8.

Property Details

WebKit.Notification.props.body
Name:

body

Type:

str

Default Value:

None

Flags:

READABLE

The body for the notification.

New in version 2.8.

WebKit.Notification.props.id
Name:

id

Type:

int

Default Value:

0

Flags:

READABLE

The unique id for the notification.

New in version 2.8.

WebKit.Notification.props.tag
Name:

tag

Type:

str

Default Value:

None

Flags:

READABLE

The tag identifier for the notification.

New in version 2.16.

WebKit.Notification.props.title
Name:

title

Type:

str

Default Value:

None

Flags:

READABLE

The title for the notification.

New in version 2.8.