# NightModeIndicator

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/NightModeIndicator.java+class:androidx.camera.core.NightModeIndicator) Added in [1.7.0-rc02](https://developer.android.com/jetpack/androidx/releases/camera#1.7.0-rc02)

*** ** * ** ***


```
class NightModeIndicator
```

<br />

*** ** * ** ***

Defines the valid states for Night Mode Indicator, as returned by `https://developer.android.com/reference/kotlin/androidx/camera/core/CameraInfo#getNightModeIndicator()`.

These states indicate whether the current environment conditions meet the criteria for Night Mode.

## Summary

| ### Constants |
|---|---|
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/camera/core/NightModeIndicator#NOT_RECOMMENDED() = 1` Night mode is not recommended. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/camera/core/NightModeIndicator#RECOMMENDED() = 2` Night mode is recommended. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/camera/core/NightModeIndicator#UNKNOWN() = 0` Night mode indicator is unknown. |

## Constants

### NOT_RECOMMENDED

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

```
const val NOT_RECOMMENDED = 1: Int
```

Night mode is not recommended.

Lighting conditions are sufficiently bright. The environment conditions do not meet the criteria for Night Mode.

### RECOMMENDED

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

```
const val RECOMMENDED = 2: Int
```

Night mode is recommended.

Low-light conditions detected. The environment conditions meet the criteria for Night Mode.

### UNKNOWN

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

```
const val UNKNOWN = 0: Int
```

Night mode indicator is unknown.

Scene lighting cannot yet be accurately assessed. Apps should generally hide any suggestion UI in this state.