Difference between revisions of "Application:LEDService"

From WebOS Internals
Jump to navigation Jump to search
(New page: == 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 a...)
 
Line 4: Line 4:
 
This service has three methods which are exposed to the user, along with three opposite methods.
 
This service has three methods which are exposed to the user, along with three opposite methods.
  
;setBrightnessLeftLED(int value)
+
;setBrightnessLeftLED(int value)       :allows you to set the brightness of the Left LED in the gesture area.
;setBrightnessCenterLED(int value)
+
;setBrightnessCenterLED(int value)     :allows you to set the brightness of the Center LED in the gesture area.
;setBrightnessRightLED(int value)
+
;setBrightnessRightLED(int value)       :allows you to set the brightness of the Right LED in the gesture area.
  
 
Then:
 
Then:
  
;getBrightnessLeftLED(int value)
+
;getBrightnessLeftLED(int value)       :allows you to read the current brightness of the Left LED in the gesture area.
;getBrightnessCenterLED(int value)
+
;getBrightnessCenterLED(int value)     :allows you to read the current brightness of the Right LED in the gesture area.
;getBrightnessRightLED(int value)
+
;getBrightnessRightLED(int value)       :allows you to read the current brightness of the Center LED in the gesture area.

Revision as of 03:02, 10 August 2009

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.