WebKit2.Notification

g GObject.Object GObject.Object WebKit2.Notification WebKit2.Notification GObject.Object->WebKit2.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)

Name

Type

Access

Description

parent

GObject.Object

r

Class Details

class WebKit2.Notification(**kwargs)
Bases:

GObject.Object

Abstract:

No

Structure:

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

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

clicked

Flags:

RUN_LAST

Parameters:

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

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

New in version 2.12.

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

closed

Flags:

RUN_LAST

Parameters:

notification (WebKit2.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

WebKit2.Notification.props.body
Name:

body

Type:

str

Default Value:

None

Flags:

READABLE

The body for the notification.

New in version 2.8.

WebKit2.Notification.props.id
Name:

id

Type:

int

Default Value:

0

Flags:

READABLE

The unique id for the notification.

New in version 2.8.

WebKit2.Notification.props.tag
Name:

tag

Type:

str

Default Value:

None

Flags:

READABLE

The tag identifier for the notification.

New in version 2.16.

WebKit2.Notification.props.title
Name:

title

Type:

str

Default Value:

None

Flags:

READABLE

The title for the notification.

New in version 2.8.