Integrating devices, printers, and sensors (HTML)

[ This article is for Windows 8.x and Windows Phone 8.x developers writing Windows Runtime apps. If you’re developing for Windows 10, see the latest documentation ]

You can integrate devices, printers, and sensors in your Windows Store app to create a rich experience for your users. This section shows you how to support a number of devices in your app, like cameras, sensors, and removable storage.

Here are some of the features that you can add to your app:

  • An enhanced print experience
  • The right motion and orientation sensor for your game
  • A light sensor that adjusts screen brightness
  • Detection of a user's geographic location

The following video gives you a brief overview of the sensors available to you when building Windows Store apps.

In this section

Topic Description

Enabling and disabling device capabilities

Enable your app to use cameras, microphones, location sensors, text messaging, removable storage and near-field proximity.

Enumerating devices

Use the Windows.Devices.Enumeration and Windows.Devices.Enumeration.Pnp namespaces to enumerate devices.

Communicating with peripheral devices

Scan content from a scanner or use device protocol APIs to communicate with HID, Bluetooth GATT, and Bluetooth RFCOMM devices.


Provide the same high-quality print experience in your Windows Store app that users have come to expect in other Windows applications.

Choosing the right sensors to use

Explore the many varieties of motion, orientation, and light sensor available to Windows Store apps.

Sensor data and display orientation

Adjust your sensor data for rotation if your app supports automatic rotation.

Sensor calibration

Determine the right course of action to calibrate a device.

Responding to motion and orientation sensors

Create Windows Store apps that use sensors to detect and respond to a variety of user movements.

Responding to light sensors

Create Windows Store apps that use sensors to detect and respond to changes in ambient light.

Detecting geolocation

Create Windows Store apps that detect the user's geographic location.

Accessing content on removable storage

Create Windows Store apps that access content on media and storage devices by using the Windows Portable Devices (WPD) driver technology.


Roadmap for Windows Store apps using JavaScript