|
|
### 接口列表
|
|
|
#### Android.shareBrowser("http://www.baidu.com")
|
|
|
#### NativeOs.shareBrowser("http://www.baidu.com")
|
|
|
用浏览器打开链接
|
|
|
#### Android.addBackEventCallback("backCallback")
|
|
|
#### NativeOs.addBackEventCallback("backCallback")
|
|
|
接管返回事件
|
|
|
#### Android.exitApp()
|
|
|
#### NativeOs.exitApp()
|
|
|
退出app
|
|
|
#### Android.showExitConfirm() @deprecalared
|
|
|
#### NativeOs.showExitConfirm() @deprecalared
|
|
|
显示退出确认框,不在使用
|
|
|
#### Android.showToast("你的密码不正确")
|
|
|
#### NativeOs.showToast("你的密码不正确")
|
|
|
显示toast提示
|
|
|
#### Android.showLoading("加载中...")
|
|
|
#### NativeOs.showLoading("加载中...")
|
|
|
显示loading效果
|
|
|
#### Android.hideLoading()
|
|
|
#### NativeOs.hideLoading()
|
|
|
关闭loading效果
|
|
|
|
|
|
#### Android.shareConfirm('http://baidu.com','百度','垃圾',"http://xxx.com/logo.jpg")
|
|
|
#### NativeOs.shareConfirm('http://baidu.com','百度','垃圾',"http://xxx.com/logo.jpg")
|
|
|
弹出分享,该方法只有com.shuidi.guard有效,无法测试
|
|
|
|
|
|
|
|
|
#### Android.shareWeixinFriends('http://baidu.com','百度','垃圾',"http://xxx.com/logo.jpg");
|
|
|
#### NativeOs.shareWeixinFriends('http://baidu.com','百度','垃圾',"http://xxx.com/logo.jpg");
|
|
|
分享给好友
|
|
|
|
|
|
#### Android.shareWeixinTimeline('http://baidu.com','百度','垃圾',"http://xxx.com/logo.jpg");
|
|
|
#### NativeOs.shareWeixinTimeline('http://baidu.com','百度','垃圾',"http://xxx.com/logo.jpg");
|
|
|
分享到朋友圈
|
|
|
|
|
|
#### Android.tel("18221114203")
|
|
|
#### NativeOs.tel("18221114203")
|
|
|
拨打电话
|
|
|
|
|
|
#### Android.getPackageName()
|
|
|
#### NativeOs.getPackageName()
|
|
|
获取包名
|
|
|
|
|
|
#### Http
|
... | ... | |