Depending on the sensor type the following properties are added:
Accelerometer Sensor Properties
Name |
Returns the sensor name. |
X |
Gets the X-axis acceleration. |
Y |
Gets the Y-axis acceleration. |
Z |
Gets the Z-axis acceleration. |
Gyroscope Sensor Properties
Name |
Returns the sensor name. |
X |
Gets the X-axis rotation rate in radians per second. |
Y |
Gets the Y-axis rotation rate in radians per second. |
Z |
Gets the Z-axis rotation rate in radians per second. |
Magnetometer Sensor Properties
Name |
Returns the sensor name. |
X |
Gets the X-axis magnetic field in microteslas. |
Y |
Gets the Y-axis magnetic field in microteslas. |
Z |
Gets the Z-axis magnetic field in microteslas. |
Attitude Sensor Properties
Name |
Returns the sensor name. |
Pitch |
Gets the pitch of the device in radians. |
Roll |
Gets the roll of the device in radians. |
Yaw |
Gets the yaw of the device in radians. |
See Also
Getting Data From Mobile Device Sensors
iOSSensor Object