# RequestAdapterStatus

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

*** ** * ** ***


```
class RequestAdapterStatus
```

<br />

*** ** * ** ***

Indicates the status of an adapter request.

## Summary

| ### Constants |
|---|---|
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/webgpu/RequestAdapterStatus#CallbackCancelled() = 2` Indicates the adapter request was cancelled. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/webgpu/RequestAdapterStatus#Error() = 4` An error occurred during the adapter request. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/webgpu/RequestAdapterStatus#Success() = 1` An adapter was successfully found. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/webgpu/RequestAdapterStatus#Unavailable() = 3` No suitable adapter was found. |

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

## Constants

### CallbackCancelled

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

Indicates the adapter request was cancelled. This happens if the instance is destroyed or the request is explicitly aborted before an adapter is found.

### Error

```
const val Error = 4: Int
```

An error occurred during the adapter request.

### Success

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

An adapter was successfully found.

### Unavailable

```
const val Unavailable = 3: Int
```

No suitable adapter was found.

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