# NonUiContext

Artifact: [androidx.annotation:annotation](https://developer.android.com/jetpack/androidx/releases/annotation) [View Source](https://cs.android.com/search?q=file:androidx/annotation/NonUiContext.jvm.kt+class:androidx.annotation.NonUiContext) Added in [1.3.0](https://developer.android.com/jetpack/androidx/releases/annotation#1.3.0)

*** ** * ** ***

Common/AllAndroid/JVM
- android

  ```
  @Retention(value = AnnotationRetention.SOURCE)
  @Target(allowedTargets = [AnnotationTarget.ANNOTATION_CLASS, AnnotationTarget.CLASS, AnnotationTarget.FUNCTION, AnnotationTarget.PROPERTY_GETTER, AnnotationTarget.PROPERTY_SETTER, AnnotationTarget.VALUE_PARAMETER, AnnotationTarget.FIELD])
  annotation NonUiContext
  ```

*** ** * ** ***

Denotes a `https://developer.android.com/reference/android/content/Context.html` that **can not** be used to obtain a `https://developer.android.com/reference/android/view/Display.html` via `https://developer.android.com/reference/android/content/Context.html#getDisplay()` nor to obtain an instance of a visual service, such a `https://developer.android.com/reference/android/view/WindowManager.html`, `https://developer.android.com/reference/android/view/LayoutInflater.html` or `https://developer.android.com/reference/android/app/WallpaperManager.html` via `https://developer.android.com/reference/android/content/Context.html#getSystemService(java.lang.Class&lt;T&gt;)`.

This is a marker annotation and has no specific attributes.

| See also |
|---|---|
| `https://developer.android.com/reference/android/content/Context.html#getDisplay()` |   |
| `https://developer.android.com/reference/android/content/Context.html#getSystemService(java.lang.Class&lt;T&gt;)` |   |
| `https://developer.android.com/reference/android/content/Context.html#getSystemService(java.lang.Class&lt;T&gt;)` |   |
| `https://developer.android.com/reference/kotlin/androidx/annotation/UiContext` |   |
| `https://developer.android.com/reference/kotlin/androidx/annotation/DisplayContext` |   |

## Summary

| ### Public constructors |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/annotation/NonUiContext#NonUiContext()()` | android |

## Public constructors

### NonUiContext

android

```
NonUiContext()
```