Retention

kotlin-stdlib / kotlin.annotation / Retention
 

Platform and version requirements: JVM (1.0), JS (1.1), Native (1.3) @Target([AnnotationTarget.ANNOTATION_CLASS]) annotation class Retention 
 This meta-annotation determines whether an annotation is stored in binary output and visible for reflection. By default, both are true. 
 Constructors 

Platform and version requirements: JVM (1.0), JS (1.0), Native (1.0) <init>  This meta-annotation determines whether an annotation is stored in binary output and visible for reflection. By default, both are true. 
<init>(
    value: AnnotationRetention = AnnotationRetention.RUNTIME) 
   Properties 

Platform and version requirements: JVM (1.0), JS (1.0), Native (1.0) value  necessary annotation retention (RUNTIME, BINARY or SOURCE) 
val value: AnnotationRetention 
   Extension Properties 

Platform and version requirements: JVM (1.0) annotationClass  Returns a KClass instance corresponding to the annotation type of this annotation. 
val <T : Annotation> T.annotationClass: KClass<out T> 
  

    
{'path': 'public/docs/kotlin~1.7/api/latest/jvm/stdlib/kotlin.annotation/-retention/index.html', 'source': 'DevDocs.IO'}