<!--
{
  "availability" : [
    "iOS: 14.0.0 -",
    "iPadOS: 14.0.0 -",
    "macCatalyst: 14.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SensorKit",
  "identifier" : "/documentation/SensorKit/SRAmbientLightSample",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "SensorKit"
    ],
    "preciseIdentifier" : "c:objc(cs)SRAmbientLightSample"
  },
  "title" : "SRAmbientLightSample"
}
-->

# SRAmbientLightSample

The amount of ambient light in the user’s environment.

```
class SRAmbientLightSample
```

## Overview

The [`ambientLightSensor`](/documentation/SensorKit/SRSensor/ambientLightSensor) sensor provides this class as its [`sample`](/documentation/SensorKit/SRFetchResult/sample) type.

## Topics

### Measuring light level

[`chromaticity`](/documentation/SensorKit/SRAmbientLightSample/chromaticity-swift.property)

A coordinate pair that describes the sample’s light brightness and tint.

[`SRAmbientLightSample.Chromaticity`](/documentation/SensorKit/SRAmbientLightSample/Chromaticity-swift.struct)

A coordinate pair that describes light brightness and tint.

[`lux`](/documentation/SensorKit/SRAmbientLightSample/lux)

An object that describes the sample’s luminous flux.

[`placement`](/documentation/SensorKit/SRAmbientLightSample/placement)

The light’s location relative to the sensor.

[`SRAmbientLightSample.SensorPlacement`](/documentation/SensorKit/SRAmbientLightSample/SensorPlacement)

Directional values that describe light-source location with respect to the sensor.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)