| 1 |
Sessions |
| 2 |
======== |
| 3 |
|
| 4 |
Some portal requests are connected to each other and need to be used in |
| 5 |
sequence. The pattern used in such cases is a :ref:`Session <org.freedesktop.portal.Session>` |
| 6 |
object. Just like :ref:`Request <org.freedesktop.portal.Request>`\s, sessions are |
| 7 |
represented by an object path, that is returned by the initial ``CreateSession`` |
| 8 |
call of the respective portal. Subsequent calls take the object path of the |
| 9 |
session they operate on as an argument. |
| 10 |
|
| 11 |
Sessions can be ended from the application side by calling the ``Close()`` method |
| 12 |
on the session. They can also be closed from the service side, in which case the |
| 13 |
``::Closed`` signal is emitted on the Session object to inform the application. |