Hi everyone! Does anybody know how to get the cont...
# announcements
x
Hi everyone! Does anybody know how to get the content of an annotation? Say we have
annotation class CustomAnnotation(val value: KClass<*>)
and I wanna get the value of that annotation. I get the annotation itself with
javaClass.kotlin.annotations.first()
but no idea how to get the value
MyClass
from
@CustomAnnotation(MyClass::class)