5. Accessing the Apple Watch Hardware

This is what customers pay us for—to sweat all these details so it’s easy and pleasant for them to use our computers. We’re supposed to be really good at this. That doesn’t mean we don’t listen to customers, but it’s hard for them to tell you what they want when they’ve never seen anything remotely like it.

Steve Jobs

In watchOS 1.0, Apple did not provide third-party developers access to the various hardware features of the Apple Watch, such as the accelerometer, microphone, and Taptic Engine. However, in watchOS 2, Apple has exposed some of these features to developers so that they can create more exciting watch apps.

In this chapter, you learn how to access some of these hardware features and see how they ...

Get Learning WatchKit Programming: A Hands-On Guide to Creating watchOS 2 Applications, Second 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.