DeviceMotion

class DeviceMotion(val gravity: Gravity, val acceleration: Acceleration, val orientation: Orientation, val magneticField: MagneticField)

DeviceMotion is a data class that holds the acceleration data of a motion event, along with any additional data that may be returned in the future.

This is the data that is passed to the listener.

Parameters

gravity

The gravity data of the motion event

Constructors

Link copied to clipboard
constructor(gravity: Gravity, acceleration: Acceleration, orientation: Orientation, magneticField: MagneticField)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard