# TestAugmentedObject

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

*** ** * ** ***


```
public final class TestAugmentedObject 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.TestAugmentedObject](https://developer.android.com/reference/androidx/xr/arcore/testing/TestAugmentedObject) |

*** ** * ** ***

A representation of a real-world object of an `https://developer.android.com/reference/androidx/xr/runtime/AugmentedObjectCategory` in the test environment.

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/androidx/xr/arcore/testing/TestAugmentedObject#TestAugmentedObject(androidx.xr.runtime.AugmentedObjectCategory)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/xr/runtime/AugmentedObjectCategory category)` |

| ### Public methods |
|---|---|
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/xr/runtime/AugmentedObjectCategory` | `https://developer.android.com/reference/androidx/xr/arcore/testing/TestAugmentedObject#getCategory()()` the `https://developer.android.com/reference/androidx/xr/runtime/AugmentedObjectCategory` that describes the object |
| `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/TestAugmentedObject#getCenterPose()()` `https://developer.android.com/reference/androidx/xr/runtime/math/Pose` at the center of the augmented object |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/xr/runtime/math/FloatSize3d` | `https://developer.android.com/reference/androidx/xr/arcore/testing/TestAugmentedObject#getExtents()()` the `https://developer.android.com/reference/androidx/xr/runtime/math/FloatSize3d` extents used to determine the size of the object |
| `boolean` | `https://developer.android.com/reference/androidx/xr/arcore/testing/TestAugmentedObject#isVisible()()` indicates whether the trackable object is currently in view of the runtime |
| `final void` | `https://developer.android.com/reference/androidx/xr/arcore/testing/TestAugmentedObject#setCategory(androidx.xr.runtime.AugmentedObjectCategory)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/xr/runtime/AugmentedObjectCategory value)` the `https://developer.android.com/reference/androidx/xr/runtime/AugmentedObjectCategory` that describes the object |
| `final void` | `https://developer.android.com/reference/androidx/xr/arcore/testing/TestAugmentedObject#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 object |
| `final void` | `https://developer.android.com/reference/androidx/xr/arcore/testing/TestAugmentedObject#setExtents(androidx.xr.runtime.math.FloatSize3d)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/xr/runtime/math/FloatSize3d value)` the `https://developer.android.com/reference/androidx/xr/runtime/math/FloatSize3d` extents used to determine the size of the object |
| `void` | `https://developer.android.com/reference/androidx/xr/arcore/testing/TestAugmentedObject#setVisible(kotlin.Boolean)(boolean value)` indicates whether the trackable object is currently in view of the runtime |

## Public constructors

### TestAugmentedObject

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

```
public TestAugmentedObject(@NonNull AugmentedObjectCategory category)
```

## Public methods

### getCategory

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

```
public final @NonNull AugmentedObjectCategory getCategory()
```

the `https://developer.android.com/reference/androidx/xr/runtime/AugmentedObjectCategory` that describes the object

### 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 object

### getExtents

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

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

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

### isVisible

```
public boolean isVisible()
```

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

### setCategory

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

```
public final void setCategory(@NonNull AugmentedObjectCategory value)
```

the `https://developer.android.com/reference/androidx/xr/runtime/AugmentedObjectCategory` that describes the object

### 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 object

### setExtents

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

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

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

### setVisible

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

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