startCompass 罗盘监听
摘要:startCompass ^6.8 罗盘监听 #请求参数 N/A #接口调用示例 this.$bridge .startCompass() .then(res => { this.$alert(res) }) .catch(err => { this.$toast(err) }) #返回参数 成功时
阅读全文
posted @
2024-12-16 09:42
AtlasLapetos
阅读(4)
推荐(0) 编辑
setScreenBrightness 设置屏幕亮度
摘要:setScreenBrightness ^6.8 设置屏幕亮度 #请求参数 Prop Type Value value Number [0-1] #参数代码示例 let params = { value: 0.5 } #接口调用示例 let params = { value: 0.5 } this.
阅读全文
posted @
2024-12-16 09:42
AtlasLapetos
阅读(5)
推荐(0) 编辑
getScreenBrightness 获取屏幕亮度
摘要:getScreenBrightness ^6.8 获取屏幕亮度 #请求参数 N/A #接口调用示例 this.$bridge .getScreenBrightness() .then(res => { this.$alert(res) }) .catch(err => { // 错误处理 this.
阅读全文
posted @
2024-12-12 09:20
AtlasLapetos
阅读(7)
推荐(0) 编辑
setKeepScreenOn 屏幕常亮
摘要:setKeepScreenOn ^6.8 屏幕常亮 #请求参数 Prop Type Value keepScreenOn Boolean `[ true #参数代码示例 let params = { keepScreenOn: true } #接口调用示例 let flag = true this.
阅读全文
posted @
2024-12-12 09:20
AtlasLapetos
阅读(8)
推荐(0) 编辑
checkAndRequestPermission
摘要:checkAndRequestPermission ^7.8 检查并请求相册权限、通知权限、定位权限、蓝牙权限 #请求参数 Prop Type Default Comment type String N/A 权限类型:相机:CAMERA 通知:NOTIFICATION 定位:LOCATION 蓝牙:
阅读全文
posted @
2024-12-12 09:20
AtlasLapetos
阅读(6)
推荐(0) 编辑
getBatteryInfo 获取电量
摘要:getBatteryInfo ^6.8 获取手机电量 #请求参数 N/A #接口调用示例 this.$bridge .getBatteryInfo() .then(res => { this.$alert(res) }) .catch(err => { // 错误处理 this.$toast(err
阅读全文
posted @
2024-12-12 09:20
AtlasLapetos
阅读(22)
推荐(0) 编辑