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

RequiresPermission.Read


Specifies that the given permission is required for read operations.

When specified on a parameter, the annotation indicates that the method requires a permission which depends on the value of the parameter (and typically the corresponding field passed in will be one of a set of constants which have been annotated with a @RequiresPermission annotation.)

Summary

Public constructors

android

Public properties

RequiresPermission
android

Public constructors

Read

Read(value: RequiresPermission = RequiresPermission())

Public properties

value

val valueRequiresPermission