Builder

Opener for creating a TorServiceConfig.Foreground which will run all instances of TorRuntime that have been created via newEnvironment inside of TorService, operating as a Foreground Service.

NOTE: An android.app.NotificationChannel for API 26+ is set up using the provided TorServiceUI.Factory.info (emulators & devices only).

See KmpTorServiceUI(https://kmp-tor.matthewnelson.io/library/runtime-service-ui/io.matthewnelson.kmp.tor.runtime.service.ui/-kmp-tor-service-u-i/index.html * @throws ClassCastException If an instance of TorServiceConfig has * already been instantiated and is unable to be returned because it is * not an instance of Foreground. * @throws IllegalArgumentException If factory fails validation * checks (emulators & devices only).

See also

Throws

IllegalStateException

If factory fails validation checks (emulators & devices only).

If factory fails validation checks (emulators & devices only).