콘텐츠로 건너뛰기

@capgo/capacitor-light-sensor

Read ambient light levels in lux from the device's light sensor with real-time updates and configurable sampling rates. Requires Capacitor 8+.

Real-time Updates

Receive continuous light sensor readings with configurable update intervals

Event-driven API

Subscribe to light changes with easy-to-use event listeners

Configurable Sampling

Adjust update frequency from 200ms to custom intervals

Battery Efficient

Start and stop sensor on demand to conserve battery

Comprehensive Documentation

Check the Documentation to master the plugin in just a few minutes.