Join Tammy Coron for an in-depth discussion in this video Observing HomeKit database changes, part of Developing for HomeKit & iOS.
- [Voiceover] Let's take an in-depth look…at the HomeKit Delegation pattern…to get a better understanding of how it all works.…Most actions, such as adding and removing homes,…include a method with a completion handler.…Whenever a device initiates a request…using one of those methods, only the completion handler…is executed, meaning it does not receive…the Delegate message.…Let's look at this another way.…When using the addRoom method to add a room to a zone,…notice it has a completion handler.…
There's also a corresponding didAddRoom…toZone Delegate method.…If Device A adds a room to a zone,…the corresponding Delegate message…will not be sent to Device A.…Instead, it will be sent to Device B.…That's why when working with HomeKit,…it's important to make sure you update your UI…in both the completion handler and the Delegate methods.…
- What is HomeKit?
- What's new in HomeKit?
- Using the HomeKit Accessory Simulator
- Defining a home layout
- Using the Home Manager
- Configuring homes, rooms, and zones
- Creating your first home
- Observing HomeKit database changes
- Configuring actions and action sets
- Working with triggers
- Integrating with Siri
- Building your first app with HomeKit integration
Skill Level Intermediate
Programming iOS 9 and GamePlayKitwith Tammy Coron1h 32m Intermediate
1. Getting Started with HomeKit
2. Understanding Home Configuration
3. Creating Your First Home
Working with Accessories1m 53s
4. An In-Depth Look at the HomeKit Database
5. Services, Characteristics, and Service Groups
6. Managing the Home
7. Creating a HomeKit App
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.