selectSources

suspend fun selectSources(sessionHandle: DBusPath, types: Set<SourceType>? = null, multiple: Boolean? = null, cursorMode: CursorMode? = null, restoreToken: String? = null, persistMode: PersistMode? = null): Result<Unit>(source)

Select sources to capture for the given session. This must be called before starting the session, and an application may only attempt to select sources once per session.

Passing invalid input will cause the session to be closed.

Return

Result indicating success or failure.

Parameters

sessionHandle

Object path for the session created via createSession.

types

Set of source types to allow the user to select. Default is MONITOR.

multiple

Whether to allow selecting multiple sources.

cursorMode

How the cursor should appear in the stream.

restoreToken

Optional token to restore a previous session (version 4+).

persistMode

How this session should persist (version 4+).