diff -r 913c9751c067 -r 716254ccbcc0 org.symbian.tools.wrttools.doc.WebDeveloper/html/GUID-B77C2006-879F-4AC6-B7BF-04B25B563A29.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/org.symbian.tools.wrttools.doc.WebDeveloper/html/GUID-B77C2006-879F-4AC6-B7BF-04B25B563A29.html Fri Mar 05 19:11:15 2010 -0800 @@ -0,0 +1,41 @@ + + +JavaScript Sensor +Service API

JavaScript Sensor +Service API

+

The Sensor Service API +is supported since WRT 1.1.

+

The Sensor Service API allows widgets to +access data provided by the physical sensors of a device. The data from a +given sensor is mapped to one or more sensor channels, which the API can listen +to. The available sensors depend on the device. The API is integrated into WRT through +the device object.

+

For an overview of the service and the API, see section Accessing data from the physical sensors of a device.

+

Using the Sensor Service API

+

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

+ +
var so = device.getServiceObject("Service.Sensor", "ISensor");
+

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

+ +
+

Emulator support

+

The S60 5th Edition SDK emulator support XML based-simulation for a +few sensors.

+
+
\ No newline at end of file