System.Sensors.TCustomMotionSensor

From RAD Studio API Documentation
Jump to: navigation, search

System.Sensors.TCustomSensorSystem.TObjectTCustomMotionSensor

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

Android provides different types of motion sensors. Each type of sensor supports a different set of properties:

iOS

iOS provides different types of motion sensors. Each type of sensor supports a different set of properties:

Windows

Complete support.

See Also