blob: a4e8b5068d2a8b1106d500f58e5592eae1ad97d1 [file]
<html devsite="true">
<head>
<title>DeprecatedSinceApi</title>
{% setvar book_path %}/reference/androidx/_book.yaml{% endsetvar %}
{% include "_shared/_reference-head-tags.html" %}
</head>
<body>
<div itemscope="" itemtype="http://developers.google.com/ReferenceObject">
<meta itemprop="name" content="DeprecatedSinceApi">
<meta itemprop="path" content="androidx.annotation">
<meta itemprop="property" content="getApi()">
<meta itemprop="property" content="getMessage()">
<meta itemprop="language" content="JAVA">
</div>
<div id="header-block">
<div>
<h1>DeprecatedSinceApi</h1>
</div>
<div id="metadata-info-block">
<div id="source-link"><a href="https://cs.android.com/search?q=file:androidx/annotation/DeprecatedSinceApi.kt+class:androidx.annotation.DeprecatedSinceApi&amp;ss=androidx/platform/frameworks/support" class="external">View Source</a></div>
</div>
</div>
<div id="refdoc-switcher-placeholder"></div>
<p>
<pre>@<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.annotation/-must-be-documented/index.html">MustBeDocumented</a><br>@<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.annotation/-retention/index.html">Retention</a>(value&nbsp;=&nbsp;AnnotationRetention.BINARY)<br>@<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.annotation/-target/index.html">Target</a>(allowedTargets&nbsp;=&nbsp;[AnnotationTarget.FUNCTION,&nbsp;AnnotationTarget.PROPERTY_GETTER,&nbsp;AnnotationTarget.PROPERTY_SETTER,&nbsp;AnnotationTarget.ANNOTATION_CLASS,&nbsp;AnnotationTarget.CLASS,&nbsp;AnnotationTarget.CONSTRUCTOR])<br>public annotation <a href="/reference/androidx/annotation/DeprecatedSinceApi.html">DeprecatedSinceApi</a></pre>
</p>
<hr>
<p>Denotes that this API is only useful until the given API level; after that, a more suitable platform API is available.</p>
<h2>Summary</h2>
<div class="devsite-table-wrapper">
<table class="responsive">
<colgroup>
<col width="40%">
<col>
</colgroup>
<thead>
<tr>
<th colspan="100%"><h3>Public constructors</h3></th>
</tr>
</thead>
<tbody class="list">
<tr>
<td>
<div><code><a href="/reference/androidx/annotation/DeprecatedSinceApi.html#DeprecatedSinceApi(kotlin.Int,kotlin.String)">DeprecatedSinceApi</a>(int&nbsp;api,&nbsp;@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> <a href="https://developer.android.com/reference/java/lang/String.html">String</a>&nbsp;message)</code></div>
</td>
</tr>
</tbody>
</table>
</div>
<div class="devsite-table-wrapper">
<table class="responsive">
<colgroup>
<col width="40%">
<col>
</colgroup>
<thead>
<tr>
<th colspan="100%"><h3>Public methods</h3></th>
</tr>
</thead>
<tbody class="list">
<tr>
<td><code>final int</code></td>
<td>
<div><code><a href="/reference/androidx/annotation/DeprecatedSinceApi.html#getApi()">getApi</a>()</code></div>
<p>The API level where it is deprecated.</p>
</td>
</tr>
<tr>
<td><code>final @<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> <a href="https://developer.android.com/reference/java/lang/String.html">String</a></code></td>
<td>
<div><code><a href="/reference/androidx/annotation/DeprecatedSinceApi.html#getMessage()">getMessage</a>()</code></div>
<p>Suggested replacement.</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="list">
<h2>Public constructors</h2>
<div class="api-item"><a name="DeprecatedSinceApi(kotlin.Int, kotlin.String)"></a><a name="DeprecatedSinceApi-kotlin.Int-kotlin.String-"></a><a name="deprecatedsinceapi"></a>
<div class="api-name-block">
<div>
<h3 id="DeprecatedSinceApi(kotlin.Int,kotlin.String)">DeprecatedSinceApi</h3>
</div>
</div>
<pre class="api-signature no-pretty-print">public&nbsp;<a href="/reference/androidx/annotation/DeprecatedSinceApi.html#DeprecatedSinceApi(kotlin.Int,kotlin.String)">DeprecatedSinceApi</a>(int&nbsp;api,&nbsp;@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> <a href="https://developer.android.com/reference/java/lang/String.html">String</a>&nbsp;message)</pre>
</div>
</div>
<div class="list">
<h2>Public methods</h2>
<div class="api-item"><a name="getApi--"></a><a name="getapi"></a>
<div class="api-name-block">
<div>
<h3 id="getApi()">getApi</h3>
</div>
</div>
<pre class="api-signature no-pretty-print">public&nbsp;final&nbsp;int&nbsp;<a href="/reference/androidx/annotation/DeprecatedSinceApi.html#getApi()">getApi</a>()</pre>
<p>The API level where it is deprecated.</p>
</div>
<div class="api-item"><a name="getMessage--"></a><a name="getmessage"></a>
<div class="api-name-block">
<div>
<h3 id="getMessage()">getMessage</h3>
</div>
</div>
<pre class="api-signature no-pretty-print">public&nbsp;final&nbsp;@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> <a href="https://developer.android.com/reference/java/lang/String.html">String</a>&nbsp;<a href="/reference/androidx/annotation/DeprecatedSinceApi.html#getMessage()">getMessage</a>()</pre>
<p>Suggested replacement.</p>
</div>
</div>
</body>
</html>