> For the complete documentation index, see [llms.txt](https://docs.emobiq.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.emobiq.com/emobiq-client/006-actions-and-visual-logic/action-reference/cordova/device/screenbrightness.md).

# screenBrightness

## Description

Adjust brightness of a mobile device.

## Input / Parameters

| No | Name         | Description      | Data Type | Required | Example                                                         |
| -- | ------------ | ---------------- | --------- | -------- | --------------------------------------------------------------- |
| 1  | level        | brightness level | Float     | Yes      | float 0-1 is a brightness level, -1 represents a system default |
| 2  | keepScreenOn | Prevents sleep   | Boolean   | Yes      |                                                                 |

## Output

## Callback

## Video

## Example

The user want adjust the screnn brightness of mobile.

### Step

1. Call the screenBrightness function in a button event.

   ![](/files/RwqjhdApLd5mrZqNdNxU)

### Result

The mobile device brightness level will be changed.

### Video

* N/A

## Links

* N/A
