# FocusState

Artifact: [androidx.camera.viewfinder:viewfinder-core](https://developer.android.com/jetpack/androidx/releases/camera-viewfinder) [View Source](https://cs.android.com/search?q=file:androidx/camera/viewfinder/core/FocusState.kt+class:androidx.camera.viewfinder.core.FocusState) Added in [1.7.0-rc02](https://developer.android.com/jetpack/androidx/releases/camera-viewfinder#1.7.0-rc02)

*** ** * ** ***


```
object FocusState
```

<br />

*** ** * ** ***

State constants for focus actions.

## Summary

| ### Constants |
|---|---|
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/camera/viewfinder/core/FocusState#FAILED() = 4` The focus action failed to complete. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/camera/viewfinder/core/FocusState#FOCUSED() = 2` The focus action was completed successfully and the camera is focused. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/camera/viewfinder/core/FocusState#INACTIVE() = 0` The focus state is inactive or unknown. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/camera/viewfinder/core/FocusState#NOT_FOCUSED() = 3` The focus action was completed successfully but the camera is still unfocused. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/camera/viewfinder/core/FocusState#STARTED() = 1` A focus action has started but not completed. |

## Constants

### FAILED

Added in [1.7.0-rc02](https://developer.android.com/jetpack/androidx/releases/camera-viewfinder#1.7.0-rc02)

```
const val FAILED = 4: Int
```

The focus action failed to complete.

### FOCUSED

Added in [1.7.0-rc02](https://developer.android.com/jetpack/androidx/releases/camera-viewfinder#1.7.0-rc02)

```
const val FOCUSED = 2: Int
```

The focus action was completed successfully and the camera is focused.

### INACTIVE

Added in [1.7.0-rc02](https://developer.android.com/jetpack/androidx/releases/camera-viewfinder#1.7.0-rc02)

```
const val INACTIVE = 0: Int
```

The focus state is inactive or unknown.

### NOT_FOCUSED

Added in [1.7.0-rc02](https://developer.android.com/jetpack/androidx/releases/camera-viewfinder#1.7.0-rc02)

```
const val NOT_FOCUSED = 3: Int
```

The focus action was completed successfully but the camera is still unfocused.

### STARTED

Added in [1.7.0-rc02](https://developer.android.com/jetpack/androidx/releases/camera-viewfinder#1.7.0-rc02)

```
const val STARTED = 1: Int
```

A focus action has started but not completed.