UseExperimental

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.

Since Kotlin

1.2

Constructors

UseExperimental
Link copied to clipboard
fun UseExperimental(vararg markerClass: KClass<out Annotation>)

Properties

markerClass
Link copied to clipboard
val markerClass: Array<out KClass<out Annotation>>