Session🔗

org.freedesktop.impl.portal.Session

Shared session interface

The Session interface is shared by all portal interfaces that involve long lived sessions. When a method that creates a session is called, the reply will include a session handle (i.e. object path) for a Session object, which will stay alive for the duration of the session.

The portal can abort the interaction by calling Close() on the Session object.

Properties🔗

version🔗

version readable u

Methods🔗

Close()🔗

Close ()

Close the session.

Signals🔗

Created🔗

Created ()

Emitted by the backend when the Session object has been exported and is ready to receive calls. Portal frontends use this signal to avoid a race condition where Close() is called before the backend has created the object.

Backends that do not emit this signal are supported through a polling fallback.

Closed🔗

Closed ()

The session was closed by the portal implementation.