AnyRes
@Target([AnnotationTarget.FUNCTION, AnnotationTarget.PROPERTY_GETTER, AnnotationTarget.PROPERTY_SETTER, AnnotationTarget.VALUE_PARAMETER, AnnotationTarget.FIELD, AnnotationTarget.LOCAL_VARIABLE]) class AnyRes
androidx.annotation.AnyRes |
Denotes that an integer parameter, field or method return value is expected to be a resource reference of any type. If the specific type is known, use one of the more specific annotations instead, such as StringRes
or DrawableRes
.
Summary
Public constructors | |
---|---|
<init>() Denotes that an integer parameter, field or method return value is expected to be a resource reference of any type. |
Public constructors
<init>
AnyRes()
Denotes that an integer parameter, field or method return value is expected to be a resource reference of any type. If the specific type is known, use one of the more specific annotations instead, such as StringRes
or DrawableRes
.