Contents

phoneUsageReport

A sensor that reports the amount of time that the user is on phone calls.

Declaration

static let phoneUsageReport: SRSensor

Discussion

The sample type for this sensor is SRPhoneUsageReport.

You need to provide a reason to record phone usage by adding the SRSensorUsagePhoneUsage dictionary to the NSSensorKitUsageDetail key in the information property list.

See Also

Reading app activity sensors