JS接口集合
时间:2022-04-08 11:01:59查看量:6073
JS-SDK文件 下载

支付

JS功能帮助App版本
BSL.Pay微信支付http://bslyun.com/document/detail_109高级/原生
BSL.WXPay微信快捷支付http://bslyun.com/document/detail_110高级/原生
BSL.Pay支付宝支付http://bslyun.com/document/detail_112高级/原生
BSL.IAP苹果支付http://bslyun.com/document/detail_113高级/原生
BSL.SetUPPay银联支付http://bslyun.com/document/detail_114高级/原生
微信h5支付http://bslyun.com/document/detail_235安卓任意版本都支持,苹果兼容配置初/中/高/原生

登录

JS功能帮助App版本
BSL.Login微信登录http://bslyun.com/document/detail_115高级/原生
BSL.LoginQQ登录http://bslyun.com/document/detail_116高级/原生
BSL.Login微博登录http://bslyun.com/document/detail_117高级/原生
BSL.JsSignInWithApple苹果登录http://bslyun.com/document/detail_118高级/原生
BSL.AlibcLogin淘宝登录http://bslyun.com/document/detail_119高级/原生
BSL.AlibcLogout淘宝登出http://bslyun.com/document/detail_119高级/原生

分享

JS功能帮助App版本
BSL.Share多平台选择窗口http://bslyun.com/document/detail_122高级/原生
BSL.ShareImgWithTxt单平台分享http://bslyun.com/document/detail_123高级/原生
BSL.ShareImg图片多平台选择窗口http://bslyun.com/document/detail_124高级/原生
BSL.ShareImgByPlatfrom图片单平台登录http://bslyun.com/document/detail_125高级/原生
BSL.ShareCImg截图多平台选择窗口http://bslyun.com/document/detail_126高级/原生
BSL.ShareCImgByPlatform截图单平台登录http://bslyun.com/document/detail_127高级/原生
BSL.ShareMultiImage多图分享到微信以失效
BSL.ShareMultiImageToSome多图分享给微信好友http://bslyun.com/document/detail_129高级/原生
BSL.ShareVideo视频分享http://bslyun.com/document/detail_130高级/原生
BSL.ShareMusic音频分享http://bslyun.com/document/detail_131高级/原生
BSL.SystemShareTxt系统原生分享http://bslyun.com/document/detail_133高级/原生,无需申请对应平台权限
BSL.ShareApplet分享小程序http://bslyun.com/document/detail_134高级/原生
getExternalInfoshareinstall分享传递值http://bslyun.com/document/detail_212高级/原生
BSL.GenerateShortUrl分享深度链接http://bslyun.com/document/detail_213高级/原生

穿山甲广告

JS功能帮助App版本
BSL.OpenInterstitial插屏广告http://bslyun.com/document/detail_218初/中/高/原生
BSL.LoadFullScreenVideoAd初始化视频广告http://bslyun.com/document/detail_218初/中/高/原生
BSL.ShowFullVoideoAd展示视频广告http://bslyun.com/document/detail_218初/中/高/原生
BSL.LoadRewardVideoAd初始化激励广告http://bslyun.com/document/detail_218初/中/高/原生
BSL.ShowRewardVideoAd展示激励广告http://bslyun.com/document/detail_218初/中/高/原生

优量汇广告

JS功能帮助App版本
BSL.TXLoadInsertScreenAD加载插屏广告http://bslyun.com/document/detail_214初/中/高/原生
BSL.TXShowInsertScreenAD显示插屏广告http://bslyun.com/document/detail_214初/中/高/原生
BSL.TXLoadRewardVideoAD加载激励视频广告http://bslyun.com/document/detail_214初/中/高/原生
BSL.TXShowRewardVideoAD显示激励视频广告http://bslyun.com/document/detail_214初/中/高/原生

海星广告

JS功能帮助App版本
BSL.LoadInsertAD插屏广告http://bslyun.com/document/detail_217初/中/高/原生
BSL.LoadRewardVideo激励广告http://bslyun.com/document/detail_217初/中/高/原生

App基础控制

