AtomicServiceWeb后续将不再支持registerJavaScriptProxy、runJavaScript等接口,开发者可以通过JS SDK提供的接口获取相关数据。
图片
has.cameraPicker.pick()
拍照或录像。
has.photoViewPicker.select()
拍照或选择图片。
文件
has.filePreview.openPreview()
预览文件,只支持预览本地文件。
上传下载
has.request.uploadFile()
上传文件。
has.request.downloadFile()
下载文件
网络
has.connection.getNetworkType()
获取网络状态。
地理位置
has.location.getLocation()
获取当前地理位置。
参考链接
AtomicServiceEnhancedWeb组件API