|
Mobile Sensor API Version 1.2 | |||||||||
PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES |
Mobile Sensor API
package is optional and it enables the
control of the sensor.
See:
Description
Interface Summary | |
---|---|
Control | A Control object represents a sensor control
enabling the sensor's control. |
Controllable | The Controllable represents a sensor which
can be controlled with the controls provided. |
MeasurementRangeControl | A MeasurementRangeControl object is an example of
a general control used to set the measurement range of
the sensor. |
SampleRateControl | A SampleRateControl object is an example of
a general control used to set the sample rate of the sensor. |
StartControl | A StartControl object is an example of
a general control used to start the sensor by calling
its execute() method. |
StopControl | A StopControl object is an example of
a general control used to stop the sensor by calling
its execute() method. |
This Mobile Sensor API
package is optional and it enables the
control of the sensor.
Before opening the connection to the sensor, the sensor's controllability can
be queried. If the sensor can be controlled, the method
SensorInfo.getProperty(SensorInfo.PROP_IS_CONTROLLABLE)
MUST
return an object that equals Boolean.TRUE
. Several controls
can be attached to each sensor.
After the connection has been created the controllability of a sensor can
also be checked with instanceof Controllable
.
|
Mobile Sensor API Version 1.2 | |||||||||
PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES |