# RequestDeviceStatus

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

*** ** * ** ***


```
class RequestDeviceStatus
```

<br />

*** ** * ** ***

Indicates the status of a device request.

## Summary

| ### Constants |
|---|---|
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/webgpu/RequestDeviceStatus#CallbackCancelled() = 2` Indicates the device request was cancelled. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/webgpu/RequestDeviceStatus#Error() = 3` An error occurred during device creation. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/webgpu/RequestDeviceStatus#Success() = 1` The device was successfully created. |

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

## Constants

### CallbackCancelled

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

Indicates the device request was cancelled. This happens if the adapter becomes invalid or the instance is destroyed before the device is created.

### Error

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

An error occurred during device creation.

### Success

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

The device was successfully created.

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