# DeprecatedSinceApi

Artifact: [androidx.annotation:annotation](https://developer.android.com/jetpack/androidx/releases/annotation) [View Source](https://cs.android.com/search?q=file:androidx/annotation/DeprecatedSinceApi.jvm.kt+class:androidx.annotation.DeprecatedSinceApi) Added in [1.4.0](https://developer.android.com/jetpack/androidx/releases/annotation#1.4.0)

*** ** * ** ***

Common/AllAndroid/JVM
- 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 |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/annotation/DeprecatedSinceApi#DeprecatedSinceApi(kotlin.Int,kotlin.String)(api: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, message: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)` | android |

| ### Public properties |
|---|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/annotation/DeprecatedSinceApi#api()` The API level where it is deprecated. | android |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/androidx/annotation/DeprecatedSinceApi#message()` Suggested replacement. | android |

## Public constructors

### DeprecatedSinceApi

android Added in [1.10.0](https://developer.android.com/jetpack/androidx/releases/annotation#1.10.0)

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

## Public properties

### api

android

```
val api: Int
```

The API level where it is deprecated.

### message

android

```
val message: String
```

Suggested replacement.