Method

XdpPortalcreate_screencast_session

Declaration [src]

void
xdp_portal_create_screencast_session (
  XdpPortal* portal,
  XdpOutputType outputs,
  XdpScreencastFlags flags,
  XdpCursorMode cursor_mode,
  XdpPersistMode persist_mode,
  const char* restore_token,
  GCancellable* cancellable,
  GAsyncReadyCallback callback,
  gpointer data
)

Description [src]

Creates a session for a screencast.

When the request is done, callback will be called. You can then call xdp_portal_create_screencast_session_finish() to get the results.

Parameters

outputs XdpOutputType
 

Which kinds of source to offer in the dialog.

flags XdpScreencastFlags
 

Options for this call.

cursor_mode XdpCursorMode
 

The cursor mode of the session.

persist_mode XdpPersistMode
 

The persist mode of the session.

restore_token const char*
 

The token of a previous screencast session to restore.

 The argument can be NULL.
 The data is owned by the caller of the function.
 The value is a NUL terminated UTF-8 string.
cancellable GCancellable
 

Optional GCancellable

 The argument can be NULL.
 The data is owned by the caller of the function.
callback GAsyncReadyCallback
 

A callback to call when the request is done.

 The argument can be NULL.
data gpointer
 

Data to pass to callback.

 The argument can be NULL.
 The data is owned by the caller of the function.