Factory

Factory class for TorServiceConfig.Foreground.Companion.Builder

e.g.

val factory = KmpTorServiceUI.Factory(
    iconReady = R.drawable.my_icon_ready,
    iconNotReady = R.drawable.my_icon_not_ready,
    info = TorServiceUI.NotificationInfo(
        // ...
    ),
    block = {
        // configure...

        defaultConfig {
            // configure ...
        }
    },
)

val serviceConfig = TorServiceConfig.Foreground.Builder(factory) {
    // configure...
}

See also

Constructors

Link copied to clipboard
constructor(iconReady: Int, iconNotReady: Int, info: TorServiceUI.NotificationInfo)

Create a new Factory with the default options.

constructor(iconReady: Int, iconNotReady: Int, info: TorServiceUI.NotificationInfo, block: ThisBlock<KmpTorServiceUI.Factory.BuilderScope>)

Create a new Factory and configure options via block.

Types

Link copied to clipboard

Properties

Link copied to clipboard
Link copied to clipboard
var debug: Boolean
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
protected open override fun createProtected(args: TorServiceUI.Args): KmpTorServiceUI
Link copied to clipboard
open override fun validate(context: Context)
Link copied to clipboard