RestrictionsManager

Class of android.content · RestrictionsManager.java · Android's reference

public class RestrictionsManager

Application restrictions: no device policy manages this device, so the app has none.

Fields

public static final String ACTION_PERMISSION_RESPONSE_RECEIVED = "android.content.action.PERMISSION_RESPONSE_RECEIVED" source
public static final String ACTION_REQUEST_PERMISSION = "android.content.action.REQUEST_PERMISSION" source
public static final String ACTION_REQUEST_LOCAL_APPROVAL = "android.content.action.REQUEST_LOCAL_APPROVAL" source

Constructors

public RestrictionsManager() empty body source

Methods

public Bundle getApplicationRestrictions() source
public List<Bundle> getApplicationRestrictionsPerAdmin() source
public boolean hasRestrictionsProvider() source
public void requestPermission(String requestType, String requestId, PersistableBundle request) empty body source
public Intent createLocalApprovalIntent() source
public void notifyPermissionResponse(String packageName, PersistableBundle response) empty body source

Made from ScarletNX's Sail at 166ad3910f80. The framework is ScarletNX's (GPL-3.0-or-later); the parts that follow the Android Open Source Project's sources (Apache-2.0) say so in their files.