freesmartphone.org Display Interface

Description

This interface provides access to a display device.

Namespace

org.freesmartphone.Device.Display

Methods

Signals

Properties

None

Errors

None

Methods

GetBrightness ( ) → i

Description: Get the current brightness level.

Returns:

i: brightness The brightness level in percent (0-100).

SetBrightness ( i )

Description: Set the brightness level.

Implementation Note

A brightness level of 0 does not necessarily mean that the backlight power is off.

Parameters:*

i: brightness The brightness level in percent (0-100).

GetBacklightPower ( ) → b

Description: Get whether the backlight is powered or not.

Returns:

b: power True, if the backlight is powered. False, otherwise.

SetBacklightPower ( b )

Description: Set whether the backlight should be powered or not.

Parameters:*

b: power True, if the backlight should be powered. False, otherwise.

Signals

BacklightPower ( b )

Description: Send when the backlight brightness (or power) moves to 0 or out of 0.

Parameters:

b: power True, if the backlight has been turned on. False, otherwise.