Retention

annotation class Retention(val value: AnnotationRetention = AnnotationRetention.RUNTIME)(source)

This meta-annotation determines whether an annotation is stored in binary output and visible for reflection. By default, both are true.

Since Kotlin

1.0
annotation class Retention(val value: AnnotationRetention = AnnotationRetention.RUNTIME)(source)

This meta-annotation determines whether an annotation is stored in binary output and visible for reflection. By default, both are true.

Since Kotlin

1.1
annotation class Retention(val value: AnnotationRetention = AnnotationRetention.RUNTIME)(source)

This meta-annotation determines whether an annotation is stored in binary output and visible for reflection. By default, both are true.

Since Kotlin

1.3

Properties

Link copied to clipboard

necessary annotation retention (RUNTIME, BINARY or SOURCE)

Since Kotlin 1.0

necessary annotation retention (RUNTIME, BINARY or SOURCE)

Since Kotlin 1.1

necessary annotation retention (RUNTIME, BINARY or SOURCE)

Since Kotlin 1.3