Sign in Join
FPDoc Onlineexperiment

TLazAccelerometer class

In unit LazDeviceApis

Represents the hardware accelerometer.

Declaration

pascal
TLazAccelerometer = class

Description

Nothing more than the line above yet.

Methods

StartReadingAccelerometerDatapublicStarts monitoring the accelerometer sensor.
StopReadingAccelerometerDatapublicStops monitoring the accelerometer sensor.

Events

OnSensorChangedpublicCalled when the accelerometer value changes or is updated from the sensor.

Fields

xaxispublicThe last value measured for the X axis of the accelerometer.
yaxispublicThe last value measured for the Y axis of the accelerometer.
zaxispublicThe last value measured for the Z axis of the accelerometer.

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.