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

The API level where it is deprecated.

final @NonNull String

Suggested replacement.

Public constructors

DeprecatedSinceApi

public DeprecatedSinceApi(int api, @NonNull String message)

Public methods

getApi

public final int getApi()

The API level where it is deprecated.

getMessage

public final @NonNull String getMessage()

Suggested replacement.