Gravity Sensor¶
Non-Visible componentCategory | Requires | Version |
---|---|---|
Sensors | API 21, Android 5.0 Lollipop | 1 |
Overview¶
A non-visible component that measures the force of gravity that is applied to a device on all three physical axes.
Note: All readings are in SI units.
Events¶
Gravity Changed¶
Indicates that the gravity sensor data has changed.
Params | |
---|---|
x Accel | Number |
y Accel | Number |
z Accel | Number |
Properties¶
Available¶
Boolean Read - Blocks
Property for Available
Enabled¶
Boolean Default: True Read Write - Designer Blocks
Property for Enabled
Maximum Range¶
Number Read - Blocks
Property for MaximumRange
X Accel¶
Number Read - Blocks
Property for XAccel
Y Accel¶
Number Read - Blocks
Property for YAccel
Z Accel¶
Number Read - Blocks
Property for ZAccel
Last update: November 9, 2022