UseExperimental

@Target([AnnotationTarget.CLASS, AnnotationTarget.FILE, AnnotationTarget.FUNCTION, AnnotationTarget.PROPERTY_GETTER, AnnotationTarget.PROPERTY_SETTER, AnnotationTarget.CONSTRUCTOR, AnnotationTarget.FIELD]) 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>(markerClass: KClass<*>)

Allows use of an experimental API denoted by the given markers in the annotated file, declaration, or expression.

Properties

KClass<*>

Defines the experimental API whose usage this annotation allows.

Public constructors

<init>

UseExperimental(markerClass: KClass<*>)

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

val markerClass: KClass<*>

Defines the experimental API whose usage this annotation allows.