The device
object is supported since WRT
1.1.
The device
object is a built-in JavaScript object
in the widget engine. It was introduced in WRT 1.1 to allow widgets access
to S60 Platform Services through Service APIs. The device
object
is used to create service objects for specific Service APIs. These service
objects can then be used to access the services made available through the
Service APIs.
The device
object can be accessed simply via device
.
In the WRT environment, the term device
is a reserved
keyword and should not be used as a user-defined global variable name for
other type of objects.
device
object methods: