RequestPermissionCallable
This package is part of the
Android support library which
is no longer maintained.
The support library has been superseded by AndroidX
which is part of Jetpack .
We recommend using the AndroidX libraries in all new projects. You should also consider
migrating existing projects to AndroidX.
To find the AndroidX class that maps to this deprecated class, see the AndroidX
support library class
mappings .
public
abstract
class
RequestPermissionCallable
extends Object
implements
Callable <RequestPermissionCallable.Result >
java.lang.Object
↳
android.support.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
RequestPermissionCallable (ShellCommand shellCommand,
Context targetContext,
String permission)
Parameters
shellCommand
ShellCommand
targetContext
Context
permission
String
Public methods
equals
boolean equals (Object o)
Protected methods
getPermission
String getPermission ()
isPermissionGranted
boolean isPermissionGranted ()
Content and code samples on this page are subject to the licenses described in the Content License . Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2024-04-11 UTC.
[null,null,["Last updated 2024-04-11 UTC."],[],[]]