Contents

keyboardMetrics

A sensor that provides information about keyboard usage.

Declaration

static let keyboardMetrics: SRSensor

Discussion

The sample type for this sensor is SRKeyboardMetrics.

You need to provide a reason to record keyboard metrics by adding the SRSensorUsageKeyboardMetrics dictionary to the NSSensorKitUsageDetail key in the information property list.

See Also

Reading device sensors