# 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)

*** ** * ** ***


```
class MapAsyncStatus
```

<br />

*** ** * ** ***

Indicates the status of an asynchronous buffer map operation.

## Summary

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

| ### Public companion functions |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/androidx/webgpu/MapAsyncStatus#toString(kotlin.Int)(value: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` |

## Constants

### Aborted

```
const val Aborted = 4: Int
```

The map operation was aborted.

### CallbackCancelled

```
const val CallbackCancelled = 2: Int
```

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

### Error

```
const val Error = 3: Int
```

An error occurred while mapping the buffer.

### Success

```
const val Success = 1: Int
```

The buffer was successfully mapped.

## Public companion functions

### toString

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

```
fun toString(value: Int): String
```