随笔 - 2649  文章 - 2452  评论 - 0  阅读 - 80424

文章分类 -  MeiOS / Device设备

上一页 1 2
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) 推荐(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) 推荐(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) 推荐(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) 推荐(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) 推荐(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) 推荐(0) 编辑

上一页 1 2
< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

点击右上角即可分享
微信分享提示