# AnchorCreateSuccess

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

*** ** * ** ***


```
public final class AnchorCreateSuccess extends AnchorResult
```

<br />

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

*** ** * ** ***

Result of a successful attempt to create an anchor.

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/androidx/xr/arcore/AnchorCreateSuccess#AnchorCreateSuccess(androidx.xr.arcore.Anchor)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/xr/arcore/Anchor anchor)` |

| ### Public methods |
|---|---|
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/xr/arcore/Anchor` | `https://developer.android.com/reference/androidx/xr/arcore/AnchorCreateSuccess#getAnchor()()` the `https://developer.android.com/reference/androidx/xr/arcore/Anchor` that was created |

## Public constructors

### AnchorCreateSuccess

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

```
public AnchorCreateSuccess(@NonNull Anchor anchor)
```

## Public methods

### getAnchor

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

```
public final @NonNull Anchor getAnchor()
```

the `https://developer.android.com/reference/androidx/xr/arcore/Anchor` that was created