W3cubDocs

/Kotlin

UseExperimental

Platform and version requirements: JVM (1.2), JS (1.2), Native (1.2)
@Target([AnnotationTarget.CLASS, AnnotationTarget.PROPERTY, AnnotationTarget.LOCAL_VARIABLE, AnnotationTarget.VALUE_PARAMETER, AnnotationTarget.CONSTRUCTOR, AnnotationTarget.FUNCTION, AnnotationTarget.PROPERTY_GETTER, AnnotationTarget.PROPERTY_SETTER, AnnotationTarget.EXPRESSION, AnnotationTarget.FILE, AnnotationTarget.TYPEALIAS]) annotation class UseExperimental
Deprecated: Please use OptIn instead.

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

This class is deprecated in favor of a more general approach provided by RequiresOptIn/OptIn.

Constructors

Platform and version requirements: JVM (1.0), JS (1.0), Native (1.0)

<init>

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

UseExperimental(vararg markerClass: KClass<out Annotation>)

Properties

Platform and version requirements: JVM (1.0), JS (1.0), Native (1.0)

markerClass

vararg val markerClass: Array<out KClass<out Annotation>>

© 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/-use-experimental/index.html