ambientLightSensor
A sensor that provides ambient light information.
Declaration
static let ambientLightSensor: SRSensorDiscussion
The sample type for this sensor is SRAmbientLightSample.
You need to provide a reason to record ambient light by adding the SRSensorUsageAmbientLightSensor dictionary to the NSSensorKitUsageDetail key in the information property list.