---
title: CMAccelerometerData
framework: coremotion
role: symbol
role_heading: Class
path: coremotion/cmaccelerometerdata
---

# CMAccelerometerData

A data sample from the device’s three accelerometers.

## Declaration

```swift
class CMAccelerometerData
```

## Overview

Overview 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 CMAccelerometerData, CMLogItem, defines a timestamp property that records when the acceleration measurement was taken.

## Topics

### Accessing Accelerometer Data

- [acceleration](coremotion/cmaccelerometerdata/acceleration.md)
- [CMAcceleration](coremotion/cmacceleration.md)

## Relationships

### Inherits From

- [CMLogItem](coremotion/cmlogitem.md)

### Inherited By

- [CMRecordedAccelerometerData](coremotion/cmrecordedaccelerometerdata.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSCoding](foundation/nscoding.md)
- [NSCopying](foundation/nscopying.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)
- [NSSecureCoding](foundation/nssecurecoding.md)

## See Also

### Accelerometers

- [Getting raw accelerometer events](coremotion/getting-raw-accelerometer-events.md)
- [CMRecordedAccelerometerData](coremotion/cmrecordedaccelerometerdata.md)
- [CMSensorRecorder](coremotion/cmsensorrecorder.md)
- [CMSensorDataList](coremotion/cmsensordatalist.md)
