Language: HTML | XAML

Responding to light sensors (HTML)

Applies to Windows and Windows Phone


Developers can create apps that use sensors to detect and respond to changes in ambient light. For example, an application can respond when a user walks outdoors with their slate device, by increasing the contrast between text and background.

In this section


Quickstart: Responding to changes in lighting

You can use the ambient light sensor to detect changes in lighting with an app written in JavaScript.




© 2014 Microsoft