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

See also

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.

IllegalArgumentException

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

IllegalStateException

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

Resources.NotFoundException

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