Allows use of an opt-in 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.

Summary

Public constructors

OptIn(vararg markerClass: KClass<Annotation>)
android

Public properties

Array<KClass<Annotation>>

Defines the opt-in API(s) whose usage this annotation allows.

android

Public constructors

OptIn

OptIn(vararg markerClass: KClass<Annotation>)

Public properties

markerClass

val markerClassArray<KClass<Annotation>>

Defines the opt-in API(s) whose usage this annotation allows.