Skip to content

Commit

Permalink
Update README_CN.md
Browse files Browse the repository at this point in the history
  • Loading branch information
TangXiaoLv committed Apr 13, 2017
1 parent 98d5a5a commit 85a989d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -204,9 +204,9 @@ public class RemoteModule implements IRouter {
AndroidRouter.open("android://main/activity/localActivity")
.callOnSubThread()//调用在子线程
.returnOnMainThread()//回调在主线程
.call(new Resolve() {
   .call(new Resolve<String>() {
@Override
public void call(String type, Object result) {
public void call(String result) {
//获取返回值
}
}, new Reject() {
Expand All @@ -223,7 +223,7 @@ AndroidRouter.open("android://main/activity/localActivity")

//方式三
//阻塞式拿返回值
Object value = AndroidRouter.open("android://main/getValue").getValue();
boolean value = AndroidRouter.open("android://main/getValue").getValue();

//方式四:响应式处理
AndroidRouter.open("android://main/reactive")
Expand Down

0 comments on commit 85a989d

Please sign in to comment.