<@U0NDX1L8K> you can’t do exactly that because ann...
# android
t
@jc you can’t do exactly that because annotation classes can’t have a body, but you can do something like this
Copy code
@StringDef(FEMALE, MALE, OTHER)
@Retention(AnnotationRetention.SOURCE)
annotation class Gender

object GenderValues {
    const val FEMALE = "female"
    const val MALE = "male"
    const val OTHER = "other"
}
❤️ 2