public abstract class

RequestPermissionCallable

extends Object
implements Callable<RequestPermissionCallable.Result>
java.lang.Object
   ↳ androidx.test.runner.permission.RequestPermissionCallable

Class Overview

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()
[Expand]
Inherited Methods
From class java.lang.Object
From interface java.util.concurrent.Callable

Public Constructors

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

Parameters
shellCommand ShellCommand
targetContext Context
permission String

Public Methods

public boolean equals (Object o)

Parameters
o Object
Returns
boolean

public int hashCode ()

Returns
int

Protected Methods

protected String getPermission ()

Returns
String

protected ShellCommand getShellCommand ()

Returns
ShellCommand

protected boolean isPermissionGranted ()

Returns
boolean