Commit a6f71f1d by hk

1.1.8修改文档

parent 7cb6e7f2
# Launcher[![Release Version](https://img.shields.io/badge/release-1.1.6-red.svg)](https://git.dankal.cn/lihuaikun/androidlibrary/tree/master/cn/dankal/android/launcher/1.1.6) # Launcher[![Release Version](https://img.shields.io/badge/release-1.1.8-red.svg)](https://git.dankal.cn/lihuaikun/androidlibrary/tree/master/cn/dankal/android/launcher/1.1.8)
1. 添加依赖配置 1. 添加依赖配置
```groovy ```groovy
//在build.gradle中添加maven //在build.gradle中添加maven
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
} }
dependencies { dependencies {
implementation 'cn.dankal.android:launcher:1.1.5' implementation 'cn.dankal.android:launcher:1.1.8'
} }
``` ```
2. AndroidManifests.xml配置 2. AndroidManifests.xml配置
...@@ -121,6 +121,14 @@ ...@@ -121,6 +121,14 @@
//获取当前是否可卸载 //获取当前是否可卸载
LauncherManager.getInstance().getUninstallEnable(); LauncherManager.getInstance().getUninstallEnable();
``` ```
9. 控制退出/进入管控状态
```java
//改变管制的状态 true 退出管制 false 进入管制 默认false
LauncherManager.getInstance().changeExitState(true);
//获取当前的管制状态
LauncherManager.getInstance().getExitState();
```
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment