# TorchState

Artifact: [androidx.camera:camera-core](https://developer.android.com/jetpack/androidx/releases/camera) [View Source](https://cs.android.com/search?q=file:androidx/camera/core/TorchState.java+class:androidx.camera.core.TorchState) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/camera#1.0.0)

*** ** * ** ***


```
public class TorchState
```

<br />

*** ** * ** ***

The camera flash torch state.

## Summary

| ### Constants |
|---|---|
| `static final int` | `https://developer.android.com/reference/androidx/camera/core/TorchState#OFF() = 0` Torch is off. |
| `static final int` | `https://developer.android.com/reference/androidx/camera/core/TorchState#ON() = 1` Torch is on. |

## Constants

### OFF

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

```
public static final int OFF = 0
```

Torch is off.

### ON

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

```
public static final int ON = 1
```

Torch is on.