canSupportSwitchTheme 是否需要支持暗黑模式
摘要:canSupportSwitchTheme ^8.8 是否需要支持暗黑模式 #请求参数 Prop Type Default Comment isSupportSwitchTheme boolean false 默认不支持,设置为true后需要插件根据当前模式来适配 #接口调用示例 const par
阅读全文
posted @
2024-12-12 09:19
AtlasLapetos
阅读(1)
推荐(0) 编辑
getDiablomode 获取当前是否是暗黑模式
摘要:getDiablomode ^8.7 获取当前是否是暗黑模式 #请求参数 N/A #接口调用示例 // 触发 this.$bridge .getDiablomode() .then(res => { this.result = res; }) #返回参数 成功时返回N/A #返回示例 { code:
阅读全文
posted @
2024-12-12 09:19
AtlasLapetos
阅读(2)
推荐(0) 编辑
scanForPlugins 插件页面的扫一扫
摘要:scanForPlugins^8.2 插件页面的扫一扫 #请求参数 Prop Type Default Comment types Array ["1","2","3"] 定制扫一扫类型 1扫条码 2拍食材 3扫食谱 defaultType Number N/A 默认选择拍食材 #接口调用示例 le
阅读全文
posted @
2024-12-12 09:19
AtlasLapetos
阅读(2)
推荐(0) 编辑
interfaceForThirdParty 调用第三方sdk方法
摘要:interfaceForThirdParty ^7.8 提供给前端页面调用插件第三方SDK接口 #请求参数 Prop Type Comment messageType String 第三方SDK用来判断接口名称 messageContent JSON/String 业务参数,第三方SDK用来处理逻辑
阅读全文
posted @
2024-12-12 09:19
AtlasLapetos
阅读(3)
推荐(0) 编辑
getPluginInfo 获取插件路径
摘要:getPluginInfo ^7.8 返回路径和插件版本等信息,支持获取目标模块的插件路径 #请求参数 Prop Type Comment folder String 功能模块的名称,比如'plugin-menu' 30014菜单组件。如folder参数可为空 #参数代码示例 let params
阅读全文
posted @
2024-12-12 09:18
AtlasLapetos
阅读(7)
推荐(0) 编辑
addEventListener 监听app事件
摘要:addEventListener ^7.8 此监听Key用于接收设备上报信息,当APP收到本设备的上报消息时,触发此监听 #请求参数 Prop Type Comment params String 事件名称 #详细的app消息类型(messageType)请参考 messageType现有类型查看
阅读全文
posted @
2024-12-12 09:18
AtlasLapetos
阅读(8)
推荐(0) 编辑
fireGlobalEvent 发送全局通知
摘要:fireGlobalEvent ^7.6 发送全局通知,通过addEventListener方法来异步接收消息 #请求参数 Prop Type Required Default Comment event String Y - 事件名 param Object Y - 传送的数据 #入参代码示例 c
阅读全文
posted @
2024-12-12 09:18
AtlasLapetos
阅读(3)
推荐(0) 编辑
getSystemInfo获取系统信息
摘要:getSystemInfo ^6.8 获取系统信息,平台,版本号,语言、系统版本、uuid等 #请求参数 N/A #接口调用示例 this.$bridge .getSystemInfo() .then(res => { this.$alert(res) }) .catch(err => { this
阅读全文
posted @
2024-12-12 09:18
AtlasLapetos
阅读(2)
推荐(0) 编辑
log打印日志
摘要:log ^6.8 打印日志 #请求参数 Prop Type Required Default Comment level String Y - 日志级别(Debug/Info/Warn/Error) message String Y - 日志内容 #参数代码示例 let params = { lev
阅读全文
posted @
2024-12-12 09:18
AtlasLapetos
阅读(2)
推荐(0) 编辑
canlUse版本可用性
摘要:canlUse ^6.8 获取某个 API 在当前版本是否可用 #请求参数 N/A #接口调用示例 this.$bridge .canIUse('getDeviceInfo') .then(res => { this.$alert(res) }) .catch(err => { this.$toas
阅读全文
posted @
2024-12-12 09:18
AtlasLapetos
阅读(6)
推荐(0) 编辑