NativeRuntimeApi

Native
1.9
@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 NativeRuntimeApi
(source)

This annotation marks the Kotlin/Native standard library API that tweaks or otherwise accesses the Kotlin runtime behavior.

The API marked with this annotation is considered unstable and is not intended to become stable in the future. Behavior of such an API may be changed or the API may be removed completely in any further release.

Any usage of a declaration annotated with @NativeRuntimeApi must be accepted either by annotating that usage with the OptIn annotation, e.g. @OptIn(NativeRuntimeApi::class), or by using the compiler argument -opt-in=kotlin.native.runtime.NativeRuntimeApi.

Constructors

Native
1.3

<init>

This annotation marks the Kotlin/Native standard library API that tweaks or otherwise accesses the Kotlin runtime behavior.

NativeRuntimeApi()