The Router
Functions
add Action Interceptor
Link copied to clipboard
fun addActionInterceptor(action: String?, interceptor: ActionInterceptor?)
Content copied to clipboard
新增 Action 拦截器
add Autowired Parser
Link copied to clipboard
新增 @Autowired 注解解析器
init
Link copied to clipboard
is Router Action
Link copied to clipboard
判断 url 是否为 TheRouter 的 Action Path 会被记录到路由表内,Action不会被记录,Action更像是一个消息事件,参考Android的广播
is Router Path
Link copied to clipboard
判断 url 是否为 TheRouter 的路由 Path Path 会被记录到路由表内,Action不会被记录,Action更像是一个消息事件,参考Android的广播
remove Action Interceptor
Link copied to clipboard
fun removeActionInterceptor(action: String?, interceptor: ActionInterceptor?)
Content copied to clipboard
删除 Action 拦截器
remove All Interceptor For Key
Link copied to clipboard
fun removeAllInterceptorForKey(action: String?): MutableList<ActionInterceptor?>
Content copied to clipboard
移除所有action对应的拦截器,如果action有多个拦截器,则都会被移除
remove All Interceptor For Value
Link copied to clipboard
移除所有指定拦截器,如果有多个action共用同一个拦截器,则都会被移除