WebView
--> Demo URL

Check BitKeep WebView

1
navigator.userAgent
2
//BitKeep keywords in UserAgent
3
window.isBitKeep
Copied!

Get Wallet Queue Identity

1
BitKeepInvoke.getIdentity(callback);
Copied!

Get Address

1
BitKeepInvoke.getAddress(callback);
Copied!

Select Coin

1
BitKeepInvoke.selectCoin(callback);
Copied!

Toast

1
BitKeepInvoke.toast("Hello World");
Copied!

Alert

1
BitKeepInvoke.alert("Hello", callback);
Copied!

Confirm

1
BitKeepInvoke.confirm("Hello?", callback);
Copied!

Close Page

1
BitKeepInvoke.close();
Copied!

Show/Hide Loading

1
BitKeepInvoke.showLoading();
2
BitKeepInvoke.hideLoading();
Copied!

Open URL

1
//In APP
2
BitKeepInvoke.openUrl("https://www.google.com");
3
//Our Of APP
4
BitKeepInvoke.openUrl2("https://www.google.com");
Copied!

Show Text Button in right-top Corner

1
BitKeepInvoke.setTextAction("Text", function(){
2
//Click Callback
3
});
Copied!

Show Image Button in right-top Corner

1
BitKeepInvoke.setIconAction("http://xxx.png", function(){
2
//Click Callback
3
});
Copied!

Share Text

1
BitKeepInvoke.shareText("message", callback);
Copied!

Share Image

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

Share Screenshot

1
BitKeepInvoke.shareScreenshot(callback)
Copied!

Share URL

1
BitKeepInvoke.shareUrl("title", "description", "url", "icon", callback);
Copied!
Last modified 4mo ago