Interface java.telephony.phone.PhoneLamp
All Packages Class Hierarchy This Package Previous Next Index
Interface java.telephony.phone.PhoneLamp
- public interface PhoneLamp
- extends Object
- extends Component
-
LAMPMODE_BROKENFLUTTER
- The lamp mode is BROKENFLUTTER, which is the superposition of flash and
flutter.
-
LAMPMODE_FLASH
- The lamp mode is FLASH, which means slow on and off.
-
LAMPMODE_FLUTTER
- The lamp mode is FLUUTER, which means fast on and off.
-
LAMPMODE_OFF
- The lamp mode is OFF.
-
LAMPMODE_STEADY
- The lamp is STEADY, which means continuously lit.
-
LAMPMODE_WINK
- The lamp mode is WINK.
-
getAssociatedPhoneButton()
- Returns the button associated with the lamp.
-
getMode()
- Returns the current lamp mode.
-
getSupportedModes()
- Returns an array of supported lamp modes.
-
setMode(int)
- Sets the current lamp mode to a mode supported by the lamp and
returns by getSupportedModes().
LAMPMODE_OFF
public final static int LAMPMODE_OFF
- The lamp mode is OFF.
LAMPMODE_FLASH
public final static int LAMPMODE_FLASH
- The lamp mode is FLASH, which means slow on and off.
LAMPMODE_STEADY
public final static int LAMPMODE_STEADY
- The lamp is STEADY, which means continuously lit.
LAMPMODE_FLUTTER
public final static int LAMPMODE_FLUTTER
- The lamp mode is FLUUTER, which means fast on and off.
LAMPMODE_BROKENFLUTTER
public final static int LAMPMODE_BROKENFLUTTER
- The lamp mode is BROKENFLUTTER, which is the superposition of flash and
flutter.
LAMPMODE_WINK
public final static int LAMPMODE_WINK
- The lamp mode is WINK.
getSupportedModes
public abstract int[] getSupportedModes() throws PlatformException
- Returns an array of supported lamp modes.
- Returns:
- An array of supported lamp modes.
- Throws: PlatformException
- A platform-specific exception occurred.
setMode
public abstract void setMode(int mode) throws InvalidArgumentException, PlatformException
- Sets the current lamp mode to a mode supported by the lamp and
returns by getSupportedModes().
- Parameters:
- mode - The desired lamp mode.
- Throws: InvalidArgumentException
- The provided lamp mode is not valid.
- Throws: PlatformException
- A platform-specific exception occurred.
getMode
public abstract int getMode() throws PlatformException
- Returns the current lamp mode.
- Returns:
- The current lamp mode.
- Throws: PlatformException
- A platform-specific exception occurred.
getAssociatedPhoneButton
public abstract PhoneButton getAssociatedPhoneButton() throws PlatformException
- Returns the button associated with the lamp.
- Returns:
- The button associated with the lamp.
- Throws: PlatformException
- A platform-specific exception occurred.
All Packages Class Hierarchy This Package Previous Next Index