Class 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 Detail

      • LocalPermissionGranter

        public LocalPermissionGranter()
    • Method Detail

      • 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