Class LocalPermissionGranter

java.lang.Object
org.robolectric.android.internal.LocalPermissionGranter
All Implemented Interfaces:
androidx.test.internal.platform.content.PermissionGranter

public class LocalPermissionGranter
extends Object
implements androidx.test.internal.platform.content.PermissionGranter
A PermissionGranter that runs on a local JVM with Robolectric.
  • Constructor Details

  • Method Details

    • addPermissions

      public void addPermissions​(String... permissions)
      Specified by:
      addPermissions in interface androidx.test.internal.platform.content.PermissionGranter
    • requestPermissions

      public void requestPermissions()
      Specified by:
      requestPermissions in interface androidx.test.internal.platform.content.PermissionGranter