# 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.

   ![](https://399701567-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwmJ1RKjM2uNFaL6fO3Xu%2Fuploads%2Fgit-blob-43d640ae16af205b267e99dc42e6ce9aa72a082e%2FscreenBrightness-step-1.png?alt=media)

### Result

The mobile device brightness level will be changed.

### Video

* N/A

## Links

* N/A
