Factory
class Factory : TorServiceUI.Factory<KmpTorServiceUI.Config, KmpTorServiceUIInstanceState<KmpTorServiceUI.Config>, KmpTorServiceUI> (source)
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...
}
Content copied to clipboard
See also
Constructors
Link copied to clipboard
Create a new Factory with the default options.
constructor(iconReady: Int, iconNotReady: Int, info: TorServiceUI.NotificationInfo, block: ThisBlock<KmpTorServiceUI.Factory.BuilderScope>)
Types
Link copied to clipboard
class BuilderScope