Accelerometer
Start from API_LEVEL
3.0. Please refer to API_LEVEL.

accelerometer. Measure the acceleration of the device along three orthogonal axes (x, y, z). The x and y axes are parallel to the screen, with the positive direction referring to the diagram. The z-axis is perpendicular to the device's screen, with the positive direction pointing upward.
info
permission code: device:os.accelerometer
Methods
start
Start listening to accelerometer data
start(): void
stop
Stop listening to accelerometer data
stop(): void
getCurrent
Get current accelerometer data
getCurrent(): Result