UpdateControllerPlugin
2023年8月11日
- Plugin
更新App的控制插件;但是这个插件不能直接访问; 在DwebServiceWorkerPlugin插件中会访问UpdateControllerPlugin插件;
import { dwebServiceWorkerPlugin } from "@plaoc/plugin";
const updateControllerPlugin = dwebServiceWorkerPlugin.updateController
属性
- 无
方法
UpdateControllerPlugin.download()
下载App
UpdateControllerPlugin.pause()
暂停下载
UpdateControllerPlugin.resume()
重起下载
UpdateControllerPlugin.cancel()
取消下载
事件
- 无
平台兼容性
属性/方法/事件 | Android | IOS | Desktop-Dev | Desktop |
---|---|---|---|---|
download | ✅ | ✅ | ✅ | X |
pause | ✅ | ✅ | ✅ | X |
resume | ✅ | ✅ | ✅ | X |
cancel | ✅ | ✅ | ✅ | X |
相关链接
Powered by Waline v2.13.0