AmbientLight
Statistics of ambient light intensity, in lux, over a sampling period.
Collected by LightProbe for the SensorSamplingPackage.AMBIENT_LIGHT measure, typically from the light sensor on the front of the phone.
- Inheritance
-
- Object
- Serializable
- Data
- SensorData
- AmbientLight
- Annotations
-
- @JsonSerializable(includeIfNull: false, explicitToJson: true)
Constructors
AmbientLight.fromJson
AmbientLight.fromLuxReadings
Create an AmbientLight from a list of lux value readings.
AmbientLight
Properties
fromJsonFunction
The function which can convert a JSON string to an object of this type.
maxLux
getter/setter pair
Maximum light intensity in lux.
meanLux
getter/setter pair
Mean light intensity in lux.
minLux
getter/setter pair
Minimum light intensity in lux.
stdLux
getter/setter pair
Standard deviation of the light intensity in lux.
Methods
toJson
Return a JSON encoding of this object.