CoreMotion accesses accelerometer, gyroscope, magnetometer, altimeter, and device-motion sensor data along with activity classification. Use CMMotionManager to read raw and processed motion from CMAccelerometerData, CMGyroData, CMMagnetometerData, and the fused CMDeviceMotion, which combines CMAttitude, CMRotationRate, and CMCalibratedMagneticField. CMAltimeter reports altitude and pressure through CMAltitudeData and CMAbsoluteAltitudeData, while CMMotionActivityManager and CMPedometerData classify and count physical activity. The framework also surfaces specialized data through managers such as CMHeadphoneMotionManager, CMFallDetectionManager, and CMMovementDisorderManager.
Motion Management 2
The central manager for starting and reading raw and processed device-motion sensor data.
- ClCMMotionManagerwatchOS 2.0+The central object for starting motion services and reading accelerometer, gyroscope, magnetometer, and device-motion data.
- ClCMBatchedSensorManagerwatchOS 10.0+An object that delivers high-frequency batches of accelerometer and device-motion samples.
Raw Sensor Data 5
Samples of accelerometer, gyroscope, and magnetometer measurements with their timestamps.
- ClCMLogItemwatchOS 2.0+An abstract base class providing a timestamp for sensor measurement objects.
- ClCMAccelerometerDatawatchOS 2.0+An object containing a single accelerometer measurement along each spatial axis.
- ClCMGyroDatawatchOS 2.0+An object containing a single gyroscope measurement of rotation rate about each axis.
- ClCMMagnetometerDatawatchOS 2.0+An object containing a single magnetometer measurement of the magnetic field along each axis.
- ClCMRotationRateDatawatchOS 7.0+An object containing a rotation rate measurement about each spatial axis.
Processed Device Motion 10
Fused, bias-corrected motion that combines attitude, rotation rate, and calibrated fields.
- ClCMDeviceMotionwatchOS 2.0+An object containing fused, bias-corrected motion combining attitude, rotation rate, and acceleration.
- ClCMAttitudewatchOS 2.0+An object describing the device's orientation in space as roll, pitch, yaw, a matrix, or a quaternion.
- StCMAccelerationA structure containing acceleration values along the three spatial axes.
- StCMRotationRateA structure containing rotation rate values about the three spatial axes.
- StCMRotationMatrixA structure representing a device's attitude as a 3-by-3 rotation matrix.
- StCMQuaternionA structure representing a device's attitude as a unit quaternion.
- StCMMagneticFieldA structure containing magnetic field values along the three spatial axes.
- StCMCalibratedMagneticFieldA structure containing a calibrated magnetic field vector and its calibration accuracy.
- StCMAttitudeReferenceFrameConstants that specify the reference frame used when reporting device attitude.
- EnCMMagneticFieldCalibrationAccuracyConstants that indicate the calibration accuracy of a magnetic field measurement.
Altitude & Pressure 4
The altimeter and the relative, absolute, and ambient measurements it reports.
- ClCMAltimeterwatchOS 2.0+An object that manages reporting of relative altitude and atmospheric pressure changes.
- ClCMAltitudeDatawatchOS 2.0+An object containing a relative altitude change and the pressure at the time of measurement.
- ClCMAbsoluteAltitudeDatawatchOS 8.0+An object reporting altitude above sea level along with its accuracy and precision.
- ClCMAmbientPressureDatawatchOS 3.0+An object containing an ambient atmospheric pressure measurement and its accuracy.
Activity & Pedometer 7
Classification of physical activity and step, distance, and pace counting.
- ClCMMotionActivityManagerwatchOS 2.0+An object that manages access to historical and live activity classification data.
- ClCMMotionActivitywatchOS 2.0+An object describing the type and confidence of a classified physical activity.
- EnCMMotionActivityConfidenceConstants that indicate the confidence level of an activity classification.
- ClCMPedometerwatchOS 2.0+An object that manages live and historical step counting and pedestrian data.
- ClCMPedometerDatawatchOS 2.0+An object containing step count, distance, pace, and floor data for a time interval.
- ClCMPedometerEventwatchOS 3.0+An object describing a pedestrian event such as the start or pause of walking.
- EnCMPedometerEventTypewatchOS 3.0+Constants that identify the type of a pedometer event, such as pause or resume.
Recorded & Historical Data 6
Background recording of sensor streams and access to logged historical samples.
- ClCMSensorRecorderwatchOS 2.0+An object that records accelerometer data in the background for later retrieval.
- ClCMSensorDataListwatchOS 2.0+An enumerable collection of recorded sensor samples retrieved from the sensor recorder.
- ClCMRecordedAccelerometerDatawatchOS 2.0+An object containing a recorded accelerometer sample retrieved from the sensor recorder.
- ClCMRecordedRotationRateDatawatchOS 7.0+An object containing a recorded rotation rate sample retrieved from logged history.
- ClCMRecordedDeviceMotionwatchOS 27+An object containing a recorded device-motion sample retrieved from logged history.
- ClCMRecordedPressureDatawatchOS 5.0+An object containing a recorded atmospheric pressure sample retrieved from logged history.
Headphone Motion 3
Motion and activity sensing from supported headphones.
- ClCMHeadphoneMotionManagerwatchOS 7.0+An object that manages access to motion data from supported headphones.
- PrCMHeadphoneMotionManagerDelegatewatchOS 7.0+A protocol for receiving connection and availability updates from a headphone motion manager.
- ClCMHeadphoneActivityManagerwatchOS 11.0+An object that reports activity status from supported headphones.
Health & Safety Events 10
Managers and events for fall detection, water submersion, and high-frequency heart rate.
- ClCMFallDetectionManagerwatchOS 7.2+CMFallDetectionManager
- PrCMFallDetectionDelegatewatchOS 7.2+CMFallDetectionDelegate
- ClCMFallDetectionEventwatchOS 7.2+@brief Fall Detection Event
- ClCMWaterSubmersionManagerwatchOS 9.0+An object that monitors for and reports water submersion events and measurements.
- PrCMWaterSubmersionManagerDelegatewatchOS 9.0+A protocol for receiving water submersion events and measurements.
- ClCMWaterSubmersionEventwatchOS 9.0+An object describing a water submersion event such as entering or exiting water.
- ClCMWaterSubmersionMeasurementwatchOS 9.0+An object containing depth and pressure measurements during water submersion.
- ClCMWaterTemperaturewatchOS 9.0+An object containing a water temperature measurement and its uncertainty.
- ClCMHighFrequencyHeartRateDatawatchOS 10.0+An object containing a high-frequency heart rate sample and its measurement confidence.
- EnCMHighFrequencyHeartRateDataConfidencewatchOS 10.0+Constants that indicate the confidence of a high-frequency heart rate measurement.
Movement Disorder Analysis 3
Research-oriented assessment of tremor and dyskinetic symptoms.
- ClCMMovementDisorderManagerwatchOS 5.0+@class CMMovementDisorderManager
- ClCMTremorResultwatchOS 5.0+@class CMTremorResult
- ClCMDyskineticSymptomResultwatchOS 5.0+@class CMDyskineticSymptomResult
Odometer 2
Motion-derived distance, speed, and slope measurements and their originating device.
- ClCMOdometerDatawatchOS 1.0+An object containing motion-derived distance, speed, slope, and pace measurements.
- EnCMOdometerOriginDevicewatchOS 8.4+Constants that identify the device that originated odometer data.
Authorization & Errors 3
Authorization status, error codes, and identity protocols used across the framework.
- EnCMAuthorizationStatuswatchOS 4.0+Constants that indicate the app's authorization to access motion and fitness data.
- StCMErrorConstants that identify errors returned by Core Motion services.
- PrCMBodyIdentifiablewatchOS 27.0+A protocol for objects identifiable to a specific body location or device.
Type Aliases 12
- TyCMAltitudeHandler
- TyCMAbsoluteAltitudeHandler
- TyCMMotionActivityHandler
- TyCMMotionActivityQueryHandler
- TyCMAccelerometerHandler
- TyCMGyroHandler
- TyCMDeviceMotionHandler
- TyCMMagnetometerHandler
- TyCMDyskineticSymptomResultHandler@typedef CMDyskineticSymptomResultHandler
- TyCMTremorResultHandler@typedef CMTremorResultHandler
- TyCMPedometerHandler
- TyCMPedometerEventHandler