# 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


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.emobiq.com/emobiq-client/006-actions-and-visual-logic/action-reference/cordova/device/screenbrightness.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
