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

An Introduction to HomeKit framework by Rameswa...

An Introduction to HomeKit framework by Rameswar Prasad

Abstract: Apple introduced HomeKit framework along with iOS 8 in 2014. This triggered lot of innovative IoT-based home electronics for the consumer market. In this session, I will provide an overview of the HomeKit framework and how to get started with your first HomeKit application.

Bio: Having close to 3 and half years experience in iOS technology, I am working with Swift since it turned 1.0. Currently, I’m working at PurpleTalk on IoT, IIoT, and BLE-based applications. When I’m not developing apps, you can find me either Travelling or talking about traveling.

Swift India

May 13, 2017
Tweet

More Decks by Swift India

Other Decks in Programming

Transcript

  1. Topics • Why HomeKit? • How HomeKit works? • How

    to setup HomeKit accessories? • Things to keep in mind
  2. Why HomeKit? • Common Protocol • Data Persistence • Remote

    Access • Multiple Users • Siri Interface • Security (Out of the box)
  3. Important Classes in HomeKit Framework • HMHomeManager • HMHome •

    HMRoom • HMAccessoryBrowser • HMAccessory • HMCharacteristic
  4. Things to keep in mind • App has to be

    in foreground • Must include ‘NSHomeKitUsageDescription’ key in info.plist, above iOS 10 • The app that initiates calls will get only completion handler callback not delegate callback • Names are unique in their own namespace, but it’s case insensitive i.e ‘Home1’ and ‘Home 1’ are same