Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
yinzhengwei authored Jan 7, 2019
1 parent b5973c4 commit 2ed5692
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,11 @@ dependencies {

#使用方式

Step 1

在自定义的application中的onCreate()里初始化:HxRouter.init(this.applicationContext)
Step 1

在自定义的application中的onCreate()里初始化:

HxRouter.init(this.applicationContext)

Step 2

Expand Down Expand Up @@ -63,7 +64,7 @@ Step 2

HxRouter.build(classPath).start(object :HxInterceptor{
override fun process(interceptorResult: HxInterceptorResult) {
//todo 添加需要处理的逻辑,此处以'是否登陆'举例
//TODO 添加需要处理的逻辑,此处以'是否登陆'举例
if(isLogin){
//如果已经登陆,则在启动跳转
interceptorResult.finish()
Expand Down

0 comments on commit 2ed5692

Please sign in to comment.