Application:LEDService

From WebOS Internals
Jump to navigation Jump to search

Summary

This service provides access to the LED's brightness settings. As of webOS 1.1.0, is not accessible from application development. With this service, it can be accessed by an application.

This service has three methods which are exposed to the user, along with three opposite methods.

setBrightnessLeftLED(int value)
allows you to set the brightness of the Left LED in the gesture area.
setBrightnessCenterLED(int value)
allows you to set the brightness of the Center LED in the gesture area.
setBrightnessRightLED(int value)
allows you to set the brightness of the Right LED in the gesture area.

Then:

getBrightnessLeftLED(int value)
allows you to read the current brightness of the Left LED in the gesture area.
getBrightnessCenterLED(int value)
allows you to read the current brightness of the Right LED in the gesture area.
getBrightnessRightLED(int value)
allows you to read the current brightness of the Center LED in the gesture area.