S60 Light API Specification: API description

Light API is a library API providing the ability to control the various light targets of the device. The API provides also methods to retrieve the current light status and the supported light targets of the device. The API is meant for all applications which need to control lights of the device.

Light API is a synchronous method call.

API class structure

Most functionality is accessed via the CHWRMLight instance. A separate callback interface MHWRMLightObserver for status reporting is also used.

Figure 1: API class structure

The client creates an instance of CHWRMLight using standard Symbian C-class NewL-pattern. If the client requires up-to-date status information, it should also provide callback pointer of the MHWRMLightObserver implementing class for the NewL-method.


Copyright © Nokia Corporation 2001-2008
Back to top