RequestPermissionCallable

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

java.lang.Object
   ↳ android.support.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

From class java.lang.Object
From interface java.util.concurrent.Callable

Public constructors

RequestPermissionCallable

RequestPermissionCallable (ShellCommand shellCommand, 
                Context targetContext, 
                String permission)

Parameters
shellCommand ShellCommand

targetContext Context

permission String

Public methods

equals

boolean equals (Object o)

Parameters
o Object

Returns
boolean

hashCode

int hashCode ()

Returns
int

Protected methods

getPermission

String getPermission ()

Returns
String

getShellCommand

ShellCommand getShellCommand ()

Returns
ShellCommand

isPermissionGranted

boolean isPermissionGranted ()

Returns
boolean