An instance of the
CMAccelerometerData class represents an accelerometer event. It is a measurement of acceleration along the three spatial axes at a moment of time.
- iOS 4.0+
- watchOS 2.0+
An application accesses
CMAccelerometerData objects through the block handler specified as the last parameter of the
startAccelerometerUpdates(to:withHandler:) method and through the
accelerometerData property, both declared by the
CMMotionManager class. The superclass of
CMLogItem, defines a
timestamp property that records when the acceleration measurement was taken.