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
allows you to get the current integer valued brightness of the Left LED in the gesture area.
getBrightnessCenterLED
allows you to get the current integer valued brightness of the Right LED in the gesture area.
getBrightnessRightLED
allows you to get the current integer valued brightness of the Center LED in the gesture area.