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

RequestPermissionCallable

@VisibleForTesting  @ExperimentalTestApi abstract class RequestPermissionCallable : 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.

Public constructors

RequestPermissionCallable(
    shellCommand: ShellCommand,
    targetContext: Context,
    permission: String!
)

Public functions

Boolean
equals(o: Any!)
Int

Protected functions

Boolean

Protected properties

String!
ShellCommand!

Inherited functions

From class java.util.concurrent.Callable
abstract V!

Public constructors

RequestPermissionCallable

RequestPermissionCallable(
    shellCommand: ShellCommand,
    targetContext: Context,
    permission: String!
)

Public functions

equals

fun equals(o: Any!): Boolean

hashCode

fun hashCode(): Int

Protected functions

isPermissionGranted

protected fun isPermissionGranted(): Boolean

Protected properties

permission

protected val permissionString!

shellCommand

protected val shellCommandShellCommand!