# 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)

*** ** * ** ***


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

<br />

*** ** * ** ***

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

## Summary

| ### Public methods |
|---|---|
| `final int` | `https://developer.android.com/reference/androidx/annotation/DeprecatedSinceApi#getApi()()` The API level where it is deprecated. |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/annotation/DeprecatedSinceApi#getMessage()()` Suggested replacement. |

## Public methods

### getApi

```
public final int getApi()
```

The API level where it is deprecated.

### getMessage

```
public final @NonNull String getMessage()
```

Suggested replacement.