register

fun register(appId: String, options: Map<String, Variant<*>> = emptyMap()): Result<Unit>(source)

Register the D-Bus peer and associate it with an application ID. The application ID must match the basename of a .desktop file.

Registration can only be done once and must happen before any portal method call. Sandboxed applications do not need to call this; registration happens automatically.

Parameters

appId

The application identifier (e.g. "com.example.MyApp").

options

Optional vardict with further information.