Contents

pedometerData

A sensor that provides information about the user’s steps.

Declaration

static let pedometerData: SRSensor

Discussion

The sample type for this sensor is CMPedometerData.

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

See Also

Reading user activity sensors