Skip to content

Commit

Permalink
update doc
Browse files Browse the repository at this point in the history
  • Loading branch information
duwen committed Feb 4, 2018
1 parent 071caa7 commit 13f6249
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion readme-chs.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ DSBridge v3.0 是一个里程碑版本,和v2.0相比,有许多变化,需
}
```

可以看到,DSBridge正式通过类的方式集中、统一地管理API。由于安全原因,所有Java API 必须有*"@JavascriptInterface"* 标注。
可以看到,DSBridge正式通过类的方式集中、统一地管理API。由于安全原因,所有Java API 必须有"@JavascriptInterface" 标注。

2. 添加API类实例到 DWebView .

Expand Down
4 changes: 2 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,13 @@ To use a dsBridge in your own project:

//for asynchronous invocation
@JavascriptInterface
public void testAsyn(Object msg, CompletionHandler handler) {
public void testAsyn(Object msg, CompletionHandler<String> handler) {
handler.complete(msg+" [ asyn call]");
}
}
```

For security reason, Java APIs must be with *"@JavascriptInterface"* annotation .
For security reason, Java APIs must be with "@JavascriptInterface" annotation .

2. Add API object to DWebView .

Expand Down

0 comments on commit 13f6249

Please sign in to comment.