| <html devsite="true"> |
| <head> |
| <title>androidx.annotation</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="androidx.annotation"> |
| <meta itemprop="property" content="ValueType"> |
| <meta itemprop="property" content="Scope"> |
| <meta itemprop="property" content="AnimRes"> |
| <meta itemprop="property" content="AnimatorRes"> |
| <meta itemprop="property" content="AnyRes"> |
| <meta itemprop="property" content="AnyThread"> |
| <meta itemprop="property" content="ArrayRes"> |
| <meta itemprop="property" content="AttrRes"> |
| <meta itemprop="property" content="BinderThread"> |
| <meta itemprop="property" content="BoolRes"> |
| <meta itemprop="property" content="CallSuper"> |
| <meta itemprop="property" content="CheckResult"> |
| <meta itemprop="property" content="ChecksSdkIntAtLeast"> |
| <meta itemprop="property" content="ColorInt"> |
| <meta itemprop="property" content="ColorLong"> |
| <meta itemprop="property" content="ColorRes"> |
| <meta itemprop="property" content="ContentView"> |
| <meta itemprop="property" content="DeprecatedSinceApi"> |
| <meta itemprop="property" content="DimenRes"> |
| <meta itemprop="property" content="Dimension"> |
| <meta itemprop="property" content="Discouraged"> |
| <meta itemprop="property" content="DisplayContext"> |
| <meta itemprop="property" content="DoNotInline"> |
| <meta itemprop="property" content="DrawableRes"> |
| <meta itemprop="property" content="EmptySuper"> |
| <meta itemprop="property" content="FloatRange"> |
| <meta itemprop="property" content="FontRes"> |
| <meta itemprop="property" content="FractionRes"> |
| <meta itemprop="property" content="GravityInt"> |
| <meta itemprop="property" content="GuardedBy"> |
| <meta itemprop="property" content="HalfFloat"> |
| <meta itemprop="property" content="IdRes"> |
| <meta itemprop="property" content="InspectableProperty"> |
| <meta itemprop="property" content="EnumEntry"> |
| <meta itemprop="property" content="FlagEntry"> |
| <meta itemprop="property" content="IntDef"> |
| <meta itemprop="property" content="IntRange"> |
| <meta itemprop="property" content="IntegerRes"> |
| <meta itemprop="property" content="InterpolatorRes"> |
| <meta itemprop="property" content="Keep"> |
| <meta itemprop="property" content="LayoutRes"> |
| <meta itemprop="property" content="LongDef"> |
| <meta itemprop="property" content="MainThread"> |
| <meta itemprop="property" content="MenuRes"> |
| <meta itemprop="property" content="NavigationRes"> |
| <meta itemprop="property" content="NonNull"> |
| <meta itemprop="property" content="NonUiContext"> |
| <meta itemprop="property" content="Nullable"> |
| <meta itemprop="property" content="OpenForTesting"> |
| <meta itemprop="property" content="PluralsRes"> |
| <meta itemprop="property" content="Px"> |
| <meta itemprop="property" content="RawRes"> |
| <meta itemprop="property" content="RequiresApi"> |
| <meta itemprop="property" content="RequiresExtension"> |
| <meta itemprop="property" content="RequiresFeature"> |
| <meta itemprop="property" content="RequiresPermission"> |
| <meta itemprop="property" content="Read"> |
| <meta itemprop="property" content="Write"> |
| <meta itemprop="property" content="RestrictTo"> |
| <meta itemprop="property" content="ReturnThis"> |
| <meta itemprop="property" content="Size"> |
| <meta itemprop="property" content="StringDef"> |
| <meta itemprop="property" content="StringRes"> |
| <meta itemprop="property" content="StyleRes"> |
| <meta itemprop="property" content="StyleableRes"> |
| <meta itemprop="property" content="TransitionRes"> |
| <meta itemprop="property" content="UiContext"> |
| <meta itemprop="property" content="UiThread"> |
| <meta itemprop="property" content="VisibleForTesting"> |
| <meta itemprop="property" content="WorkerThread"> |
| <meta itemprop="property" content="XmlRes"> |
| <meta itemprop="language" content="JAVA"> |
| </div> |
| <div id="header-block"> |
| <div> |
| <h1>androidx.annotation</h1> |
| </div> |
| </div> |
| <div id="refdoc-switcher-placeholder"></div> |
| <h2>Annotations</h2> |
| <div class="devsite-table-wrapper"> |
| <table class="responsive"> |
| <colgroup> |
| <col width="40%"> |
| <col> |
| </colgroup> |
| <tbody class="list"> |
| <tr> |
| <td><code><a href="/reference/androidx/annotation/AnimRes.html">AnimRes</a></code></td> |
| <td> |
| <p>Denotes that an integer parameter, field or method return value is expected to be an anim resource reference (e.g. <code>android.R.anim.fade_in</code>).</p> |
| </td> |
| </tr> |
| <tr> |
| <td><code><a href="/reference/androidx/annotation/AnimatorRes.html">AnimatorRes</a></code></td> |
| <td> |
| <p>Denotes that an integer parameter, field or method return value is expected to be an animator resource reference (e.g. <code>android.R.animator.fade_in</code>).</p> |
| </td> |
| </tr> |
| <tr> |
| <td><code><a href="/reference/androidx/annotation/AnyRes.html">AnyRes</a></code></td> |
| <td> |
| <p>Denotes that an integer parameter, field or method return value is expected to be a resource reference of any type.</p> |
| </td> |
| </tr> |
| <tr> |
| <td><code><a href="/reference/androidx/annotation/AnyThread.html">AnyThread</a></code></td> |
| <td> |
| <p>Denotes that the annotated method can be called from any thread (e.g. it is "thread safe".) If the annotated element is a class, then all methods in the class can be called from any thread.</p> |
| </td> |
| </tr> |
| <tr> |
| <td><code><a href="/reference/androidx/annotation/ArrayRes.html">ArrayRes</a></code></td> |
| <td> |
| <p>Denotes that an integer parameter, field or method return value is expected to be an array resource reference (e.g. <code>android.R.array.phoneTypes</code>).</p> |
| </td> |
| </tr> |
| <tr> |
| <td><code><a href="/reference/androidx/annotation/AttrRes.html">AttrRes</a></code></td> |
| <td> |
| <p>Denotes that an integer parameter, field or method return value is expected to be an attribute reference (e.g. <code>android.R.attr.action</code>).</p> |
| </td> |
| </tr> |
| <tr> |
| <td><code><a href="/reference/androidx/annotation/BinderThread.html">BinderThread</a></code></td> |
| <td> |
| <p>Denotes that the annotated method should only be called on the binder thread.</p> |
| </td> |
| </tr> |
| <tr> |
| <td><code><a href="/reference/androidx/annotation/BoolRes.html">BoolRes</a></code></td> |
| <td> |
| <p>Denotes that an integer parameter, field or method return value is expected to be a boolean resource reference.</p> |
| </td> |
| </tr> |
| <tr> |
| <td><code><a href="/reference/androidx/annotation/CallSuper.html">CallSuper</a></code></td> |
| <td> |
| <p>Denotes that any overriding methods should invoke this method as well.</p> |
| </td> |
| </tr> |
| <tr> |
| <td><code><a href="/reference/androidx/annotation/CheckResult.html">CheckResult</a></code></td> |
| <td> |
| <p>Denotes that the annotated method returns a result that it typically is an error to ignore.</p> |
| </td> |
| </tr> |
| <tr> |
| <td><code><a href="/reference/androidx/annotation/ChecksSdkIntAtLeast.html">ChecksSdkIntAtLeast</a></code></td> |
| <td> |
| <p>Denotes that the annotated method checks if the SDK_INT API level is at least the given value, and either returns it or executes the given lambda in that case (or if it's a field, has the value true).</p> |
| </td> |
| </tr> |
| <tr> |
| <td><code><a href="/reference/androidx/annotation/ColorInt.html">ColorInt</a></code></td> |
| <td> |
| <p>Denotes that the annotated element represents a packed color int, <code>AARRGGBB</code>.</p> |
| </td> |
| </tr> |
| <tr> |
| <td><code><a href="/reference/androidx/annotation/ColorLong.html">ColorLong</a></code></td> |
| <td> |
| <p>Denotes that the annotated element represents a packed color long.</p> |
| </td> |
| </tr> |
| <tr> |
| <td><code><a href="/reference/androidx/annotation/ColorRes.html">ColorRes</a></code></td> |
| <td> |
| <p>Denotes that an integer parameter, field or method return value is expected to be a color resource reference (e.g. <code>android.R.color.black</code>).</p> |
| </td> |
| </tr> |
| <tr> |
| <td><code><a href="/reference/androidx/annotation/ContentView.html">ContentView</a></code></td> |
| <td> |
| <p>Annotation that can be attached to a constructor with a single <code><a href="/reference/androidx/annotation/LayoutRes.html">LayoutRes</a></code> parameter to denote what layout the component intends to inflate and set as its content.</p> |
| </td> |
| </tr> |
| <tr> |
| <td><code><a href="/reference/androidx/annotation/DeprecatedSinceApi.html">DeprecatedSinceApi</a></code></td> |
| <td> |
| <p>Denotes that this API is only useful until the given API level; after that, a more suitable platform API is available.</p> |
| </td> |
| </tr> |
| <tr> |
| <td><code><a href="/reference/androidx/annotation/DimenRes.html">DimenRes</a></code></td> |
| <td> |
| <p>Denotes that an integer parameter, field or method return value is expected to be a dimension resource reference (e.g. <code>android.R.dimen.app_icon_size</code>).</p> |
| </td> |
| </tr> |
| <tr> |
| <td><code><a href="/reference/androidx/annotation/Dimension.html">Dimension</a></code></td> |
| <td> |
| <p>Denotes that an integer parameter, field or method return value is expected to represent a dimension.</p> |
| </td> |
| </tr> |
| <tr> |
| <td><code><a href="/reference/androidx/annotation/Discouraged.html">Discouraged</a></code></td> |
| <td> |
| <p>Denotes that the annotated element, while not disallowed or deprecated, is one that programmers are generally discouraged from using.</p> |
| </td> |
| </tr> |
| <tr> |
| <td><code><a href="/reference/androidx/annotation/DisplayContext.html">DisplayContext</a></code></td> |
| <td> |
| <p>Denotes a <code><a href="https://developer.android.com/reference/android/content/Context.html">android.content.Context</a></code> that is tied to a <code><a href="https://developer.android.com/reference/android/view/Display.html">android.view.Display</a></code> and can be used to obtain one via <code><a href="https://developer.android.com/reference/android/content/Context.html#getDisplay()">android.content.Context.getDisplay</a></code>.</p> |
| </td> |
| </tr> |
| <tr> |
| <td><code><a href="/reference/androidx/annotation/DoNotInline.html">DoNotInline</a></code></td> |
| <td> |
| <p>Denotes that the annotated method should not be inlined when the code is optimized at build time.</p> |
| </td> |
| </tr> |
| <tr> |
| <td><code><a href="/reference/androidx/annotation/DrawableRes.html">DrawableRes</a></code></td> |
| <td> |
| <p>Denotes that an integer parameter, field or method return value is expected to be a drawable resource reference (e.g. <code>android.R.attr.alertDialogIcon</code>).</p> |
| </td> |
| </tr> |
| <tr> |
| <td><code><a href="/reference/androidx/annotation/EmptySuper.html">EmptySuper</a></code></td> |
| <td> |
| <p>Denotes that any overriding methods should <b>not</b> invoke this method, since it is defined to be empty (or perhaps contain other code not intended to be run when overridden).</p> |
| </td> |
| </tr> |
| <tr> |
| <td><code><a href="/reference/androidx/annotation/FloatRange.html">FloatRange</a></code></td> |
| <td> |
| <p>Denotes that the annotated element should be a float or double in the given range</p> |
| </td> |
| </tr> |
| <tr> |
| <td><code><a href="/reference/androidx/annotation/FontRes.html">FontRes</a></code></td> |
| <td> |
| <p>Denotes that an integer parameter, field or method return value is expected to be a font resource reference (e.g.</p> |
| </td> |
| </tr> |
| <tr> |
| <td><code><a href="/reference/androidx/annotation/FractionRes.html">FractionRes</a></code></td> |
| <td> |
| <p>Denotes that an integer parameter, field or method return value is expected to be a fraction resource reference.</p> |
| </td> |
| </tr> |
| <tr> |
| <td><code><a href="/reference/androidx/annotation/GravityInt.html">GravityInt</a></code></td> |
| <td> |
| <p>Denotes that the annotated element represents a packed gravity int.</p> |
| </td> |
| </tr> |
| <tr> |
| <td><code><a href="/reference/androidx/annotation/GuardedBy.html">GuardedBy</a></code></td> |
| <td> |
| <p>Denotes that the annotated method or field can only be accessed when holding the referenced lock.</p> |
| </td> |
| </tr> |
| <tr> |
| <td><code><a href="/reference/androidx/annotation/HalfFloat.html">HalfFloat</a></code></td> |
| <td> |
| <p>Denotes that the annotated element represents a half-precision floating point value.</p> |
| </td> |
| </tr> |
| <tr> |
| <td><code><a href="/reference/androidx/annotation/IdRes.html">IdRes</a></code></td> |
| <td> |
| <p>Denotes that an integer parameter, field or method return value is expected to be an id resource reference (e.g. <code>android.R.id.copy</code>).</p> |
| </td> |
| </tr> |
| <tr> |
| <td><code><a href="/reference/androidx/annotation/InspectableProperty.html">InspectableProperty</a></code></td> |
| <td> |
| <p><strong>This annotation is deprecated.</strong> Replaced by the {@code androidx.resourceinpsection} package.</p> |
| </td> |
| </tr> |
| <tr> |
| <td><code><a href="/reference/androidx/annotation/InspectableProperty.EnumEntry.html">InspectableProperty.EnumEntry</a></code></td> |
| <td> |
| <p>One entry in an enumeration packed into a primitive {int}.</p> |
| </td> |
| </tr> |
| <tr> |
| <td><code><a href="/reference/androidx/annotation/InspectableProperty.FlagEntry.html">InspectableProperty.FlagEntry</a></code></td> |
| <td> |
| <p>One flag value of many that may be packed into a primitive {int}.</p> |
| </td> |
| </tr> |
| <tr> |
| <td><code><a href="/reference/androidx/annotation/IntDef.html">IntDef</a></code></td> |
| <td> |
| <p>Denotes that the annotated element of integer type, represents a logical type and that its value should be one of the explicitly named constants.</p> |
| </td> |
| </tr> |
| <tr> |
| <td><code><a href="/reference/androidx/annotation/IntRange.html">IntRange</a></code></td> |
| <td> |
| <p>Denotes that the annotated element should be an int or long in the given range.</p> |
| </td> |
| </tr> |
| <tr> |
| <td><code><a href="/reference/androidx/annotation/IntegerRes.html">IntegerRes</a></code></td> |
| <td> |
| <p>Denotes that an integer parameter, field or method return value is expected to be an integer resource reference (e.g. <code>android.R.integer.config_shortAnimTime</code>).</p> |
| </td> |
| </tr> |
| <tr> |
| <td><code><a href="/reference/androidx/annotation/InterpolatorRes.html">InterpolatorRes</a></code></td> |
| <td> |
| <p>Denotes that an integer parameter, field or method return value is expected to be an interpolator resource reference (e.g. <code>android.R.interpolator.cycle</code>).</p> |
| </td> |
| </tr> |
| <tr> |
| <td><code><a href="/reference/androidx/annotation/Keep.html">Keep</a></code></td> |
| <td> |
| <p>Denotes that the annotated element should not be removed when the code is minified at build time.</p> |
| </td> |
| </tr> |
| <tr> |
| <td><code><a href="/reference/androidx/annotation/LayoutRes.html">LayoutRes</a></code></td> |
| <td> |
| <p>Denotes that an integer parameter, field or method return value is expected to be a layout resource reference (e.g. <code>android.R.layout.list_content</code>).</p> |
| </td> |
| </tr> |
| <tr> |
| <td><code><a href="/reference/androidx/annotation/LongDef.html">LongDef</a></code></td> |
| <td> |
| <p>Denotes that the annotated long element represents a logical type and that its value should be one of the explicitly named constants.</p> |
| </td> |
| </tr> |
| <tr> |
| <td><code><a href="/reference/androidx/annotation/MainThread.html">MainThread</a></code></td> |
| <td> |
| <p>Denotes that the annotated method should only be called on the main thread.</p> |
| </td> |
| </tr> |
| <tr> |
| <td><code><a href="/reference/androidx/annotation/MenuRes.html">MenuRes</a></code></td> |
| <td> |
| <p>Denotes that an integer parameter, field or method return value is expected to be a menu resource reference.</p> |
| </td> |
| </tr> |
| <tr> |
| <td><code><a href="/reference/androidx/annotation/NavigationRes.html">NavigationRes</a></code></td> |
| <td> |
| <p>Denotes that an integer parameter, field or method return value is expected to be a navigation resource reference (e.g.</p> |
| </td> |
| </tr> |
| <tr> |
| <td><code><a href="/reference/androidx/annotation/NonNull.html">NonNull</a></code></td> |
| <td> |
| <p>Denotes that a parameter, field or method return value can never be null.</p> |
| </td> |
| </tr> |
| <tr> |
| <td><code><a href="/reference/androidx/annotation/NonUiContext.html">NonUiContext</a></code></td> |
| <td> |
| <p>Denotes a <code><a href="https://developer.android.com/reference/android/content/Context.html">android.content.Context</a></code> that <b>can not</b> be used to obtain a <code><a href="https://developer.android.com/reference/android/view/Display.html">android.view.Display</a></code> via <code><a href="https://developer.android.com/reference/android/content/Context.html#getDisplay()">android.content.Context.getDisplay</a></code> nor to obtain an instance of a visual service, such a <code><a href="https://developer.android.com/reference/android/view/WindowManager.html">android.view.WindowManager</a></code>, <code><a href="https://developer.android.com/reference/android/view/LayoutInflater.html">android.view.LayoutInflater</a></code> or <code><a href="https://developer.android.com/reference/android/app/WallpaperManager.html">android.app.WallpaperManager</a></code> via <code><a href="https://developer.android.com/reference/android/content/Context.html#getSystemService(kotlin.String)">android.content.Context.getSystemService</a></code>.</p> |
| </td> |
| </tr> |
| <tr> |
| <td><code><a href="/reference/androidx/annotation/Nullable.html">Nullable</a></code></td> |
| <td> |
| <p>Denotes that a parameter, field or method return value can be null.</p> |
| </td> |
| </tr> |
| <tr> |
| <td><code><a href="/reference/androidx/annotation/OpenForTesting.html">OpenForTesting</a></code></td> |
| <td> |
| <p>Denotes that this class or method is only <code>open</code> to allow unit testing.</p> |
| </td> |
| </tr> |
| <tr> |
| <td><code><a href="/reference/androidx/annotation/PluralsRes.html">PluralsRes</a></code></td> |
| <td> |
| <p>Denotes that an integer parameter, field or method return value is expected to be a plurals resource reference.</p> |
| </td> |
| </tr> |
| <tr> |
| <td><code><a href="/reference/androidx/annotation/Px.html">Px</a></code></td> |
| <td> |
| <p>Denotes that an integer parameter, field or method return value is expected to represent a pixel dimension.</p> |
| </td> |
| </tr> |
| <tr> |
| <td><code><a href="/reference/androidx/annotation/RawRes.html">RawRes</a></code></td> |
| <td> |
| <p>Denotes that an integer parameter, field or method return value is expected to be a raw resource reference.</p> |
| </td> |
| </tr> |
| <tr> |
| <td><code><a href="/reference/androidx/annotation/RequiresApi.html">RequiresApi</a></code></td> |
| <td> |
| <p>Denotes that the annotated element should only be called on the given API level or higher.</p> |
| </td> |
| </tr> |
| <tr> |
| <td><code><a href="/reference/androidx/annotation/RequiresExtension.html">RequiresExtension</a></code></td> |
| <td> |
| <p>Denotes that the annotated element should only be called if the given extension is at least the given version.</p> |
| </td> |
| </tr> |
| <tr> |
| <td><code><a href="/reference/androidx/annotation/RequiresFeature.html">RequiresFeature</a></code></td> |
| <td> |
| <p>Denotes that the annotated element requires one or more features.</p> |
| </td> |
| </tr> |
| <tr> |
| <td><code><a href="/reference/androidx/annotation/RequiresPermission.html">RequiresPermission</a></code></td> |
| <td> |
| <p>Denotes that the annotated element requires (or may require) one or more permissions.</p> |
| </td> |
| </tr> |
| <tr> |
| <td><code><a href="/reference/androidx/annotation/RequiresPermission.Read.html">RequiresPermission.Read</a></code></td> |
| <td> |
| <p>Specifies that the given permission is required for read operations.</p> |
| </td> |
| </tr> |
| <tr> |
| <td><code><a href="/reference/androidx/annotation/RequiresPermission.Write.html">RequiresPermission.Write</a></code></td> |
| <td> |
| <p>Specifies that the given permission is required for write operations.</p> |
| </td> |
| </tr> |
| <tr> |
| <td><code><a href="/reference/androidx/annotation/RestrictTo.html">RestrictTo</a></code></td> |
| <td> |
| <p>Denotes that the annotated element should only be accessed from within a specific scope (as defined by <code><a href="/reference/androidx/annotation/RestrictTo.Scope.html">Scope</a></code>).</p> |
| </td> |
| </tr> |
| <tr> |
| <td><code><a href="/reference/androidx/annotation/ReturnThis.html">ReturnThis</a></code></td> |
| <td> |
| <p>Denotes that any overriding methods should <code>return this</code>.</p> |
| </td> |
| </tr> |
| <tr> |
| <td><code><a href="/reference/androidx/annotation/Size.html">Size</a></code></td> |
| <td> |
| <p>Denotes that the annotated element should have a given size or length.</p> |
| </td> |
| </tr> |
| <tr> |
| <td><code><a href="/reference/androidx/annotation/StringDef.html">StringDef</a></code></td> |
| <td> |
| <p>Denotes that the annotated String element, represents a logical type and that its value should be one of the explicitly named constants.</p> |
| </td> |
| </tr> |
| <tr> |
| <td><code><a href="/reference/androidx/annotation/StringRes.html">StringRes</a></code></td> |
| <td> |
| <p>Denotes that an integer parameter, field or method return value is expected to be a String resource reference (e.g. <code>android.R.string.ok</code>).</p> |
| </td> |
| </tr> |
| <tr> |
| <td><code><a href="/reference/androidx/annotation/StyleRes.html">StyleRes</a></code></td> |
| <td> |
| <p>Denotes that an integer parameter, field or method return value is expected to be a style resource reference (e.g. <code>android.R.style.TextAppearance</code>).</p> |
| </td> |
| </tr> |
| <tr> |
| <td><code><a href="/reference/androidx/annotation/StyleableRes.html">StyleableRes</a></code></td> |
| <td> |
| <p>Denotes that an integer parameter, field or method return value is expected to be a styleable resource reference (e.g. <code>android.R.styleable.TextView_text</code>).</p> |
| </td> |
| </tr> |
| <tr> |
| <td><code><a href="/reference/androidx/annotation/TransitionRes.html">TransitionRes</a></code></td> |
| <td> |
| <p>Denotes that an integer parameter, field or method return value is expected to be a transition resource reference.</p> |
| </td> |
| </tr> |
| <tr> |
| <td><code><a href="/reference/androidx/annotation/UiContext.html">UiContext</a></code></td> |
| <td> |
| <p>Denotes a <code><a href="https://developer.android.com/reference/android/content/Context.html">android.content.Context</a></code> that can be used to create UI, meaning that it can provide a <code><a href="https://developer.android.com/reference/android/view/Display.html">android.view.Display</a></code> via <code><a href="https://developer.android.com/reference/android/content/Context.html#getDisplay()">android.content.Context.getDisplay</a></code> and can be used to obtain an instance of a UI-related service, such as <code><a href="https://developer.android.com/reference/android/view/WindowManager.html">android.view.WindowManager</a></code>, <code><a href="https://developer.android.com/reference/android/view/LayoutInflater.html">android.view.LayoutInflater</a></code> or <code><a href="https://developer.android.com/reference/android/app/WallpaperManager.html">android.app.WallpaperManager</a></code> via <code><a href="https://developer.android.com/reference/android/content/Context.html#getSystemService(kotlin.String)">android.content.Context.getSystemService</a></code>.</p> |
| </td> |
| </tr> |
| <tr> |
| <td><code><a href="/reference/androidx/annotation/UiThread.html">UiThread</a></code></td> |
| <td> |
| <p>Denotes that the annotated method or constructor should only be called on the UI thread.</p> |
| </td> |
| </tr> |
| <tr> |
| <td><code><a href="/reference/androidx/annotation/VisibleForTesting.html">VisibleForTesting</a></code></td> |
| <td> |
| <p>Denotes that the class, method or field has its visibility relaxed, so that it is more widely visible than otherwise necessary to make code testable.</p> |
| </td> |
| </tr> |
| <tr> |
| <td><code><a href="/reference/androidx/annotation/WorkerThread.html">WorkerThread</a></code></td> |
| <td> |
| <p>Denotes that the annotated method should only be called on a worker thread.</p> |
| </td> |
| </tr> |
| <tr> |
| <td><code><a href="/reference/androidx/annotation/XmlRes.html">XmlRes</a></code></td> |
| <td> |
| <p>Denotes that an integer parameter, field or method return value is expected to be an XML resource reference.</p> |
| </td> |
| </tr> |
| </tbody> |
| </table> |
| </div> |
| <h2>Enums</h2> |
| <div class="devsite-table-wrapper"> |
| <table class="responsive"> |
| <colgroup> |
| <col width="40%"> |
| <col> |
| </colgroup> |
| <tbody class="list"> |
| <tr> |
| <td><code><a href="/reference/androidx/annotation/InspectableProperty.ValueType.html">InspectableProperty.ValueType</a></code></td> |
| <td> |
| <p>The type of value packed into a primitive {int}.</p> |
| </td> |
| </tr> |
| <tr> |
| <td><code><a href="/reference/androidx/annotation/RestrictTo.Scope.html">RestrictTo.Scope</a></code></td> |
| <td></td> |
| </tr> |
| </tbody> |
| </table> |
| </div> |
| </body> |
| </html> |