# UiMediaScope.ViewingDistance

Artifact: [androidx.compose.ui:ui](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/MediaQuery.kt+class:androidx.compose.ui.UiMediaScope.ViewingDistance) Added in [1.11.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.11.0) Common/AllAndroid/JVM
- Cmn

  ```
  @ExperimentalMediaQueryApi
  value class UiMediaScope.ViewingDistance
  ```

*** ** * ** ***

Describes the typical distance between the user and the screen.

## Summary

| ### Public companion properties |
|---|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/UiMediaScope.ViewingDistance` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/UiMediaScope.ViewingDistance#Far()` Represents a device viewed from a significant distance, such as a television. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/UiMediaScope.ViewingDistance` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/UiMediaScope.ViewingDistance#Medium()` Represents a device positioned slightly further away, such as an automotive device, or a tablet in a dock mode. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/UiMediaScope.ViewingDistance` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/UiMediaScope.ViewingDistance#Near()` Represents a device used within close range, such as a handheld phone, tablet, laptop, or desktop monitor. | Cmn |

| ### Public functions |
|---|---|---|
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/UiMediaScope.ViewingDistance#toString()()` | Cmn |

## Public companion properties

### Far

Cmn

```
val Far: UiMediaScope.ViewingDistance
```

Represents a device viewed from a significant distance, such as a television.

### Medium

Cmn

```
val Medium: UiMediaScope.ViewingDistance
```

Represents a device positioned slightly further away, such as an automotive device, or a tablet in a dock mode.

### Near

Cmn

```
val Near: UiMediaScope.ViewingDistance
```

Represents a device used within close range, such as a handheld phone, tablet, laptop, or desktop monitor. This is the default for most personal devices.

## Public functions

### toString

Cmn

```
open fun toString(): String
```