O'Reilly logo

Windows Application Development Cookbook by Marcin Jamro

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

Chapter 7.  Built-in Sensors

In this chapter, the following recipes will be covered:

  • Detecting motion using an accelerometer
  • Reading data from a compass
  • Obtaining the orientation of a device
  • Reading data from a light sensor
  • Launching vibrations
  • Reading NFC tags
  • Obtaining the current GPS location
  • Disabling switching off the screen

Introduction

While developing applications for devices with the Windows 10 operating system, you can use various built-in sensors. The obtained values can be then used to control the application or to adjust its design in order to enhance user experience. Of course, you should think about the availability of such sensors because various devices differ from each other and could be equipped with a different set of built-in sensors. ...

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