O'Reilly logo

Windows® Phone 8 Unleashed by Daniel Vaughan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Sensors Overview

All sensor classes derive from the class SensorBase<TSensorReading>, allowing you to work with what will become a familiar programming model. SensorBase ensures that sensors and readings are treated in the same way, a consistency that you will come to appreciate the more you work with sensors. The only variation occurs in the type of data that each sensor provides as a reading.

SensorBase<TSensorReading> has the following three properties:

Image CurrentValue

Image IsDataValid

TimeBetweenUpdates

Windows Phone sensors use an event-based model ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required