DeprecatedSinceApi


  • android
    @MustBeDocumented
    @Retention(value = AnnotationRetention.BINARY)
    @Target(allowedTargets = [AnnotationTarget.FUNCTION, AnnotationTarget.PROPERTY_GETTER, AnnotationTarget.PROPERTY_SETTER, AnnotationTarget.ANNOTATION_CLASS, AnnotationTarget.CLASS, AnnotationTarget.CONSTRUCTOR])
    annotation DeprecatedSinceApi

Denotes that this API is only useful until the given API level; after that, a more suitable platform API is available.

Summary

Public constructors

DeprecatedSinceApi(api: Int, message: String)
android

Public properties

Int

The API level where it is deprecated.

android
String

Suggested replacement.

android

Public constructors

DeprecatedSinceApi

DeprecatedSinceApi(api: Int, message: String = "")

Public properties

api

val apiInt

The API level where it is deprecated.

message

val messageString

Suggested replacement.