{% setvar book_path %}/reference/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}

RequestPermissionCallable

@VisibleForTesting  @ExperimentalTestApi public abstract class RequestPermissionCallable implements Callable


Base class for runtime permission Callables.

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

Summary

Nested types

RequestPermissionCallable.Result

Result of a permission request.

Protected fields

final String
final ShellCommand

Public constructors

RequestPermissionCallable(
    @NonNull ShellCommand shellCommand,
    @NonNull Context targetContext,
    String permission
)

Public methods

boolean
int

Protected methods

String
ShellCommand
boolean

Inherited methods

From class java.util.concurrent.Callable
abstract V

Protected fields

permission

protected final String permission

shellCommand

protected final ShellCommand shellCommand

Public constructors

RequestPermissionCallable

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

Public methods

equals

public boolean equals(Object o)

hashCode

public int hashCode()

Protected methods

getPermission

protected String getPermission()

getShellCommand

protected ShellCommand getShellCommand()

isPermissionGranted

protected boolean isPermissionGranted()