# TestAugmentedImage

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/TestAugmentedImage.kt+class:androidx.xr.arcore.testing.TestAugmentedImage) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/xr-arcore#1.0.0)

*** ** * ** ***


```
public final class TestAugmentedImage extends TestTrackable
```

<br />

|---|---|---|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object.html) |||
| ↳ | [androidx.xr.arcore.testing.TestTrackable](https://developer.android.com/reference/androidx/xr/arcore/testing/TestTrackable) ||
|   | ↳ | [androidx.xr.arcore.testing.TestAugmentedImage](https://developer.android.com/reference/androidx/xr/arcore/testing/TestAugmentedImage) |

*** ** * ** ***

Image in the test environment.

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/androidx/xr/arcore/testing/TestAugmentedImage#TestAugmentedImage(kotlin.Int)(int index)` |

| ### 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/TestAugmentedImage#getCenterPose()()` `https://developer.android.com/reference/androidx/xr/runtime/math/Pose` at the center of the augmented image |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/xr/runtime/math/FloatSize2d` | `https://developer.android.com/reference/androidx/xr/arcore/testing/TestAugmentedImage#getExtents()()` the `https://developer.android.com/reference/androidx/xr/runtime/math/FloatSize2d` extents used to determine the size of the image |
| `final int` | `https://developer.android.com/reference/androidx/xr/arcore/testing/TestAugmentedImage#getIndex()()` the index of the augmented image in the database |
| `boolean` | `https://developer.android.com/reference/androidx/xr/arcore/testing/TestAugmentedImage#isVisible()()` indicates whether the trackable object is currently in view of the runtime |
| `final void` | `https://developer.android.com/reference/androidx/xr/arcore/testing/TestAugmentedImage#setCenterPose(androidx.xr.runtime.math.Pose)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/xr/runtime/math/Pose value)` `https://developer.android.com/reference/androidx/xr/runtime/math/Pose` at the center of the augmented image |
| `final void` | `https://developer.android.com/reference/androidx/xr/arcore/testing/TestAugmentedImage#setExtents(androidx.xr.runtime.math.FloatSize2d)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/xr/runtime/math/FloatSize2d value)` the `https://developer.android.com/reference/androidx/xr/runtime/math/FloatSize2d` extents used to determine the size of the image |
| `final void` | `https://developer.android.com/reference/androidx/xr/arcore/testing/TestAugmentedImage#setIndex(kotlin.Int)(int value)` the index of the augmented image in the database |
| `void` | `https://developer.android.com/reference/androidx/xr/arcore/testing/TestAugmentedImage#setVisible(kotlin.Boolean)(boolean value)` indicates whether the trackable object is currently in view of the runtime |

## Public constructors

### TestAugmentedImage

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

```
public TestAugmentedImage(int index)
```

## Public methods

### getCenterPose

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

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

`https://developer.android.com/reference/androidx/xr/runtime/math/Pose` at the center of the augmented image

### getExtents

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

```
public final @NonNull FloatSize2d getExtents()
```

the `https://developer.android.com/reference/androidx/xr/runtime/math/FloatSize2d` extents used to determine the size of the image

### getIndex

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

```
public final int getIndex()
```

the index of the augmented image in the database

### isVisible

```
public boolean isVisible()
```

indicates whether the trackable object is currently in view of the runtime

### setCenterPose

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

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

`https://developer.android.com/reference/androidx/xr/runtime/math/Pose` at the center of the augmented image

### setExtents

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

```
public final void setExtents(@NonNull FloatSize2d value)
```

the `https://developer.android.com/reference/androidx/xr/runtime/math/FloatSize2d` extents used to determine the size of the image

### setIndex

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

```
public final void setIndex(int value)
```

the index of the augmented image in the database

### setVisible

```
public void setVisible(boolean value)
```

indicates whether the trackable object is currently in view of the runtime