Hygrometer¶
Non-Visible componentCategory | Requires | Version |
---|---|---|
Sensors | API 21, Android 5.0 Lollipop | 1 |
Overview¶
A sensor component that can measure the relative ambient air humidity. Most Android devices do not have this sensor.
Events¶
Humidity Changed¶
Called when a change is detected in the ambient air humidity (expressed as a percentage).
Params | |
---|---|
humidity | Number |
Properties¶
Available¶
Boolean Read - Blocks
Specifies whether or not the device has an ambient air pressure sensor.
Enabled¶
Boolean Default: True Read Write - Designer Blocks
If enabled, then device will listen for changes.
Humidity¶
Number Read - Blocks
The relative ambient humidity as a percentage, if the sensor is available and enabled.
Refresh Time¶
Number Default: 1000 Read Write - Designer Blocks
The requested minimum time in milliseconds between changes in air pressure being reported. Android is not guaranteed to honor the request. Setting this property has no effect on pre-Gingerbread devices.