Class ShadowPermissionControllerManager

java.lang.Object
org.robolectric.shadows.ShadowPermissionControllerManager

@Implements(value=android.permission.PermissionControllerManager.class, minSdk=29, isInAndroidSdk=false) public class ShadowPermissionControllerManager extends Object
Shadow for PermissionControllerManager.
  • Constructor Details

    • ShadowPermissionControllerManager

      public ShadowPermissionControllerManager()
  • Method Details

    • __constructor__

      @Implementation protected void __constructor__(Context context, Handler handler)
    • revokeRuntimePermissions

      @Implementation protected void revokeRuntimePermissions(Map<String,List<String>> request, boolean doDryRun, int reason, Executor executor, android.permission.PermissionControllerManager.OnRevokeRuntimePermissionsCallback callback)
      This is a very basic implementation of this API that simply forwards the call to the PackageManager. The real implementation is part of mainline and can easily evolve over time. The real implementation upholds the semantic of different permissions properties by: not revoking permissions that are considered fixed, revoking more permissions than the caller requested if they are part of the same group, and more.
    • reset

      @Resetter public static void reset()