Config

abstract class Config @ExperimentalKmpTorApi constructor(fields: Map<String, Any?>)(source)

Core commonMain abstraction for holding UI customization input from consumers of kmp-tor-service.

NOTE: This is currently an ExperimentalKmpTorApi when extending to create your own implementation. Things may change (as the annotation states), so use at your own risk! Prefer using the stable implementation via the kmp-tor:runtime-service-ui dependency.

Parameters

fields

A map of the field name value pairs. (e.g. mapOf("iconOff" to R.drawable.my_icon_off))

See also

io.matthewnelson.kmp.tor.runtime.service.ui.KmpTorServiceUI.Config

Throws

IllegalArgumentException

if fields is empty

Constructors

Link copied to clipboard
@ExperimentalKmpTorApi
constructor(fields: Map<String, Any?>)