| <html devsite="true"> |
| <head> |
| <title>NonUiContext</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="NonUiContext"> |
| <meta itemprop="path" content="androidx.annotation"> |
| <meta itemprop="language" content="JAVA"> |
| </div> |
| <div id="header-block"> |
| <div> |
| <h1>NonUiContext</h1> |
| </div> |
| <div id="metadata-info-block"> |
| <div id="source-link"><a href="https://cs.android.com/search?q=file:androidx/annotation/NonUiContext.kt+class:androidx.annotation.NonUiContext&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/-retention/index.html">Retention</a>(value = AnnotationRetention.SOURCE)<br>@<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.annotation/-target/index.html">Target</a>(allowedTargets = [AnnotationTarget.ANNOTATION_CLASS, AnnotationTarget.CLASS, AnnotationTarget.FUNCTION, AnnotationTarget.PROPERTY_GETTER, AnnotationTarget.PROPERTY_SETTER, AnnotationTarget.VALUE_PARAMETER, AnnotationTarget.FIELD])<br>public annotation <a href="/reference/androidx/annotation/NonUiContext.html">NonUiContext</a></pre> |
| </p> |
| <hr> |
| <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> |
| <p>This is a marker annotation and has no specific attributes.</p> |
| <div class="devsite-table-wrapper"> |
| <table class="responsive"> |
| <colgroup> |
| <col width="40%"> |
| <col> |
| </colgroup> |
| <thead> |
| <tr> |
| <th colspan="100%">See also</th> |
| </tr> |
| </thead> |
| <tbody class="list"> |
| <tr> |
| <td><code><a href="https://developer.android.com/reference/android/content/Context.html#getDisplay()">getDisplay</a></code></td> |
| <td></td> |
| </tr> |
| <tr> |
| <td><code><a href="https://developer.android.com/reference/android/content/Context.html#getSystemService(kotlin.String)">getSystemService</a></code></td> |
| <td></td> |
| </tr> |
| <tr> |
| <td><code><a href="https://developer.android.com/reference/android/content/Context.html#getSystemService(kotlin.String)">getSystemService</a></code></td> |
| <td></td> |
| </tr> |
| <tr> |
| <td><code><a href="/reference/androidx/annotation/UiContext.html">UiContext</a></code></td> |
| <td></td> |
| </tr> |
| <tr> |
| <td><code><a href="/reference/androidx/annotation/DisplayContext.html">DisplayContext</a></code></td> |
| <td></td> |
| </tr> |
| </tbody> |
| </table> |
| </div> |
| <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/NonUiContext.html#NonUiContext()">NonUiContext</a>()</code></div> |
| </td> |
| </tr> |
| </tbody> |
| </table> |
| </div> |
| <div class="list"> |
| <h2>Public constructors</h2> |
| <div class="api-item"><a name="NonUiContext--"></a><a name="nonuicontext"></a> |
| <div class="api-name-block"> |
| <div> |
| <h3 id="NonUiContext()">NonUiContext</h3> |
| </div> |
| </div> |
| <pre class="api-signature no-pretty-print">public <a href="/reference/androidx/annotation/NonUiContext.html#NonUiContext()">NonUiContext</a>()</pre> |
| </div> |
| </div> |
| </body> |
| </html> |