How to use Managed Configurations in an app that may not have a Managed Configurations Provider?

不羁的心 提交于 2019-12-02 00:54:13

You can always call RestrictionsManager.getApplicationRestrictions(), whether the device is managed or not:

  • if the device is managed and the company has configured the app, it will return the configuration,
  • if the device is not managed or if the company has not configured the app, it will return an empty Bundle and you can give control to the user.
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!