请教 android 大佬,怎么让 app 适配 DevicePolicyManager

查看 48|回复 1
作者:magic3584   
目前有个 flutter app 运行在 android 设备上,但是需要不能手势退出 app (只能主动点按钮退出)
搜索到 flutter 插件( https://pub.dev/packages/kiosk_mode) 但是只是进入了 pin screen 模式
看 README 里有一句话:

If DevicePolicyManager#isLockTaskPermitted(String) returns true for this component, the current task will be launched directly into LockTask mode.

由于我不会 android 开发,特来请教大佬怎么实现

flutter, App, Android, 请教

learnshare   
为啥要干扰系统级的操作
不想退出,就弹出窗口再确认一下
您需要登录后才可以回帖 登录 | 立即注册

返回顶部