Home > Language Reference > Classes > Telephony

LED Method

Forces the state of the LED indicator.

Syntax

Public Sub LED(ByVal eLED As HbLED)

ParameterDescription
eLEDNew 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:

ConstantValueDescription
hbLEDForceNone&H0100Default. The LED state is not forced and reflects the phone state.
hbLEDForceRed&H0101Force the LED to red.
hbLEDForceGreen&H0102Force the LED to green.
hbLEDForceRedGreen&H0103Force the LED to orange.
hbLEDForceOff&H0180Force 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

SystemMinimal versionRemarks
Palm OSPalm OS 5.0Only available on smart phone devices.