文章分类 -  DolphinHybrid

上一页 1 ··· 6 7 8 9 10 11 12 13 下一页
getAppNewVersion 返回版本号
摘要:getAppNewVersion ^8.5 返回版本号,有升级策略返回策略版本,没有返回当前版本。 #请求参数 N/A #接口调用示例getAppNewVersion this.$bridge .getAppNewVersion() .then(res => { this.$alert(res) } 阅读全文
posted @ 2024-12-19 09:27 AtlasLapetos 阅读(8) 评论(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-19 09:27 AtlasLapetos 阅读(21) 评论(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-19 09:27 AtlasLapetos 阅读(12) 评论(0) 推荐(0)
getNetworkStatus
摘要:getNetworkStatus #接口描述 获取当前设备网络信息 #调用方式 this.$bridge .getNetworkStatus() .then(res => { this.$alert(res) }) .catch(err => { // 错误处理 this.$toast(err) } 阅读全文
posted @ 2024-12-19 09:27 AtlasLapetos 阅读(13) 评论(0) 推荐(0)
startDeviceMotionListening 设备方向监听
摘要:startDeviceMotionListening ^6.8 设备方向监听 #请求参数 N/A #接口调用示例 this.$bridge .startDeviceMotionListening() .then(res => { this.$alert(res) }) .catch(err => { 阅读全文
posted @ 2024-12-19 09:27 AtlasLapetos 阅读(28) 评论(0) 推荐(0)
vibrateShort 使手机发生较短时间的振动(15ms)
摘要:vibrateShort ^6.8 使手机发生较短时间的振动(15ms) #请求参数 N/A #接口调用示例 this.$bridge .vibrateShort() .then(res => { this.$alert(res) }) .catch(err => { this.$toast(err 阅读全文
posted @ 2024-12-19 09:27 AtlasLapetos 阅读(7) 评论(0) 推荐(0)
vibrateLong 使手机发生较长时间的振动(400ms)
摘要:vibrateLong ^6.8 使手机发生较长时间的振动(400ms) #请求参数 N/A #接口调用示例 this.$bridge .vibrateLong() .then(res => { this.$alert(res) }) .catch(err => { this.$toast(err) 阅读全文
posted @ 2024-12-19 09:27 AtlasLapetos 阅读(5) 评论(0) 推荐(0)
stopAccelerometer 停止加速计监听
摘要:stopAccelerometer ^6.8 停止加速计监听 #请求参数 N/A #接口调用示例 this.$bridge .stopAccelerometer() .then(res => { this.$alert(res) }) .catch(err => { this.$toast(err) 阅读全文
posted @ 2024-12-19 09:27 AtlasLapetos 阅读(4) 评论(0) 推荐(0)
startAccelerometer 加速计监听
摘要:startAccelerometer ^6.8 加速计监听 #请求参数 N/A #接口调用示例 this.$bridge .startAccelerometer() .then(res => { this.$alert(res) }) .catch(err => { this.$toast(err) 阅读全文
posted @ 2024-12-19 09:26 AtlasLapetos 阅读(5) 评论(0) 推荐(0)
stopGyroscope 停止陀螺仪监听
摘要:stopGyroscope ^6.8 停止陀螺仪监听 #请求参数 N/A #接口调用示例 this.$bridge .stopGyroscope() .then(res => { this.$alert(res) }) .catch(err => { this.$toast(err) }) #返回参 阅读全文
posted @ 2024-12-19 09:26 AtlasLapetos 阅读(14) 评论(0) 推荐(0)
startGyroscope 陀螺仪监听
摘要:startGyroscope ^6.8 陀螺仪监听 #请求参数 N/A #接口调用示例 this.$bridge .startGyroscope() .then(res => { this.$alert(res) }) .catch(err => { this.$toast(err) }) #返回参 阅读全文
posted @ 2024-12-19 09:26 AtlasLapetos 阅读(10) 评论(0) 推荐(0)
stopCompass 停止罗盘监听
摘要:stopCompass ^6.8 停止罗盘监听 #请求参数 N/A #接口调用示例 this.$bridge .stopCompass() .then(res => { this.$alert(res) }) .catch(err => { this.$toast(err) }) #返回参数 成功时 阅读全文
posted @ 2024-12-19 09:26 AtlasLapetos 阅读(8) 评论(0) 推荐(0)
startCompass 罗盘监听
摘要:startCompass ^6.8 罗盘监听 #请求参数 N/A #接口调用示例 this.$bridge .startCompass() .then(res => { this.$alert(res) }) .catch(err => { this.$toast(err) }) #返回参数 成功时 阅读全文
posted @ 2024-12-19 09:26 AtlasLapetos 阅读(13) 评论(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-19 09:26 AtlasLapetos 阅读(11) 评论(0) 推荐(0)
getScreenBrightness 获取屏幕亮度
摘要:getScreenBrightness ^6.8 获取屏幕亮度 #请求参数 N/A #接口调用示例 this.$bridge .getScreenBrightness() .then(res => { this.$alert(res) }) .catch(err => { // 错误处理 this. 阅读全文
posted @ 2024-12-19 09:26 AtlasLapetos 阅读(3) 评论(0) 推荐(0)
setKeepScreenOn 屏幕常亮
摘要:setKeepScreenOn ^6.8 屏幕常亮 #请求参数 Prop Type Value keepScreenOn Boolean `[ true #参数代码示例 let params = { keepScreenOn: true } #接口调用示例 let flag = true this. 阅读全文
posted @ 2024-12-19 09:26 AtlasLapetos 阅读(15) 评论(0) 推荐(0)
getBatteryInfo 获取手机电量
摘要:getBatteryInfo ^6.8 获取手机电量 #请求参数 N/A #接口调用示例 this.$bridge .getBatteryInfo() .then(res => { this.$alert(res) }) .catch(err => { // 错误处理 this.$toast(err 阅读全文
posted @ 2024-12-19 09:26 AtlasLapetos 阅读(9) 评论(0) 推荐(0)
checkCameraPerMissionStatus 检查并请求相机权限,iOS专用
摘要:checkCameraPerMissionStatus ^8.22 检查并请求相机权限,iOS专用 #请求参数 Prop Type Default Comment needRequest String N/A 为"0"表示只判断是否有权限,没有权限时不申请权限,为"1"表示判断是否有权限,如果没有进 阅读全文
posted @ 2024-12-19 09:26 AtlasLapetos 阅读(11) 评论(0) 推荐(0)
checkAndRequestPermission 检查并请求权限
摘要:checkAndRequestPermission ^7.8 检查并请求相册权限、通知权限、定位权限、蓝牙权限 #请求参数 Prop Type Default Comment type String N/A 权限类型:相机:CAMERA、通知:NOTIFICATION、定位:LOCATION、蓝牙: 阅读全文
posted @ 2024-12-19 09:26 AtlasLapetos 阅读(11) 评论(0) 推荐(0)
changeVolume 调节音量
摘要:changeVolume ^7.8 调节音量 #请求参数 Prop Type Default Comment value String N/A 音量大小(0-1) #接口调用示例 const params = { "value": "0.5" } this.$bridge .changeVolume 阅读全文
posted @ 2024-12-19 09:26 AtlasLapetos 阅读(9) 评论(0) 推荐(0)

上一页 1 ··· 6 7 8 9 10 11 12 13 下一页