Package com.therouter

Types

InnerTheRouterContentProvider
链接已复制到剪贴板
class InnerTheRouterContentProvider : ContentProvider
TheRouter
链接已复制到剪贴板
object TheRouter

Functions

execute
链接已复制到剪贴板
fun execute(command: Runnable)

Executes the given command at some time in the future. The command may execute in a new thread, in a pooled thread, or in the calling thread, at the discretion of the Executor implementation.

executeInMainThread
链接已复制到剪贴板
fun executeInMainThread(command: Runnable): Boolean
fixPath
链接已复制到剪贴板
fun fixPath(url: String): String

可选工具类,将路由path的相对路径转为绝对路径

getApplicationContext
链接已复制到剪贴板
fun getApplicationContext(): Context?
newThreadFactory
链接已复制到剪贴板
fun newThreadFactory(threadName: String): ThreadFactory
setContext
链接已复制到剪贴板
fun setContext(c: Context?): Unit?
setThreadPoolExecutor
链接已复制到剪贴板
fun setThreadPoolExecutor(e: ExecutorService?): Unit?
theRouterInited
链接已复制到剪贴板
fun theRouterInited(): Boolean

TheRouter 是否初始化完成

Properties

executor
链接已复制到剪贴板
var executor: ExecutorService
ROUTE_MAP_ASSETS_PATH
链接已复制到剪贴板
var ROUTE_MAP_ASSETS_PATH: String
theRouterUseAutoInit
链接已复制到剪贴板
var theRouterUseAutoInit: Boolean = true

是否由框架自动初始化,如为false,则需要手动调用 TheRouter.init(context) 此设置需要在Application.onCreate()之前修改

WEB_HOST
链接已复制到剪贴板
var WEB_HOST: String
WEB_SCHEME
链接已复制到剪贴板
var WEB_SCHEME: String