Commit 1ce75cd1 by hk

更新文档

parent 816a7f81
# Launcher[![Release Version](https://img.shields.io/badge/release-1.0.5-red.svg)](https://git.dankal.cn/lihuaikun/androidlibrary/tree/master/cn/dankal/android/launcher/1.0.5)
# Launcher[![Release Version](https://img.shields.io/badge/release-1.0.6-red.svg)](https://git.dankal.cn/lihuaikun/androidlibrary/tree/master/cn/dankal/android/launcher/1.0.6)
1. 添加依赖配置
```groovy
......@@ -9,7 +9,7 @@
}
dependencies {
implementation 'cn.dankal.android:launcher:1.0.1'
implementation 'cn.dankal.android:launcher:1.0.6'
}
```
2. AndroidManifests.xml配置
......@@ -29,13 +29,18 @@
managementInfo.setPackageName("com.tencent.tim");
// 正常使用
//ColumnDef.AppUseType.NORMAL_TYPE
~~ ColumnDef.AppUseType.NORMAL_TYPE ~~
// 学习教育类
ColumnDef.AppUseType.LEARN_TYPE
// 游戏类应用
//ColumnDef.AppUseType.GAME_LOCK_TYPE
// 未分类应用
//ColumnDef.AppUseType.UNCLASS_TYPE
//ColumnDef.AppUseType.UNCLASS_TYPE
//无需管控类
//ColumnDef.AppUseType.SAFE_TYPE
managementInfo.setUseType(ColumnDef.AppUseType.GAME_LOCK_TYPE);
//app锁定模式
// 应用使用时长到达上限
......@@ -44,6 +49,8 @@
ColumnDef.LockApp.LOCKED
// 应用未锁定
ColumnDef.LockApp.UNLOCKED
managementInfo.setLock(ColumnDef.LockApp.LOCKED);
//设置单个应用
LauncherManager.getInstance().addPackageInfo(managementInfo);
......@@ -58,6 +65,9 @@
List<String> managementInfoList = new ArrayList<>(); LauncherManager.getInstance().removePackageInfoList(managementInfoList);
//获取受管理的app信息
LauncherManager.getInstance().getAppInfo();
```
5. 返回桌面/跳转设置
......
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