ObsoleteNativeApi
@Target
(
[AnnotationTarget.CLASS, AnnotationTarget.ANNOTATION_CLASS, AnnotationTarget.PROPERTY, AnnotationTarget.FIELD, AnnotationTarget.LOCAL_VARIABLE, AnnotationTarget.VALUE_PARAMETER, AnnotationTarget.CONSTRUCTOR, AnnotationTarget.FUNCTION, AnnotationTarget.PROPERTY_GETTER, AnnotationTarget.PROPERTY_SETTER, AnnotationTarget.TYPEALIAS]
)
annotation
class
ObsoleteNativeApi
(source)
This annotation marks the Kotlin/Native standard library API that is considered obsolete and is being phased out.
An obsolete API is not recommended to use, and users should migrate from it.
Any usage of a declaration annotated with
@ObsoleteNativeApi
must be accepted either by
annotating that usage with the
OptIn
annotation, e.g.
@OptIn(ObsoleteNativeApi::class)
,
or by using the compiler argument
-opt-in=kotlin.native.ObsoleteNativeApi
.
Constructors
<init>
This annotation marks the Kotlin/Native standard library API that is considered obsolete and is being phased out.
ObsoleteNativeApi
(
)