Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/evt/lib/types/index.ts>dom.DeviceLightEvent

💧EventEmitter's typesafe replacement
Go to Latest
interface dom.DeviceLightEvent
implements Event
import { type dom } from "https://deno.land/x/evt@v2.4.16/lib/types/index.ts";
const { DeviceLightEvent } = dom;

The DeviceLightEvent provides web developers with information from photo sensors or similiar detectors about ambient light levels near the device. For example this may be useful to adjust the screen's brightness based on the current ambient light level in order to save energy or provide better readability.

Properties

readonly
value: number