screenBrightness

Description

Adjust brightness of a mobile device.

Input / Parameters

NoNameDescriptionData TypeRequiredExample

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.

Result

The mobile device brightness level will be changed.

Video

  • N/A

  • N/A

Last updated