# MapAsyncStatus

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

*** ** * ** ***


```
public final class MapAsyncStatus
```

<br />

*** ** * ** ***

Indicates the status of an asynchronous buffer map operation.

## Summary

| ### Constants |
|---|---|
| `static final int` | `https://developer.android.com/reference/androidx/webgpu/MapAsyncStatus#Aborted() = 4` The map operation was aborted. |
| `static final int` | `https://developer.android.com/reference/androidx/webgpu/MapAsyncStatus#CallbackCancelled() = 2` Indicates the buffer mapping operation was cancelled. |
| `static final int` | `https://developer.android.com/reference/androidx/webgpu/MapAsyncStatus#Error() = 3` An error occurred while mapping the buffer. |
| `static final int` | `https://developer.android.com/reference/androidx/webgpu/MapAsyncStatus#Success() = 1` The buffer was successfully mapped. |

| ### Public methods |
|---|---|
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/webgpu/MapAsyncStatus#toString(kotlin.Int)(int value)` |

## Constants

### Aborted

```
public static final int Aborted = 4
```

The map operation was aborted.

### CallbackCancelled

```
public static final int CallbackCancelled = 2
```

Indicates the buffer mapping operation was cancelled. This commonly happens if the buffer is unmapped or destroyed before the asynchronous map request completes.

### Error

```
public static final int Error = 3
```

An error occurred while mapping the buffer.

### Success

```
public static final int Success = 1
```

The buffer was successfully mapped.

## Public methods

### toString

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

```
public static final @NonNull String toString(int value)
```