com.samsung.util
Class LCDLight

java.lang.Object
  |
  +--com.samsung.util.LCDLight

public final class LCDLight
extends java.lang.Object

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

isSupported

public static boolean isSupported()
Gets an information whether LCD light is supported by the device.

Returns:
true if the LCDLight is supported.

on

public static void on(int duration)
Starts lightening of the screen with time (sec).

Parameters:
duration - is the duration of lightening in seconds. Duration must be positive.
Throws:
java.lang.IllegalStateException - Thrown if the device does not support LCDLight
java.lang.IllegalArgumentException - Thrown if duration is in invalid range.

off

public static void off()
Stops lightening of the screen.

Throws:
java.lang.IllegalStateException - Thrown if the device does not support LCDLight