# DepthEstimationMode

Artifact: [androidx.xr.runtime:runtime](https://developer.android.com/jetpack/androidx/releases/xr-runtime) [View Source](https://cs.android.com/search?q=file:androidx/xr/runtime/XrCapabilities.kt+class:androidx.xr.runtime.DepthEstimationMode) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/xr-runtime#1.0.0)

*** ** * ** ***


```
class DepthEstimationMode
```

<br />

*** ** * ** ***

Feature that allows more accurate information about scene depth and meshes.

## Summary

| ### Public companion properties |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/xr/runtime/DepthEstimationMode` | `https://developer.android.com/reference/kotlin/androidx/xr/runtime/DepthEstimationMode#DISABLED()` No information about scene depth will be provided. |
| `https://developer.android.com/reference/kotlin/androidx/xr/runtime/DepthEstimationMode` | `https://developer.android.com/reference/kotlin/androidx/xr/runtime/DepthEstimationMode#RAW_ONLY()` Depth estimation will be enabled with raw depth and confidence. |
| `https://developer.android.com/reference/kotlin/androidx/xr/runtime/DepthEstimationMode` | `https://developer.android.com/reference/kotlin/androidx/xr/runtime/DepthEstimationMode#SMOOTH_AND_RAW()` Depth estimation will be enabled with both raw and smooth depth and confidence. |
| `https://developer.android.com/reference/kotlin/androidx/xr/runtime/DepthEstimationMode` | `https://developer.android.com/reference/kotlin/androidx/xr/runtime/DepthEstimationMode#SMOOTH_ONLY()` Depth estimation will be enabled with smooth depth and confidence. |

| ### Public functions |
|---|---|
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/androidx/xr/runtime/DepthEstimationMode#toString()()` Returns a string representation of `https://developer.android.com/reference/kotlin/androidx/xr/runtime/DepthEstimationMode` for debugging. |

| ### Public properties |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/xr/runtime/DepthEstimationMode#mode()` |

## Public companion properties

### DISABLED

```
val DISABLED: DepthEstimationMode
```

No information about scene depth will be provided.

### RAW_ONLY

```
val RAW_ONLY: DepthEstimationMode
```

Depth estimation will be enabled with raw depth and confidence.

Supported runtimes:

- OpenXR

- Play Services (on supported devices)

Required permissions:

- `https://developer.android.com/reference/kotlin/androidx/xr/runtime/manifest/package-summary#SCENE_UNDERSTANDING_FINE()` (OpenXR runtimes only)

- `https://developer.android.com/reference/android/Manifest.permission.html#CAMERA` (Play Services runtimes only)

### SMOOTH_AND_RAW

```
val SMOOTH_AND_RAW: DepthEstimationMode
```

Depth estimation will be enabled with both raw and smooth depth and confidence. Note that setting this mode will consume additional runtime resources.

Supported runtimes:

- Play Services (on supported devices)

Required permissions:

- `https://developer.android.com/reference/android/Manifest.permission.html#CAMERA` (Play Services runtimes only)

### SMOOTH_ONLY

```
val SMOOTH_ONLY: DepthEstimationMode
```

Depth estimation will be enabled with smooth depth and confidence.

Supported runtimes:

- OpenXR

- Play Services (on supported devices)

Required permissions:

- `https://developer.android.com/reference/kotlin/androidx/xr/runtime/manifest/package-summary#SCENE_UNDERSTANDING_FINE()` (OpenXR runtimes only)

- `https://developer.android.com/reference/android/Manifest.permission.html#CAMERA` (Play Services runtimes only)

## Public functions

### toString

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

Returns a string representation of `https://developer.android.com/reference/kotlin/androidx/xr/runtime/DepthEstimationMode` for debugging.

Note: Not intended for production use.

## Public properties

### mode

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/xr-runtime#1.0.0)

```
val mode: Int
```