# UAndroidXRSpatialAnchorsPersistenceAsyncAction

`#include <AndroidXRSpatialAnchorsSubsystem.h>`

The async operations associated with spatial anchors.

<br />

## Summary

### Inheritance

Inherits from: `UBlueprintAsyncActionBase`

| ### Public attributes ||
|---|---|
| `https://developer.android.com/develop/xr/unreal/reference/class/UAndroidXRSpatialAnchorsPersistenceAsyncAction#onoperationfailed {}` | `FAnchorPersistOperationFailedDelegate` The callback for when the async operation fails. |
| `https://developer.android.com/develop/xr/unreal/reference/class/UAndroidXRSpatialAnchorsPersistenceAsyncAction#onoperationsuccess {}` | `FAnchorPersistOperationDelegate` The callback for when the async operation succeeds. |

| ### Public static functions ||
|---|---|
| `https://developer.android.com/develop/xr/unreal/reference/class/UAndroidXRSpatialAnchorsPersistenceAsyncAction#persistanchorasync(https://developer.android.com/develop/xr/unreal/reference/class/UAndroidXRSpatialAnchorEntity#class_u_android_x_r_spatial_anchor_entity *AnchorToPersist)` | `https://developer.android.com/develop/xr/unreal/reference/class/UAndroidXRSpatialAnchorsPersistenceAsyncAction#class_u_android_x_r_spatial_anchors_persistence_async_action *` Persists a spatial anchor. |
| `https://developer.android.com/develop/xr/unreal/reference/class/UAndroidXRSpatialAnchorsPersistenceAsyncAction#unpersistanchorasync(https://developer.android.com/develop/xr/unreal/reference/class/UAndroidXRSpatialAnchorEntity#class_u_android_x_r_spatial_anchor_entity *AnchorToUnPersist)` | `https://developer.android.com/develop/xr/unreal/reference/class/UAndroidXRSpatialAnchorsPersistenceAsyncAction#class_u_android_x_r_spatial_anchors_persistence_async_action *` Unpersists a spatial anchor. |

| ### Public functions ||
|---|---|
| `https://developer.android.com/develop/xr/unreal/reference/class/UAndroidXRSpatialAnchorsPersistenceAsyncAction#activate() override` | `void` |

## Public attributes

### OnOperationFailed

```
FAnchorPersistOperationFailedDelegate OnOperationFailed {}
```
The callback for when the async operation fails.

### OnOperationSuccess

```
FAnchorPersistOperationDelegate OnOperationSuccess {}
```
The callback for when the async operation succeeds.

## Public static functions

### PersistAnchorAsync

```
UAndroidXRSpatialAnchorsPersistenceAsyncAction * PersistAnchorAsync(
  UAndroidXRSpatialAnchorEntity *AnchorToPersist
)
```
Persists a spatial anchor.

<br />

Details Parameters `The` anchor to persist **Returns** The asynchronous operation for persistence

### UnPersistAnchorAsync

```
UAndroidXRSpatialAnchorsPersistenceAsyncAction * UnPersistAnchorAsync(
  UAndroidXRSpatialAnchorEntity *AnchorToUnPersist
)
```
Unpersists a spatial anchor.

<br />

Details Parameters `The` anchor to unpersist **Returns** The asynchronous operation for unpersistence

## Public functions

### Activate

```
void Activate() override
```