- 授权协议: BSD
- 开发语言: Java
- 操作系统: Android
- 软件首页: https://github.com/Flipboard/GoldenGate
- 软件文档: https://github.com/Flipboard/GoldenGate
软件介绍
GoldenGate 是一个 Android 注解处理器,用于生成类型安全的 JavaScript 绑定。
示例代码:
JavaScriptBridge.setJsonSerializer(new JsonSerializer(){
@Override
<T> String toJson(T stuff) {
// do stuff
}
@Override
<T> T fromJson(String json, Class<T> type) {
// do stuff
}
});
@Bridge
interface MyJavascript {
void calculateSomeValue(Callback<Integer> value);
}
Webview webview = ...;
MyJavascript bridge = new MyJavascriptBridge(webview);
bridge.calculateSomeValue(new Callback<Integer>() {
@Override
void onResult(Integer result) {
// do something with result
}
});
Computers and Intractability
M R Garey、D S Johnson / W. H. Freeman / 1979-4-26 / GBP 53.99
This book's introduction features a humorous story of a man with a line of people behind him, who explains to his boss, "I can't find an efficient algorithm, but neither can all these famous people." ......一起来看看 《Computers and Intractability》 这本书的介绍吧!
