← Docs
kotlin-stdlib / kotlin.annotation / Retention / <init>

<init>

Common
JVM
JS
Native
1.0
<init> (
value : AnnotationRetention = AnnotationRetention.RUNTIME )

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

Stay in touch:
  • Contributing to Kotlin
  • Releases
  • Press Kit
  • Security
  • Blog
  • Issue Tracker
  • Brand assets
  • Careers
Supported and developed by JetBrains .
Kotlin™ is protected under the Kotlin Foundation
and licensed under the Apache 2 license .