# Anchorable

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

*** ** * ** ***


```
public interface Anchorable<T extends Object> extends Trackable<@NonNull T>
```

<br />

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

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

*** ** * ** ***

Trackable object that can have an `https://developer.android.com/reference/androidx/xr/arcore/Anchor` attached.

## Summary

| ### Public methods |
|---|---|
| `abstract @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/xr/arcore/AnchorResult` | `https://developer.android.com/reference/androidx/xr/arcore/Anchorable#createAnchor(androidx.xr.runtime.math.Pose)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/xr/runtime/math/Pose pose)` Creates an `https://developer.android.com/reference/androidx/xr/arcore/Anchor` attached to this `https://developer.android.com/reference/androidx/xr/arcore/Trackable`. |

### Inherited methods

From [androidx.xr.arcore.Trackable](https://developer.android.com/reference/androidx/xr/arcore/Trackable) `abstract @https://developer.android.com/reference/androidx/annotation/NonNull https://kotlinlang.org/api/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines.flow/-state-flow/index.html<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/xr/arcore/Trackable.State>` `https://developer.android.com/reference/androidx/xr/arcore/Trackable#getState()()`

Emits the current state of this trackable.

## Public methods

### createAnchor

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

```
abstract @NonNull AnchorResult createAnchor(@NonNull Pose pose)
```

Creates an `https://developer.android.com/reference/androidx/xr/arcore/Anchor` attached to this `https://developer.android.com/reference/androidx/xr/arcore/Trackable`.