Contents

accelerometer

A sensor that provides acceleration motion data.

Declaration

static let accelerometer: SRSensor

Mentioned in

Discussion

The sample type for this sensor is [CMRecordedAccelerometerData].

You need to provide a reason to record accelerometer data by adding the SRSensorUsageMotion dictionary to the NSSensorKitUsageDetail key in the information property list.

See Also

Reading user activity sensors