createSession

suspend fun createSession(call: (Map<String, Variant<*>>) -> DBusPath): Result<CreateSessionResponse>(source)

Creates a new portal session using the standard CreateSession D-Bus method.

Return

Result containing CreateSessionResponse with the session handle.

Parameters

call

Lambda that calls CreateSession on the specific portal interface.