Save the date! Android Dev Summit is coming to Sunnyvale, CA on Oct 23-24, 2019.

Write

@Target([AnnotationTarget.FIELD, AnnotationTarget.FUNCTION, AnnotationTarget.PROPERTY_GETTER, AnnotationTarget.PROPERTY_SETTER, AnnotationTarget.VALUE_PARAMETER]) class Write
androidx.annotation.RequiresPermission.Write

Specifies that the given permission is required for write 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

Specifies that the given permission is required for write operations.

Properties
RequiresPermission

Public constructors

<init>

Write(value: RequiresPermission)

Specifies that the given permission is required for write 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.)

Properties

value

val value: RequiresPermission