JS功能帮助App版本
BSL.CCache清网页缓存http://bslyun.com/document/detail_156初/中/高/原生
BSL.CleanData清所有缓存http://bslyun.com/document/detail_156初/中/高/原生
BSL.cacheSize缓存大小http://bslyun.com/document/detail_156初/中/高/原生
BSL.CopyText复制内容http://bslyun.com/document/detail_157全版本
BSL.CopyUrl复制当前网址http://bslyun.com/document/detail_157全版本
BSL.getClipboard查看剪切板http://bslyun.com/document/detail_157全版本
BSL.PhoneID安卓IMEI,苹果UIDhttp://bslyun.com/document/detail_160中/高/原生
BSL.GetOAID安卓OAIDhttp://bslyun.com/document/detail_160中/高/原生
BSL.SetJsClose关闭Apphttp://bslyun.com/document/detail_206全版本
BSL.GetVersionApp版本http://bslyun.com/document/detail_205全版本
BSL.SetJsPermissionApp权限请求http://bslyun.com/document/detail_211全版本
BSL.StartAccelerate开启加速计http://bslyun.com/document/detail_229高/原生
BSL.StopAccelerate关闭加速计http://bslyun.com/document/detail_229高/原生
BSL.StartGyro开启陀螺仪http://bslyun.com/document/detail_229高/原生
BSL.StopGyro关闭陀螺仪http://bslyun.com/document/detail_229高/原生
BSL.RemoveExpiredCookies删除过期cookiehttp://bslyun.com/document/detail_215全版本
BSL.RemoveAllCookies删除全部cookiehttp://bslyun.com/document/detail_215全版本
BSL.CopyText复制内容http://bslyun.com/document/detail_157全版本
BSL.CopyUrl复制当前网址http://bslyun.com/document/detail_157全版本
BSL.getClipboard查看剪切板内容http://bslyun.com/document/detail_157全版本
getPicInfo查看剪切板内容http://ww.bslyun.com/document/detail_297全版本

App调用

JS功能帮助App版本
BSL.CheckFirstInstall首次打开Apphttp://bslyun.com/document/detail_207初/中/高/原生
BSL.OpenXCX调起小程序http://bslyun.com/document/detail_208高/原生
BSL.checkWX检测微信http://bslyun.com/document/detail_165初/中/高/原生
BSL.checkZFB检测支付宝http://bslyun.com/document/detail_165初/中/高/原生
BSL.checkApp检查任意Apphttp://bslyun.com/document/detail_165初/中/高/原生
BSL.OpenWebApp调用默认浏览器http://bslyun.com/document/detail_163初/中/高/原生
BSL.OpenBrowser调用指定浏览器http://bslyun.com/document/detail_163初/中/高/原生
URL Scheme方式调用Apphttp://bslyun.com/document/detail_163全版本
BSL.ControlOpenApp禁止调用Apphttp://bslyun.com/document/detail_164初/中/高/原生

安卓物理按键

JS功能帮助App版本
onBack物理按键(返回)http://bslyun.com/document/detail_204全版本
onHom物理按键(Home)http://bslyun.com/document/detail_204全版本
onTask物理按键(多任务)http://bslyun.com/document/detail_204全版本

GPS

JS功能帮助App版本
BSL.checkMap测试导航Apphttp://bslyun.com/document/detail_155初/中/高/原生
BSL.openMap打开导航Apphttp://bslyun.com/document/detail_155初/中/高/原生
BSL.navMap打开导航App并导航http://bslyun.com/document/detail_155初/中/高/原生
BSL.GPSGPS调用http://bslyun.com/document/detail_152初/中/高/原生
BSL.StartGPS开启GPS监听http://bslyun.com/document/detail_154初/中/高/原生
BSL.StopGPS关闭GPS监听http://bslyun.com/document/detail_154初/中/高/原生

音视频

JS功能帮助App版本
BSL.AudioPlayBG后台播放http://bslyun.com/document/detail_244全版本
BSL.OpenVideo视频播放器http://bslyun.com/document/detail_209全版本
BSL.setVolume设置铃声音量http://bslyun.com/document/detail_201全版本
BSL.getVolume获得铃声音量http://bslyun.com/document/detail_201全版本
BSL.msgRing提示音http://bslyun.com/document/detail_201全版本
BSL.setAVVolume设置视频音量http://bslyun.com/document/detail_201全版本
BSL.getAVVolum获得视频音量http://bslyun.com/document/detail_201全版本
BSL.Vibrator震动http://bslyun.com/document/detail_201全版本
BSL.ShowImages图片http://bslyun.com/document/detail_120全版本

屏幕

JS功能帮助App版本
BSL.ControlScreenshot禁止截屏http://bslyun.com/document/detail_162高/原生
BSL.OpenProjection投屏http://bslyun.com/document/detail_220全版本
BSL.AppScreen横竖屏http://bslyun.com/document/detail_161初/中/高/原生,建议用URL控制
BSL.SetBrightness调整屏幕亮度http://bslyun.com/document/detail_162高/原生
BSL.GetBrightness获得屏幕亮度http://bslyun.com/document/detail_162高/原生
BSL.KeepBright屏幕长亮http://bslyun.com/document/detail_162高/原生
BSL.Screenshot监听截屏http://bslyun.com/document/detail_162高/原生

直播

JS功能帮助App版本
BSL.ZbLogin登录http://bslyun.com/document/detail_230高/原生
BSL.ZbRegister注册http://bslyun.com/document/detail_230高/原生
BSL.ZbLogout登出http://bslyun.com/document/detail_230高/原生
BSL.ZbUpdataUser直播列表http://bslyun.com/document/detail_230高/原生
BSL.ZbAnchor开播http://bslyun.com/document/detail_230高/原生

扫一扫

