|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.samsung.util.LCDLight
The LCDLight class controls back light of phone screen.
| Method Summary | |
static boolean |
isSupported()
Gets an information whether LCD light is supported by the device. |
static void |
off()
Stops lightening of the screen. |
static void |
on(int duration)
Starts lightening of the screen with time (sec). |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static boolean isSupported()
LCDLight is supported.public static void on(int duration)
duration - is the duration of lightening in seconds. Duration must be positive.
java.lang.IllegalStateException - Thrown if the device does not support LCDLight
java.lang.IllegalArgumentException - Thrown if duration is in invalid range.public static void off()
java.lang.IllegalStateException - Thrown if the device does not support LCDLight
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||