Session
Object Hierarchy:
Xdp.Session
Xdp.Session
Xdp.Session
GLib.Object
GLib.Object
GLib.Object->Xdp.Session
Description:
[ CCode ( type_id = "xdp_session_get_type ()" ) ]public class Session : Object
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 [
[email protected] _session_type] and [[email protected] _session_state].
All sessions start in an initial state. They can be made active by calling [[email protected] ], and ended by calling [
[email protected] ].
Content:
Creation methods:
Methods:
public void close ()
Closes the session.
public DeviceType get_devices ()
Obtains the devices that the user selected.
public PersistMode get_persist_mode ()
Retrieves the effective persist mode of
this .
public string ? get_restore_token ()
Retrieves the restore token of this .
public SessionState get_session_state ()
Obtains information about the state of the session that is represented
by this .
public SessionType get_session_type ()
Obtains information about the type of session that is represented by
this .
public Variant get_streams ()
Obtains the streams that the user selected.
public void keyboard_key (bool keysym, int key, KeyState state)
Changes the state of the key to state
.
public int open_pipewire_remote ()
Opens a file descriptor to the pipewire remote where the screencast
streams are available.
public void pointer_axis (bool finish, double dx, double dy)
The axis movement from a smooth scroll device, such as a touchpad.
public void pointer_axis_discrete (DiscreteAxis axis, int steps)
The axis movement from a discrete scroll device.
public void pointer_button (int button, ButtonState state)
Changes the state of the button to state
.
public void pointer_motion (double dx, double dy)
Moves the pointer from its current position.
public void pointer_position (uint stream, double x, double y)
Moves the pointer to a new position in the given streams logical
coordinate space.
public async bool start (Parent ? parent, Cancellable ? cancellable) throws Error
Starts the session.
public void touch_down (uint stream, uint slot, double x, double y)
Notify about a new touch down event.
public void touch_position (uint stream, uint slot, double x, double y)
Notify about a new touch motion event.
public void touch_up (uint slot)
Notify about a new touch up event.
Signals:
Inherited Members:
All known members inherited from class GLib.Object
@get
@new
@ref
@set
add_toggle_ref
add_weak_pointer
bind_property
connect
constructed
disconnect
dispose
dup_data
dup_qdata
force_floating
freeze_notify
get_class
get_data
get_property
get_qdata
get_type
getv
interface_find_property
interface_install_property
interface_list_properties
is_floating
new_valist
new_with_properties
newv
notify
notify_property
ref_count
ref_sink
remove_toggle_ref
remove_weak_pointer
replace_data
replace_qdata
set_data
set_data_full
set_property
set_qdata
set_qdata_full
set_valist
setv
steal_data
steal_qdata
thaw_notify
unref
watch_closure
weak_ref
weak_unref