:right-sidebar: True Notification =================================================================== .. currentmodule:: gi.repository.WebKit .. versionadded:: 2.8 .. class:: Notification(**properties: ~typing.Any) :no-contents-entry: Superclasses: :class:`~gi.repository.GObject.Object` Holds information about a notification that should be shown to the user. Methods ------- .. rst-class:: interim-class .. class:: Notification :no-index: .. method:: clicked() -> None Tells WebKit the notification has been clicked. This will emit the :obj:`~gi.repository.WebKit.Notification`\::clicked signal. .. versionadded:: 2.12 .. method:: close() -> None Closes the notification. .. versionadded:: 2.8 .. method:: get_body() -> str Obtains the body for the notification. .. versionadded:: 2.8 .. method:: get_id() -> int Obtains the unique id for the notification. .. versionadded:: 2.8 .. method:: get_tag() -> str | None Obtains the tag identifier for the notification. .. versionadded:: 2.16 .. method:: get_title() -> str Obtains the title for the notification. .. versionadded:: 2.8 Properties ---------- .. rst-class:: interim-class .. class:: Notification :no-index: .. attribute:: props.body :type: str The type of the None singleton. .. versionadded:: 2.8 .. attribute:: props.id :type: int The type of the None singleton. .. versionadded:: 2.8 .. attribute:: props.tag :type: str The type of the None singleton. .. versionadded:: 2.16 .. attribute:: props.title :type: str The type of the None singleton. .. versionadded:: 2.8 Signals ------- .. rst-class:: interim-class .. class:: Notification.signals :no-index: .. method:: clicked() -> None Emitted when a notification has been clicked. See :func:`~gi.repository.WebKit.Notification.clicked`. .. versionadded:: 2.12 .. method:: closed() -> None The type of the None singleton. .. versionadded:: 2.8