JS功能帮助App版本
BSL.Qcode调用扫一扫http://bslyun.com/document/detail_148中/高/原生
BSL.QrPhoto上传图片识别http://bslyun.com/document/detail_149中/高/原生
BSL.QrUrl网络图片识别http://bslyun.com/document/detail_150中/高/原生
qrResult原生栏调用返回http://bslyun.com/document/detail_151中/高/原生

客服

JS功能帮助App版本
BSL.OpenMQChat美洽http://bslyun.com/document/detail_121高/原生

通信录

JS功能帮助App版本
BSL.GetContact读单联系人http://bslyun.com/document/detail_167中/高/原生
BSL.GetAllContact读全部联系人http://bslyun.com/document/detail_167中/高/原生
BSL.AddContact增加联系人http://bslyun.com/document/detail_167中/高/原生

苹果录音

JS功能帮助App版本
BSL.StartRecord开始录音http://bslyun.com/document/detail_216高级/原生
BSL.StopRecord结束录音http://bslyun.com/document/detail_216高级/原生

记步器

JS功能帮助App版本
BSL.OpenStep开启计步器http://bslyun.com/document/detail_203高级/原生
BSL.GetStepCount获取计步器http://bslyun.com/document/detail_203高级/原生

AI

JS功能帮助App版本
BSL.touchID验证指纹与面容http://bslyun.com/document/detail_158高级/原生
BSL.CheckBiometrics检测指纹与面容http://bslyun.com/document/detail_158高级/原生
BSL.JsAIRecognition文字识别http://bslyun.com/document/detail_231高级/原生
BSL.JsAISpeechRecog语音识别http://bslyun.com/document/detail_232高级/原生
BSL.FaceRegister人脸识别http://bslyun.com/document/detail_233高级/原生
BSL.SpeechSynthesis语音合成http://bslyun.com/document/detail_234高级/原生

推送

JS功能帮助App版本
BSL.JPushTag注册标签http://bslyun.com/document/detail_221中/高/原生
BSL.DeletePushTags删除标签http://bslyun.com/document/detail_221中/高/原生
BSL.GetToken华为token值http://bslyun.com/document/detail_221中/高/原生
BSL.IsOpenNotice通知栏权限http://bslyun.com/document/detail_221中/高/原生
BSL.GetRegistrationID极光RegistrationIDhttp://bslyun.com/document/detail_221中/高/原生
BSL.SetJPushAlias极光别名http://bslyun.com/document/detail_221中/高/原生

原生组

注:原生栏控制最好用URL控制,效果更好。

JS功能帮助App版本
BSL.AppTop导航栏显示/隐藏http://bslyun.com/document/detail_246全版本
BSL.AppTopL导航栏左侧按键http://bslyun.com/document/detail_246全版本
BSL.AppTopR导航栏右侧按键http://bslyun.com/document/detail_246全版本
BSL.navbarColor导航栏背景颜色http://bslyun.com/document/detail_246全版本
BSL.SetTitleName导航栏文字色http://bslyun.com/document/detail_246全版本
BSL.SlideHideNav导航栏滑动隐藏http://bslyun.com/document/detail_246全版本
BSL.AppBottom菜单栏显示/隐藏http://bslyun.com/document/detail_247初/中/高/原生
BSL.SetTabbarAlpha菜单栏透明度http://bslyun.com/document/detail_247初/中/高/原生
BSL.tabbarColor菜单栏背景颜色http://bslyun.com/document/detail_247初/中/高/原生
BSL.SlideHideTab菜单栏滑动隐藏http://bslyun.com/document/detail_247初/中/高/原生
BSL.ChangeTabbar菜单栏按键http://bslyun.com/document/detail_247初/中/高/原生
BSL.AppLeft原生侧边栏http://bslyun.com/document/detail_225初/中/高/原生
BSL.downRefresh下拉刷新http://bslyun.com/document/detail_249初/中/高/原生
BSL.hideStateBar电池栏显示/隐藏http://bslyun.com/document/detail_224全版本
BSL.GetStatusBarHeight电池栏高度http://bslyun.com/document/detail_224全版本
BSL.StatusBarTextColor电池栏字体颜色http://bslyun.com/document/detail_224全版本
BSL.SetNavigationBarColor安卓虚拟按键背景http://bslyun.com/document/detail_223全版本
BSL.SetNavigationBarButtonColor安卓虚拟按键颜色http://bslyun.com/document/detail_223全版本
BSL.OpenPrivacyStatement隐私声明窗口http://bslyun.com/document/detail_222全版本
BSL.OpenPrivacyStatement下载(文件/图片)http://bslyun.com/document/detail_202初/中/高/原生

咨询客服

关注我们

返回顶部

QQ客服
微信客服
咨询热线400-876-0081
二维码同时支持微信与QQ扫码,易活码提供技术支持
官方公众号
咨询热线400-876-0081
二维码同时支持微信与QQ扫码,易活码提供技术支持