Skip to content

topl-service / io.matthewnelson.topl_service / TorServiceController / Builder / build

build

fun build():Unit (source)

Initializes TorService setup and enables the ability to call methods from the Companion object w/o throwing exceptions.

See Builder for code samples.

Exceptions

IllegalArgumentException - If disableStopServiceOnTaskRemoved was elected and your selected BackgroundManager.Builder.Policy is not io.matthewnelson.topl_service_base.BaseServiceConsts.BackgroundPolicy.RUN_IN_FOREGROUND and/or BackgroundManager.Builder.killAppIfTaskIsRemoved is not true