getLightLevel

abstract suspend fun getLightLevel(id: ResourceId): LightLevel

Get the state of a single light level sensor.

Return

State and capability information about the light level sensor.

Parameters

id

The resource ID of the light level sensor to fetch data about.