WebView开放功能

--> 测试地址

识别BitKeep WebView

navigator.userAgent
//里面已包含BitKeep相关版本号信息
window.isBitKeep

获取钱包身份

BitKeepInvoke.getIdentity(callback);

获取钱包地址

BitKeepInvoke.getAddress(callback);

选择币种

BitKeepInvoke.selectCoin(callback);

Toast

BitKeepInvoke.toast("Hello World");

Alert

BitKeepInvoke.alert("Hello", callback);

Confirm

BitKeepInvoke.confirm("Hello?", callback);

关闭页面

BitKeepInvoke.close();

显示/隐藏Loading

BitKeepInvoke.showLoading();
BitKeepInvoke.hideLoading();

打开网页

//APP内打开
BitKeepInvoke.openUrl("https://www.google.com");
//外部浏览器打开
BitKeepInvoke.openUrl2("https://www.google.com");

右上角显示文字按钮

BitKeepInvoke.setTextAction("Text", function(){
//点击回调
});

右上角显示图片按钮

BitKeepInvoke.setIconAction("http://xxx.png", function(){
//点击回调
});

分享文本

BitKeepInvoke.shareText("message", callback);

分享图片

BitKeepInvoke.shareImage("http://xxx.png", callback);

分享截图

BitKeepInvoke.shareScreenshot(callback)

分享网页

BitKeepInvoke.shareUrl("title", "description", "url", "icon", callback);