JavaScript SystemInfo Service API (WRT 1.1)

This SystemInfo Service API is supported since WRT 1.1.

The SystemInfo Service API allows widgets to access and modify system information on a device. The API is integrated into WRT through the device object.

For an overview of the service and the API, see section Accessing and modifying system information.

Using the SystemInfo Service API

To use the SystemInfo Service API, your widget must first create a service object for it using the device.getServiceObject() method. Use Service.SysInfo to identify the service provider and ISysInfo to identify the supported interface:

var so = device.getServiceObject("Service.SysInfo", "ISysInfo");

This service object can then be used to access the services provided by the API:

Emulator support

The S60 5th Edition SDK emulator provides partial support for system information. The following table lists the system attributes supported by the emulator.

Table: Supported system attributes

Entity

Key

Device

PlatformVersion

 

PhoneModel

 

Display

ScreenSaverTimeout

 

UserInactivity

 

KeyGuardTime

 

AutoLockTime

 

AutoLockStatus

 

Wallpaper

 

LightTimeout

 

DisplayResolution

 

DisplayOrientation

 

General

InputLanguage

 

SupportedLanguages

 

PredictiveText

 

Memory

ListDrives

 

DriveInfo