Contents

ambientLightSensor

A sensor that provides ambient light information.

Declaration

static let ambientLightSensor: SRSensor

Discussion

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.

See Also

Reading environment sensors