DeprecatedSinceApi
@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
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(int api, @NonNull String message) |
Public methods |
|
|---|---|
final int |
getApi()The API level where it is deprecated. |
final @NonNull String |
Suggested replacement. |