Hello.

I am Paul Kinlan.

A Developer Advocate for Chrome and the Open Web at Google.

Getting started with the Ambient Light Sensor

Paul Kinlan

ディーン・ヒューム氏は最近、PWAの多くの素晴らしい仕事をしています。また、彼は新しいプラットフォームAPIの多くを探っています。この場合は汎用センサーAPIです: The Ambient Light Sensor API provides developers with the means to determine ambient light levels as detected by the device’s main light detector. This information is available to developers in terms of lux units. If you are building a Progressive Web App and you want to style it differently depending on the light levels in the room, then this could be the feature for you. There are a number of use cases for this feature, such as a web application that provides input for a smart home system to control lighting, a “Kindle” style reading app, or even a web app that calculates settings for a camera with manual controls (aperture, shutter speed, ISO, etc.

Read More