RequiresPermission.Read

@Target(allowedTargets = [AnnotationTarget.FIELD, AnnotationTarget.FUNCTION, AnnotationTarget.PROPERTY_GETTER, AnnotationTarget.PROPERTY_SETTER, AnnotationTarget.VALUE_PARAMETER])
public annotation 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

Public methods

final @NonNull RequiresPermission

Public constructors

Read

public Read(@NonNull RequiresPermission value)

Public methods

getValue

public final @NonNull RequiresPermission getValue()