Class
XdpSession
Description [src]
final class Xdp.Session : GObject.Object
{
/* No available fields */
}
A representation of long-lived screencast portal interactions.
The XdpSession object is used to represent portal interactions with the screencast or remote desktop portals that extend over multiple portal calls.
To find out what kind of session an XdpSession object represents and whether
it is still active, you can use xdp_session_get_session_type()
and
xdp_session_get_session_state()
.
All sessions start in an initial state. They can be made active by calling
xdp_session_start()
, and ended by calling xdp_session_close()
.
Instance methods
xdp_session_connect_to_eis
Connect this XdpRemoteDesktopSession to an EIS implementation and return the fd. This fd can be passed into ei_setup_backend_fd(). See the libei documentation for details.
xdp_session_get_session_state
Obtains information about the state of the session that is represented
by session
.
xdp_session_get_session_type
Obtains information about the type of session that is represented
by session
.
xdp_session_open_pipewire_remote
Opens a file descriptor to the pipewire remote where the screencast streams are available.
xdp_session_pointer_axis
The axis movement from a smooth scroll device, such as a touchpad. When applicable, the size of the motion delta should be equivalent to the motion vector of a pointer motion done using the same advice.
xdp_session_pointer_position
Moves the pointer to a new position in the given streams logical coordinate space.
Signals
Signals inherited from GObject (1)
GObject::notify
The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.