# Trackable

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

*** ** * ** ***


```
interface Trackable<State : Any?>
```

<br />

Known direct subclasses [Anchorable](https://developer.android.com/reference/kotlin/androidx/xr/arcore/Anchorable), [Anchor](https://developer.android.com/reference/kotlin/androidx/xr/arcore/Anchor), [ArDevice](https://developer.android.com/reference/kotlin/androidx/xr/arcore/ArDevice), [AugmentedImage](https://developer.android.com/reference/kotlin/androidx/xr/arcore/AugmentedImage), [AugmentedObject](https://developer.android.com/reference/kotlin/androidx/xr/arcore/AugmentedObject), [Eye](https://developer.android.com/reference/kotlin/androidx/xr/arcore/Eye), [Face](https://developer.android.com/reference/kotlin/androidx/xr/arcore/Face), [Hand](https://developer.android.com/reference/kotlin/androidx/xr/arcore/Hand), [QrCode](https://developer.android.com/reference/kotlin/androidx/xr/arcore/QrCode), [SpatialAnnotation](https://developer.android.com/reference/kotlin/androidx/xr/arcore/SpatialAnnotation)

|---|---|
| `https://developer.android.com/reference/kotlin/androidx/xr/arcore/Anchorable` | Trackable object that can have an `https://developer.android.com/reference/kotlin/androidx/xr/arcore/Anchor` attached. |
| `https://developer.android.com/reference/kotlin/androidx/xr/arcore/Anchor` | An anchor describes a fixed location and orientation in the real world. |
| `https://developer.android.com/reference/kotlin/androidx/xr/arcore/ArDevice` | Contains the information of the device that locates it with respect to the real world. |
| `https://developer.android.com/reference/kotlin/androidx/xr/arcore/AugmentedImage` | Describes the system's current best knowledge of a real-world image |
| `https://developer.android.com/reference/kotlin/androidx/xr/arcore/AugmentedObject` | A representation of a physical object in real space. |
| `https://developer.android.com/reference/kotlin/androidx/xr/arcore/Eye` | A representation of a user's eye. |
| `https://developer.android.com/reference/kotlin/androidx/xr/arcore/Face` | Contains the tracking information of a detected human face. |
| `https://developer.android.com/reference/kotlin/androidx/xr/arcore/Hand` | Contains the tracking information of one of the user's hands. |
| `https://developer.android.com/reference/kotlin/androidx/xr/arcore/QrCode` | Describes the current best knowledge of a real-world QR code |
| `https://developer.android.com/reference/kotlin/androidx/xr/arcore/SpatialAnnotation` | Base class for all tracked Spatial Annotations (Quads, Points, Masks, etc.). |

Known indirect subclasses [Plane](https://developer.android.com/reference/kotlin/androidx/xr/arcore/Plane)

|---|---|
| `https://developer.android.com/reference/kotlin/androidx/xr/arcore/Plane` | Describes the system's current best knowledge of a real-world planar surface. |

*** ** * ** ***

An object that ARCore for Jetpack XR can track.

## Summary

| ### Nested types |
|---|
| `interface https://developer.android.com/reference/kotlin/androidx/xr/arcore/Trackable.State` The subset of data that is common to the state of all `https://developer.android.com/reference/kotlin/androidx/xr/arcore/Trackable` instances. |

| ### Public properties |
|---|---|
| `https://kotlinlang.org/api/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines.flow/-state-flow/index.html<https://developer.android.com/reference/kotlin/androidx/xr/arcore/Trackable.State>` | `https://developer.android.com/reference/kotlin/androidx/xr/arcore/Trackable#state()` Emits the current state of this trackable. |

## Public properties

### state

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

```
val state: StateFlow<Trackable.State>
```

Emits the current state of this trackable.