# TestTrackable

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

*** ** * ** ***


```
public abstract class TestTrackable
```

<br />

Known direct subclasses [TestAugmentedImage](https://developer.android.com/reference/androidx/xr/arcore/testing/TestAugmentedImage), [TestAugmentedObject](https://developer.android.com/reference/androidx/xr/arcore/testing/TestAugmentedObject), [TestPlane](https://developer.android.com/reference/androidx/xr/arcore/testing/TestPlane), [TestQrCode](https://developer.android.com/reference/androidx/xr/arcore/testing/TestQrCode), [TestSpatialAnnotation](https://developer.android.com/reference/androidx/xr/arcore/testing/TestSpatialAnnotation)

|---|---|
| `https://developer.android.com/reference/androidx/xr/arcore/testing/TestAugmentedImage` | Image in the test environment. |
| `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. |
| `https://developer.android.com/reference/androidx/xr/arcore/testing/TestPlane` | Flat surface in the test environment. |
| `https://developer.android.com/reference/androidx/xr/arcore/testing/TestQrCode` | QR code in the test environment. |
| `https://developer.android.com/reference/androidx/xr/arcore/testing/TestSpatialAnnotation` | A simulated SpatialAnnotation in the test environment. |

*** ** * ** ***

Real-world object tracked by ARCore.

## Summary

| ### Public methods |
|---|---|
| `abstract boolean` | `https://developer.android.com/reference/androidx/xr/arcore/testing/TestTrackable#isVisible()()` indicates whether the trackable object is currently in view of the runtime |
| `abstract void` | `https://developer.android.com/reference/androidx/xr/arcore/testing/TestTrackable#setVisible(kotlin.Boolean)(boolean value)` indicates whether the trackable object is currently in view of the runtime |

## Public methods

### isVisible

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

```
public abstract boolean isVisible()
```

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

### setVisible

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

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

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