Skip to content

topl-core-base / io.matthewnelson.topl_core_base / TorConfigFiles / createConfig

createConfig

@JvmOverloads @JvmStatic fun createConfig(context:Context, configDir:File, dataDir:File? = null):TorConfigFiles (source)

Convenience method for if you’re including in your App’s jniLibs directory the libTor.so binary, or utilizing those maintained by this project.

Parameters

context - Context

configDir - context.getDir(“dir_name_here”, Context.MODE_PRIVATE)

dataDir - if you wish it in a different location than lib/tor@JvmStatic fun createConfig(context:Context):TorConfigFiles (source)

Convenience method for setting up all of your files and directories in their default locations.

Parameters

context - Context