System.Sensors.TCustomMotionSensor

Delphi
TCustomMotionSensor = class(TCustomSensor)
C++
class PASCALIMPLEMENTATION TCustomMotionSensor : public TCustomSensor
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
class | public | System.Sensors.pas System.Sensors.hpp |
System.Sensors | System.Sensors |
Description
Offers information about the acceleration, angle, state, and speed of the device motion.
AccelerationX, AccelerationY and AccelerationZ return the acceleration in gals (g) for the X,Y, and Z axis.
AngleAccelX, AngleAccelY and AngleAccelZ return the angular acceleration in degrees per second squared (°/s²) for the X,Y, and Z axis.
Speed determines the speed of the device in meters per second (m/s).
Motion determines whether the device is currently in motion or not.
Platform Support
This class supports the following platforms:
Platform | Details |
---|---|
Android provides different types of motion sensors. Each type of sensor supports a different set of properties:
| |
iOS provides different types of motion sensors. Each type of sensor supports a different set of properties:
| |
Complete support. |
See Also
- System.Sensors.TCustomMotionSensor.AccelerationX
- System.Sensors.TCustomMotionSensor.AccelerationY
- System.Sensors.TCustomMotionSensor.AccelerationZ
- System.Sensors.TCustomMotionSensor.AngleAccelX
- System.Sensors.TCustomMotionSensor.AngleAccelY
- System.Sensors.TCustomMotionSensor.AngleAccelZ
- System.Sensors.TCustomMotionSensor.Motion
- System.Sensors.TCustomMotionSensor.Speed
- FMX.Accelerometer Sample