UseExperimental
@Target([AnnotationTarget.CLASS, AnnotationTarget.PROPERTY, AnnotationTarget.LOCAL_VARIABLE, AnnotationTarget.VALUE_PARAMETER, AnnotationTarget.CONSTRUCTOR, AnnotationTarget.FUNCTION, AnnotationTarget.PROPERTY_GETTER, AnnotationTarget.PROPERTY_SETTER, AnnotationTarget.FILE, AnnotationTarget.TYPEALIAS]) annotation class UseExperimental
androidx.annotation.experimental.UseExperimental |
Allows use of an 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.
Summary
Public constructors | |
---|---|
<init>(vararg markerClass: KClass<out Annotation>) Allows use of an experimental API denoted by the given markers in the annotated file, declaration, or expression. |
Properties | |
---|---|
vararg Array<out KClass<out Annotation>> |
Defines the experimental API(s) whose usage this annotation allows. |
Public constructors
<init>
UseExperimental(vararg markerClass: KClass<out Annotation>)
Allows use of an 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.
Properties
markerClass
vararg val markerClass: Array<out KClass<out Annotation>>
Defines the experimental API(s) whose usage this annotation allows.