Google は、黒人コミュニティに対する人種平等の促進に取り組んでいます。取り組みを見る

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

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.