Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Intro to watchOS 2

Sponsored · Your Podcast. Everywhere. Effortlessly. Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
Avatar for Ben Morrow Ben Morrow
August 20, 2015

Intro to watchOS 2

The operating system for Apple Watch now has a proper name and struts some brand new tricks. If you learned how to use WatchKit over the past year, you might find it fun that apps now can run on the Watch hardware and take advantage of the sensors. We’ll step through real world use cases of apps written for watchOS 2 and answer questions about what is possible.

Ben Morrow is a developer, author, and hackathon organizer. With the Apple Watch community, he's been working on apps made for the new device platform. Find more video and code at http://happy.watch­

Avatar for Ben Morrow

Ben Morrow

August 20, 2015
Tweet

More Decks by Ben Morrow

Other Decks in Programming

Transcript

  1. ClockKit Contacts Core Data Core Foundation Core Graphics Core Location

    Core Motion EventKit HealthKit HomeKit ImageIO MapKit Mobile Core Services PassKit Security Watch Connectivity
  2. playHaptic(_: WKHapticType) enum WKHapticType : Int { case Notification case

    DirectionUp case DirectionDown case Success case Failure case Retry case Start case Stop case Click }
  3. import HealthKit let healthStore = HKHealthStore() let workoutSession = HKWorkoutSession(

    activityType: .Other, locationType: .Indoor) healthStore.startWorkoutSession( workoutSession)
  4. HealthKit Sample Code how to make a workout app for

    watchOS 2 bit.ly/hkworkout keep app alive during workout bit.ly/hkactive