CHAPTER 9

image

Sensors

Sensors are a very important part of mobile applications, both on phones and tablets, and other form factors. They provide an alternative means of input or interaction with the device. There are a wide range of sensors in existence, and they provide a wide range of functions, from measuring the temperature to determining your location to knowing at what angle you’re holding the device.

As developers, we have access to API functions that can read the sensor information. That way we can retrieve data relative to the user’s position or build a game that is controlled by tilting the device and so forth. The possibilities are almost ...

Get Windows 8 App Projects - XAML and C# Edition 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.