PROTOCOLS
Sensor
Defined in fuchsia.lightsensor/sensor.fidl
Sensor
will return calibrated readings from a product-configured light
sensor.
Watch
Gets the current [LightSensorData]. Returns immediately on first call; subsequent calls return when the value changes.
Request
<EMPTY>
Response
Name | Type |
---|---|
data |
LightSensorData
|
STRUCTS
Rgbc
Defined in fuchsia.lightsensor/types.fidl
Device-specific intensity values for the color channels in the light sensor.
Field | Type | Description | Default |
---|---|---|---|
red_intensity |
float32
|
Intensity of red light measured by the light sensor. |
No default |
green_intensity |
float32
|
Intensity of green light measured by the light sensor. |
No default |
blue_intensity |
float32
|
Intensity of blue light measured by the light sensor. |
No default |
clear_intensity |
float32
|
Intensity of clear light measured by the light sensor. |
No default |
TABLES
LightSensorData
Defined in fuchsia.lightsensor/sensor.fidl
Ordinal | Field | Type | Description |
---|---|---|---|
1 |
rgbc |
Rgbc
|
Light intensities measured by the light sensor. |
2 |
calculated_lux |
float32
|
A weighted sum of the RGBC intensities. |
3 |
correlated_color_temperature |
float32
|
The color temperature of the measured light. |