Thermometer
Definition
Physical world component that can measure the ambient air temperature if supported by the hardware.
Properties
- Available
- Specifies whether or not the device has the hardware to support the
Thermometer
component. - Enabled
- Specifies whether the sensor should generate events. If
true
, the sensor will generate events. Otherwise, no events are generated. - RefreshTime
- The requested minimum time in milliseconds between changes in readings being reported. Android is not guaranteed to honor the request. Setting this property has no effect on pre-Gingerbread devices.
- Temperature
- Returns the temperature in degrees Celsius. The sensor must be enabled and available to return meaningful values.