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

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

Inherited methods

From 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()