W3cubDocs

/Kotlin

<init>

Platform and version requirements: JVM (1.0), JS (1.0), Native (1.0)
OptIn(vararg markerClass: KClass<out Annotation>)

Allows to use the API denoted by the given markers in the annotated file, declaration, or expression. If a declaration is annotated with OptIn, its usages are not required to opt in to that API.

This class requires opt-in itself and can only be used with the compiler argument -Xopt-in=kotlin.RequiresOptIn.

© 2010–2020 JetBrains s.r.o. and Kotlin Programming Language contributors
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-opt-in/-init-.html