.. _org.freedesktop.impl.portal.Notification:

========================================
 Notification
========================================

-----------
Description
-----------

.. _org.freedesktop.impl.portal.Notification Description:

Notification portal backend interface

This notification interface lets sandboxed applications
send and withdraw notifications.



.. _org.freedesktop.impl.portal.Notification Methods:

-------
Methods
-------

.. _org.freedesktop.impl.portal.Notification.AddNotification:

org.freedesktop.impl.portal.Notification.AddNotification
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

::

    AddNotification (
      IN app_id s,
      IN id s,
      IN notification a{sv}
    )



Sends a notification.

The ID can be used to later withdraw the notification.
If the application reuses the same ID without withdrawing,
the notification is replaced by the new one.

The format of the ``notification`` is the same as for
:ref:`org.freedesktop.portal.Notification.AddNotification`.



app_id
  App id of the application

id
  Application-provided ID for this notification

notification
  Vardict with the serialized notification



.. _org.freedesktop.impl.portal.Notification.RemoveNotification:

org.freedesktop.impl.portal.Notification.RemoveNotification
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

::

    RemoveNotification (
      IN app_id s,
      IN id s
    )



Withdraws a notification.



app_id
  App id of the application

id
  Application-provided ID for this notification


.. _org.freedesktop.impl.portal.Notification Signals:

-------
Signals
-------

.. _org.freedesktop.impl.portal.Notification::ActionInvoked:

org.freedesktop.impl.portal.Notification::ActionInvoked
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

::

    ActionInvoked (
      app_id s,
      id s,
      action s,
      parameter av
    )



Send to the application when a non-exported action is
activated.



app_id
  App id of the application

id
  the application-provided ID for the notification

action
  the name of the action

parameter
  array which will contain the target parameter for the action, if one was specified


