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:
CurrentValue
IsDataValid
TimeBetweenUpdates
Windows Phone sensors use an event-based model ...
Get Windows® Phone 8 Unleashed now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.