文章分类 -  MiniX自绘渲染跨平台框架

上一页 1 2 3 4 5 6 7 8 下一页
startAccelerometer 加速计监听
摘要:startAccelerometer ^6.8 加速计监听 #请求参数 N/A #引入接口模块 import bridge from '@minix-iot/etsbridge-sdk' #接口调用示例 bridge .startAccelerometer() .then((res) => { co 阅读全文
posted @ 2024-12-27 09:29 AtlasLapetos 阅读(5) 评论(0) 推荐(0)
stopGyroscope 停止陀螺仪监听
摘要:stopGyroscope ^6.8 停止陀螺仪监听 #请求参数 N/A #引入接口模块 import bridge from '@minix-iot/etsbridge-sdk' #接口调用示例 bridge .stopGyroscope() .then((res) => { console.lo 阅读全文
posted @ 2024-12-27 09:29 AtlasLapetos 阅读(7) 评论(0) 推荐(0)
startGyroscope 陀螺仪监听
摘要:startGyroscope ^6.8 陀螺仪监听 #请求参数 N/A #引入接口模块 import bridge from '@minix-iot/etsbridge-sdk' #接口调用示例 bridge .startGyroscope() .then((res) => { console.lo 阅读全文
posted @ 2024-12-27 09:28 AtlasLapetos 阅读(10) 评论(0) 推荐(0)
stopCompass 停止罗盘监听
摘要:stopCompass ^6.8 停止罗盘监听 #请求参数 N/A #引入接口模块 import bridge from '@minix-iot/etsbridge-sdk' #接口调用示例 bridge .stopCompass() .then((res) => { console.log(res 阅读全文
posted @ 2024-12-27 09:28 AtlasLapetos 阅读(3) 评论(0) 推荐(0)
startCompass 罗盘监听
摘要:startCompass ^6.8 罗盘监听 #请求参数 N/A #引入接口模块 import bridge from '@minix-iot/etsbridge-sdk' #接口调用示例 bridge .startCompass() .then((res) => { console.log(res 阅读全文
posted @ 2024-12-27 09:28 AtlasLapetos 阅读(13) 评论(0) 推荐(0)
setScreenBrightness 设置屏幕亮度
摘要:setScreenBrightness ^6.8 设置屏幕亮度 #请求参数 Prop Type Value value Number [0-1] #参数代码示例 let params = { value: 0.5 } #接口调用示例 import bridge from '@minix-iot/et 阅读全文
posted @ 2024-12-27 09:28 AtlasLapetos 阅读(8) 评论(0) 推荐(0)
getScreenBrightness 获取屏幕亮度
摘要:getScreenBrightness ^6.8 获取屏幕亮度 #请求参数 N/A #引入接口模块 import bridge from '@minix-iot/etsbridge-sdk' #接口调用示例 bridge .getScreenBrightness() .then((res) => { 阅读全文
posted @ 2024-12-27 09:28 AtlasLapetos 阅读(4) 评论(0) 推荐(0)
setKeepScreenOn 屏幕常亮
摘要:setKeepScreenOn ^6.8 屏幕常亮 #请求参数 Prop Type Value keepScreenOn Boolean `[ true #引入接口模块 import bridge from '@minix-iot/etsbridge-sdk' #参数代码示例 let params 阅读全文
posted @ 2024-12-27 09:28 AtlasLapetos 阅读(4) 评论(0) 推荐(0)
getBatteryInfo 获取手机电量
摘要:getBatteryInfo ^6.8 获取手机电量 #请求参数 N/A #引入接口模块 import bridge from '@minix-iot/etsbridge-sdk' #接口调用示例 bridge .getBatteryInfo() .then((res) => { console.l 阅读全文
posted @ 2024-12-27 09:28 AtlasLapetos 阅读(4) 评论(0) 推荐(0)
checkAndRequestPermission
摘要:checkAndRequestPermission ^7.8 检查并请求相册权限、通知权限、定位权限、蓝牙权限(只针对 ios) #请求参数 Prop Type Default Comment type String N/A 权限类型:相机:CAMERA、通知:NOTIFICATION、定位:LOC 阅读全文
posted @ 2024-12-27 09:28 AtlasLapetos 阅读(3) 评论(0) 推荐(0)
changeVolume 调节音量
摘要:changeVolume ^7.8 调节音量 #请求参数 Prop Type Default Comment value String N/A 音量大小(0-1) #引入接口模块 import bridge from '@minix-iot/etsbridge-sdk' #接口调用示例 const 阅读全文
posted @ 2024-12-27 09:28 AtlasLapetos 阅读(3) 评论(0) 推荐(0)
dismissFullPage 退出全面屏(仅安卓)
摘要:dismissFullPage ^7.10 退出全面屏(仅安卓) #请求参数 N/A #引入接口模块 import bridge from '@minix-iot/etsbridge-sdk' #接口调用示例 bridge .dismissFullPage() .then((res) => { co 阅读全文
posted @ 2024-12-27 09:28 AtlasLapetos 阅读(4) 评论(0) 推荐(0)
likeAnimation 礼花动效
摘要:likeAnimation ^7.8 礼花动效 #请求参数 Prop Type Default Comment offsetTop String N/A 动效距离顶部距离 安卓特有-- 如 20 playStatus String N/A 1:开始播放; 0:结束播放; isClick String 阅读全文
posted @ 2024-12-27 09:28 AtlasLapetos 阅读(5) 评论(0) 推荐(0)
takePhoto 拍照功能,并返回相片数据
摘要:takePhoto ^7.8 拍照功能,并返回相片数据 #请求参数 Prop Type Default Comment compressRage Number N/A 返回照片的压缩率,范围为 0~100(只是针对 jpg 格式的图片,png 格式没有压缩率),数值越高保真率越高。默认值:100 t 阅读全文
posted @ 2024-12-27 09:28 AtlasLapetos 阅读(16) 评论(0) 推荐(0)
hideStatusBar 是否隐藏导航条
摘要:hideStatusBar ^7.8 是否隐藏导航条 #请求参数 Prop Type Default Comment hide String N/A 0|1 隐藏状态栏 #引入接口模块 import bridge from '@minix-iot/etsbridge-sdk' #接口调用示例 con 阅读全文
posted @ 2024-12-27 09:28 AtlasLapetos 阅读(3) 评论(0) 推荐(0)
setStatusBar 设置状态栏样式
摘要:setStatusBar ^7.8 设置状态栏样式 #请求参数 Prop Type Default Comment colorMode String N/A 选填参数,设置状态栏字体颜色模式,1:黑色字体色系模式,2:白色字体色系模式 #引入接口模块 import bridge from '@min 阅读全文
posted @ 2024-12-27 09:28 AtlasLapetos 阅读(14) 评论(0) 推荐(0)
hideLoading ^6.8 关闭原生 loading
摘要:hideLoading ^6.8 关闭原生 loading #请求参数 N/A #引入接口模块 import bridge from '@minix-iot/etsbridge-sdk' #接口调用示例 bridge.hideLoading() 阅读全文
posted @ 2024-12-27 09:28 AtlasLapetos 阅读(3) 评论(0) 推荐(0)
showLoading 打开原生 loading
摘要:showLoading 打开原生 loading #请求参数 Prop Type Required Default Description param Object Y {} 属性: type: bgStyle:{ Type: String, Default: black, Description: 阅读全文
posted @ 2024-12-27 09:27 AtlasLapetos 阅读(5) 评论(0) 推荐(0)
hideKeyboard 隐藏软键盘
摘要:hideKeyboard ^6.8 隐藏软键盘 #请求参数 N/A #引入接口模块 import bridge from '@minix-iot/etsbridge-sdk' #接口调用示例 bridge.hideKeyboard() #返回参数 返回 N/A 阅读全文
posted @ 2024-12-27 09:27 AtlasLapetos 阅读(6) 评论(0) 推荐(0)
showModal 显示对话框
摘要:showModal ^6.8 显示对话框 #请求参数 Prop Type Comment title String 提示的标题 content String 提示的内容 showCancel Boolean 是否取消按钮 cancelText String 取消按钮的文字 cancelColor S 阅读全文
posted @ 2024-12-27 09:27 AtlasLapetos 阅读(8) 评论(0) 推荐(0)

上一页 1 2 3 4 5 6 7 8 下一页