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

*** ** * ** ***


```
public final class RequestDeviceStatus
```

<br />

*** ** * ** ***

Indicates the status of a device request.

## Summary

| ### Constants |
|---|---|
| `static final int` | `https://developer.android.com/reference/androidx/webgpu/RequestDeviceStatus#CallbackCancelled() = 2` Indicates the device request was cancelled. |
| `static final int` | `https://developer.android.com/reference/androidx/webgpu/RequestDeviceStatus#Error() = 3` An error occurred during device creation. |
| `static final int` | `https://developer.android.com/reference/androidx/webgpu/RequestDeviceStatus#Success() = 1` The device was successfully created. |

| ### 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/RequestDeviceStatus#toString(kotlin.Int)(int value)` |

## Constants

### CallbackCancelled

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

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

### Error

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

An error occurred during device creation.

### Success

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

The device was successfully created.

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