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

文章分类 -  MeiOS / Device设备

1 2 下一页
setPageOrientation 切换页面横竖屏方向
摘要:setPageOrientation ^8.6 切换页面横竖屏方向 #请求参数 object Prop Type Default Comment orientation Number N/A 0强制竖屏, 1动态横屏 #接口调用示例 const params = { "orientation": 0 阅读全文
posted @ 2024-12-16 09:43 AtlasLapetos 阅读(5) 评论(0) 推荐(0) 编辑
openNativeSystemSetting 打开指定的系统设置
摘要:openNativeSystemSetting ^7.10 打开指定的系统设置 #请求参数 Prop Type Required Default Description param String N notification, bluetooth, permission 参数可选 请求参数,ios无 阅读全文
posted @ 2024-12-16 09:43 AtlasLapetos 阅读(2) 评论(0) 推荐(0) 编辑
setBackHandle 设置是否监控手机返回功能(包括按键和手势)
摘要:setBackHandle ^7.10 设置是否监控手机返回功能(包括按键和手势) #请求参数 Prop Type Default Comment params String N/A on: 打开监控,off: 关闭监控 #接口调用示例 const params = "on" this.$bridg 阅读全文
posted @ 2024-12-16 09:43 AtlasLapetos 阅读(4) 评论(0) 推荐(0) 编辑
getElderMode 是否为老人模式
摘要:getElderMode ^8.6 是否为老人模式 #请求参数 N/A #接口调用示例getElderMode this.$bridge .getElderMode() .then(res => { this.$alert(res) }) .catch(err => { this.$toast(er 阅读全文
posted @ 2024-12-16 09:43 AtlasLapetos 阅读(1) 评论(0) 推荐(0) 编辑
upgradeApp 升级app
摘要:upgradeApp ^8.5 按升级策略进行升级,如跳转应用市场或者应用内下载,无升级策略返回异常信息。 #请求参数 N/A #接口调用示例 this.$bridge .upgradeApp() .then(res => { this.$alert(res) }) .catch(err => { 阅读全文
posted @ 2024-12-16 09:43 AtlasLapetos 阅读(3) 评论(0) 推荐(0) 编辑
getAppNewVersion 返回版本号
摘要:getAppNewVersion ^8.5 返回版本号,有升级策略返回策略版本,没有返回当前版本。 #请求参数 N/A #接口调用示例getAppNewVersion this.$bridge .getAppNewVersion() .then(res => { this.$alert(res) } 阅读全文
posted @ 2024-12-16 09:43 AtlasLapetos 阅读(3) 评论(0) 推荐(0) 编辑
getAppInfo 指明当前APP版本号和环境
摘要:getAppInfo ^7.10 指明当前APP的版本号和环境 #请求参数 N/A #接口调用示例 this.$bridge .getAppInfo() .then(res => { this.$alert(res) }) .catch(err => { this.$toast(err) }) #接 阅读全文
posted @ 2024-12-16 09:43 AtlasLapetos 阅读(2) 评论(0) 推荐(0) 编辑
vibrate 使手机发生震动
摘要:vibrate ^7.8 使手机发生震动 #请求参数 Prop Type Default Comment intensity String N/A 1、2、3表示震动强度,1是强度最小,3是强度比较大 #接口调用示例 const params = { "intensity": "1、2、3表示震动强 阅读全文
posted @ 2024-12-16 09:43 AtlasLapetos 阅读(4) 评论(0) 推荐(0) 编辑
getNetworkStatus
摘要:getNetworkStatus 接口描述: 获取当前设备网络信息 调用方式: this.$bridge .getNetworkStatus() .then(res => { this.$alert(res) }) .catch(err => { // 错误处理 this.$toast(err) } 阅读全文
posted @ 2024-12-16 09:43 AtlasLapetos 阅读(3) 评论(0) 推荐(0) 编辑
setIdleTimerDisabled 设置屏幕常亮
摘要:setIdleTimerDisabled ^5.7.0 插件调用setIdleTimerDisabled,原生APP定时60秒后重新开启系统自动屏灭的操作 (1) 假如插件要长时间保持屏亮,需要调用setIdleTimerDisabled后,隔60秒后再次调用来维持一直屏亮 (2) 插件调用setI 阅读全文
posted @ 2024-12-16 09:43 AtlasLapetos 阅读(1) 评论(0) 推荐(0) 编辑
hapticFeedback 触发手机震动
摘要:hapticFeedback 触发手机震动 #请求参数 Prop Type Required Default Description param Number N 属性: intensity:{ Type: Number, Default: 1/2/3, Description: 1、2、3表示震动 阅读全文
posted @ 2024-12-16 09:43 AtlasLapetos 阅读(5) 评论(0) 推荐(0) 编辑
stopDeviceMotionListening 停止设备方向监听
摘要:stopDeviceMotionListening ^6.8 停止设备方向监听 #请求参数 N/A #接口调用示例 this.$bridge .stopDeviceMotionListening() .then(res => { this.$alert(res) }) .catch(err => { 阅读全文
posted @ 2024-12-16 09:43 AtlasLapetos 阅读(1) 评论(0) 推荐(0) 编辑
startDeviceMotionListening 设备方向监听
摘要:startDeviceMotionListening ^6.8 设备方向监听 #请求参数 N/A #接口调用示例 this.$bridge .startDeviceMotionListening() .then(res => { this.$alert(res) }) .catch(err => { 阅读全文
posted @ 2024-12-16 09:43 AtlasLapetos 阅读(4) 评论(0) 推荐(0) 编辑
vibrateShort 使手机发生较短时间的振动
摘要:vibrateShort ^6.8 使手机发生较短时间的振动(15ms) #请求参数 N/A #接口调用示例 this.$bridge .vibrateShort() .then(res => { this.$alert(res) }) .catch(err => { this.$toast(err 阅读全文
posted @ 2024-12-16 09:43 AtlasLapetos 阅读(4) 评论(0) 推荐(0) 编辑
vibrateLong 使手机发生较长时间的振动
摘要:vibrateLong ^6.8 使手机发生较长时间的振动(400ms) #请求参数 N/A #接口调用示例 this.$bridge .vibrateLong() .then(res => { this.$alert(res) }) .catch(err => { this.$toast(err) 阅读全文
posted @ 2024-12-16 09:43 AtlasLapetos 阅读(2) 评论(0) 推荐(0) 编辑
stopAccelerometer 停止加速计监听
摘要:stopAccelerometer ^6.8 停止加速计监听 #请求参数 N/A #接口调用示例 this.$bridge .stopAccelerometer() .then(res => { this.$alert(res) }) .catch(err => { this.$toast(err) 阅读全文
posted @ 2024-12-16 09:43 AtlasLapetos 阅读(5) 评论(0) 推荐(0) 编辑
startAccelerometer 加速计监听
摘要:startAccelerometer ^6.8 加速计监听 #请求参数 N/A #接口调用示例 this.$bridge .startAccelerometer() .then(res => { this.$alert(res) }) .catch(err => { this.$toast(err) 阅读全文
posted @ 2024-12-16 09:43 AtlasLapetos 阅读(1) 评论(0) 推荐(0) 编辑
stopGyroscope 停止陀螺仪监听
摘要:stopGyroscope ^6.8 停止陀螺仪监听 #请求参数 N/A #接口调用示例 this.$bridge .stopGyroscope() .then(res => { this.$alert(res) }) .catch(err => { this.$toast(err) }) #返回参 阅读全文
posted @ 2024-12-16 09:43 AtlasLapetos 阅读(2) 评论(0) 推荐(0) 编辑
startGyroscope 陀螺仪监听
摘要:startGyroscope ^6.8 陀螺仪监听 #请求参数 N/A #接口调用示例 this.$bridge .startGyroscope() .then(res => { this.$alert(res) }) .catch(err => { this.$toast(err) }) #返回参 阅读全文
posted @ 2024-12-16 09:42 AtlasLapetos 阅读(4) 评论(0) 推荐(0) 编辑
stopCompass 停止罗盘监听
摘要:stopCompass ^6.8 停止罗盘监听 #请求参数 N/A #接口调用示例 this.$bridge .stopCompass() .then(res => { this.$alert(res) }) .catch(err => { this.$toast(err) }) #返回参数 成功时 阅读全文
posted @ 2024-12-16 09:42 AtlasLapetos 阅读(3) 评论(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

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