提交 dd0f9a8e 编写于 作者: taohebin@dcloud.io's avatar taohebin@dcloud.io

update: 更新文档

上级 d0c06945
## 1.0.1(2023-10-27)
支持js层调用
## 1.0.0(2023-10-26)
安装apk的插件
{
"id": "uni-installApk",
"displayName": "uni-installApk",
"version": "1.0.0",
"version": "1.0.1",
"description": "uni-installApk",
"keywords": [
"uni-installApk"
......@@ -52,11 +52,11 @@
},
"client": {
"Vue": {
"vue2": "u",
"vue3": "u"
"vue2": "y",
"vue3": "y"
},
"App": {
"app-android": "u",
"app-android": "y",
"app-ios": "n"
},
"H5-mobile": {
......
# uni-installApk
### 开发文档
[UTS 语法](https://uniapp.dcloud.net.cn/tutorial/syntax-uts.html)
[UTS API插件](https://uniapp.dcloud.net.cn/plugin/uts-plugin.html)
[UTS 组件插件](https://uniapp.dcloud.net.cn/plugin/uts-component.html)
[Hello UTS](https://gitcode.net/dcloud/hello-uts)
\ No newline at end of file
## 使用说明
Android平台安装Apk
### App-Android平台注意事项
- 需要自定义基座,并且需要具备下面的权限
```
<uses-permission android:name="android.permission.REQUEST_INSTALL_PACKAGES" />
```
### uni.installApk(options : InstallApkOptions):void
安装apk
参数说明
```
type InstallApkOptions = {
/**
* apk文件地址
*/
filePath : string,
/**
* 接口调用成功的回调函数
* @defaultValue null
*/
success ?: (res : any) => void,
/**
* 接口调用失败的回调函数
* @defaultValue null
*/
fail ?: (err : any) => void,
/**
* 接口调用结束的回调函数(调用成功、失败都会执行)
* @defaultValue null
*/
complete ?: (res : any) => void,
}
```
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册