Deprecated

Common
JVM
JS
Native
1.0
@Target([AnnotationTarget.CLASS, AnnotationTarget.FUNCTION, AnnotationTarget.PROPERTY, AnnotationTarget.ANNOTATION_CLASS, AnnotationTarget.CONSTRUCTOR, AnnotationTarget.PROPERTY_SETTER, AnnotationTarget.PROPERTY_GETTER, AnnotationTarget.TYPEALIAS]) annotation class Deprecated

Marks the annotated class, function, property, variable or parameter as deprecated.

Constructors

Common
JVM
JS
Native
1.0

<init>

Marks the annotated class, function, property, variable or parameter as deprecated.

<init>(
    message: String,
    replaceWith: ReplaceWith = ReplaceWith(""),
    level: DeprecationLevel = DeprecationLevel.WARNING)

Properties

Common
JVM
JS
Native
1.0

level

val level: DeprecationLevel
Common
JVM
JS
Native
1.0

message

the message explaining the deprecation and recommending an alternative API to use.

val message: String
Common
JVM
JS
Native
1.0

replaceWith

if present, specifies a code fragment which should be used as a replacement for the deprecated API usage.

val replaceWith: ReplaceWith