# ArDeviceTester

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

*** ** * ** ***


```
public final class ArDeviceTester
```

<br />

*** ** * ** ***

Controls simulated device in unit tests.

## Summary

| ### Public methods |
|---|---|
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/xr/runtime/math/Pose` | `https://developer.android.com/reference/androidx/xr/arcore/testing/ArDeviceTester#getPose()()` the current pose of the device |
| `final boolean` | `https://developer.android.com/reference/androidx/xr/arcore/testing/ArDeviceTester#isCameraTracking()()` whether the AR Device is currently tracking the environment |
| `final void` | `https://developer.android.com/reference/androidx/xr/arcore/testing/ArDeviceTester#setCameraTracking(kotlin.Boolean)(boolean value)` whether the AR Device is currently tracking the environment |
| `final void` | `https://developer.android.com/reference/androidx/xr/arcore/testing/ArDeviceTester#setPose(androidx.xr.runtime.math.Pose)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/xr/runtime/math/Pose value)` the current pose of the device |

## Public methods

### getPose

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

```
public final @NonNull Pose getPose()
```

the current pose of the device

### isCameraTracking

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

```
public final boolean isCameraTracking()
```

whether the AR Device is currently tracking the environment

### setCameraTracking

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

```
public final void setCameraTracking(boolean value)
```

whether the AR Device is currently tracking the environment

### setPose

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

```
public final void setPose(@NonNull Pose value)
```

the current pose of the device