RequestPermissionCallable
Kotlin
|Java
public
abstract
class
RequestPermissionCallable
extends Object
implements
Callable<RequestPermissionCallable.Result>
java.lang.Object | |
↳ | androidx.test.runner.permission.RequestPermissionCallable |
Base class for runtime permission Callable
s.
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 | |
---|---|
![]()
java.lang.Object
| |
![]()
java.util.concurrent.Callable
|
Public constructors
RequestPermissionCallable
RequestPermissionCallable (ShellCommand shellCommand, Context targetContext, String permission)
Parameters | |
---|---|
shellCommand |
ShellCommand |
targetContext |
Context |
permission |
String |
Public methods
hashCode
int hashCode ()
Returns | |
---|---|
int |
Protected methods
isPermissionGranted
boolean isPermissionGranted ()
Returns | |
---|---|
boolean |
Content and code samples on this page are subject to the licenses described in the Content License. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2020-09-30 UTC.