iOSSensor Object Properties

Applies to TestComplete 15.0, last modified on November 17, 2021
The information below concerns legacy mobile tests that work with mobile devices connected to the local computer. For new mobile tests, we recommend using the newer cloud-compatible approach.

Depending on the sensor type the following properties are added:

Accelerometer Sensor Properties

Name Description
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 Description
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 Description
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 Description
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 (Legacy)
iOSSensor Object

Highlight search results