Contents

ambientPressure

A sensor that provides pressure and temperature metrics.

Declaration

static let ambientPressure: SRSensor

Discussion

The sample type for this sensor is [CMRecordedPressureData].

You need to provide a reason to record ambient pressure by adding the SRSensorUsageElevation dictionary to the NSSensorKitUsageDetail key in the information property list.

See Also

Reading environment sensors