The latest sample of accelerometer data.
SDKs
- iOS 4.0+
- Mac Catalyst 13.0+
- watchOS 2.0+
Framework
- Core Motion
Declaration
@property(readonly) CMAccelerometer Data *accelerometerData;
Discussion
If no accelerometer data is available, the value of this property is nil
. An app that is receiving accelerometer data after calling start
periodically checks the value of this property and processes the acceleration data.