# PlaneTrackingMode

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.PlaneTrackingMode) Added in [1.0.0-beta02](https://developer.android.com/jetpack/androidx/releases/xr-runtime#1.0.0-beta02)

*** ** * ** ***


```
public final class PlaneTrackingMode
```

<br />

*** ** * ** ***

Feature that allows tracking of and provides information about scene planes.

## Summary

| ### Public fields |
|---|---|
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/xr/runtime/PlaneTrackingMode` | `https://developer.android.com/reference/androidx/xr/runtime/PlaneTrackingMode#DISABLED()` Planes will not be tracked. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/xr/runtime/PlaneTrackingMode` | `https://developer.android.com/reference/androidx/xr/runtime/PlaneTrackingMode#HORIZONTAL_AND_VERTICAL()` Horizontal and vertical planes will be tracked. |

| ### Public methods |
|---|---|
| `final int` | `https://developer.android.com/reference/androidx/xr/runtime/PlaneTrackingMode#getMode()()` |
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/xr/runtime/PlaneTrackingMode#toString()()` Returns a string representation of `https://developer.android.com/reference/androidx/xr/runtime/PlaneTrackingMode` for debugging. |

## Public fields

### DISABLED

```
public static final @NonNull PlaneTrackingMode DISABLED
```

Planes will not be tracked.

### HORIZONTAL_AND_VERTICAL

```
public static final @NonNull PlaneTrackingMode HORIZONTAL_AND_VERTICAL
```

Horizontal and vertical planes will be tracked. Note that setting this mode will consume additional runtime resources.

Supported runtimes:

- OpenXR

- Play Services

Required permissions:

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

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

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

## Public methods

### getMode

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

```
public final int getMode()
```

### toString

```
public @NonNull String toString()
```

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

Note: Not intended for production use.