I have this code sample:
class MeasureTextView: TextView { constructor(context: Context?) : super(context) constructor(context: Context?, attrs: Attr
Try it:
companion object { const val VALUE_1: Int = 1 const val VALUE_2: Int = 2 const val VALUE_3: Int = 3 } @IntDef(value = [VALUE_1, VALUE_2, VALUE_3]) @Retention(AnnotationRetention.SOURCE) annotation class TestClassName