Home > Language Reference > Classes > Telephony
LED Method
Forces the state of the LED indicator.
Syntax
Public Sub LED(ByVal eLED As HbLED)
| Parameter | Description |
| eLED | New state. |
Remarks
The LED method forces the state of the LED indicator. The eLED parameter specifies the new state and can take one of the following values:
| Constant | Value | Description |
| hbLEDForceNone | &H0100 | Default. The LED state is not forced and reflects the phone state. |
| hbLEDForceRed | &H0101 | Force the LED to red. |
| hbLEDForceGreen | &H0102 | Force the LED to green. |
| hbLEDForceRedGreen | &H0103 | Force the LED to orange. |
| hbLEDForceOff | &H0180 | Force the LED to switch off. |
The method sets the indicator state and returns immediately. The LED state won't change until the next call to LED even if your application exits. Therefore it is advised to call this method with the hbLEDForceNone parameter when your application terminates to restore the default behavior.
System requirements
| System | Minimal version | Remarks |
| Palm OS | Palm OS 5.0 | Only available on smart phone devices. |