Contents

deviceUsageReport

A sensor that provides information about device usage.

Declaration

static let deviceUsageReport: SRSensor

Discussion

The sample type for this sensor is SRDeviceUsageReport.

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

See Also

Reading device sensors