The Sensor Service API uses objects to represent sensor channels. One object contains the information for one sensor channel (see the following table). The Sensor Service API methods use these sensor channel objects as follows:
The ReturnValue
property of the result object is
an iterator containing
the requested sensor channel information. Each item (object) in the iterator corresponds
to one sensor channel matching the search
criteria specified for the FindSensorChannel
call.
The criteria.ChannelInfoMap
property used
for input is a sensor channel object. It specifies the channel from which
the RegisterForNotification
call registers to receive
data.
The criteria.ChannelInfoMap
property used
for input is a sensor channel object. It specifies the channel of the property
about which the GetChannelProperty
call retrieves information.
Property |
Description |
Type |
Value |
---|---|---|---|
|
Specifies the inique identifier of the channel. |
number |
|
|
Specifies the context in which the channel is available. |
number |
Possible values:
|
|
Specifies the quantity being sensed. |
number |
Possible values:
|
|
Specifies the type of the channel. This is the unique identifier of the Sensor Subsystem (SSY) that provides data for this channel. Each physical sensor registers to the S60 sensor framework as a Sensor
Subsystem that provides specific sensor data. If the physical sensor provides
multiple types of data, it can register a separate SSY for each type. For
example, a sensor that provides both orientation and rotation data can register
one SSY for orientation data and another for rotation data. |
number |
|
|
Specifies the location of the sensor related to the channel. |
string |
|
|
Specifies the vendor ID of the sensor related to the channel. |
string |
|
|
Specifies the data item size delivered in the channel. |
number |
|
|
Specifies the unique data type identifier for the data being sensed. |
number |