<!--
{
  "availability" : [
    "iOS: 14.0.0 -",
    "iPadOS: 14.0.0 -",
    "macCatalyst: 14.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SensorKit",
  "identifier" : "/documentation/SensorKit/SRSensor/accelerometer",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "SensorKit"
    ],
    "preciseIdentifier" : "c:@SRSensorAccelerometer"
  },
  "title" : "accelerometer"
}
-->

# accelerometer

A sensor that provides acceleration motion data.

```
static let accelerometer: SRSensor
```

## Discussion

The [`sample`](/documentation/SensorKit/SRFetchResult/sample) type for this sensor is [<doc://com.apple.documentation/documentation/CoreMotion/CMRecordedAccelerometerData>].

You need to provide a reason to record accelerometer data by adding the <doc://com.apple.documentation/documentation/BundleResources/Information-Property-List/NSSensorKitUsageDetail/SRSensorUsageMotion> dictionary to the <doc://com.apple.documentation/documentation/BundleResources/Information-Property-List/NSSensorKitUsageDetail> key in the information property list.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)