select Sources
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
session Handle
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.
cursor Mode
How the cursor should appear in the stream.
restore Token
Optional token to restore a previous session (version 4+).
persist Mode
How this session should persist (version 4+).