RequestPermissionCallable

public abstract class RequestPermissionCallable
extends Object implements Callable<RequestPermissionCallable.Result>

java.lang.Object
   ↳ androidx.test.runner.permission.RequestPermissionCallable


Base class for runtime permission Callables.

Note: This class is visible only for testing. Please do not use it directly.

Summary

Nested classes

enum RequestPermissionCallable.Result

Result of a permission request. 

Public constructors

RequestPermissionCallable(ShellCommand shellCommand, Context targetContext, String permission)

Public methods

boolean equals(Object o)
int hashCode()

Protected methods

String getPermission()
ShellCommand getShellCommand()
boolean isPermissionGranted()

Inherited methods

Public constructors

RequestPermissionCallable

public RequestPermissionCallable (ShellCommand shellCommand, 
                Context targetContext, 
                String permission)

Parameters
shellCommand ShellCommand

targetContext Context

permission String

Public methods

equals

public boolean equals (Object o)

Parameters
o Object

Returns
boolean

hashCode

public int hashCode ()

Returns
int

Protected methods

getPermission

protected String getPermission ()

Returns
String

getShellCommand

protected ShellCommand getShellCommand ()

Returns
ShellCommand

isPermissionGranted

protected boolean isPermissionGranted ()

Returns
boolean