Join Tammy Coron for an in-depth discussion in this video Working with homes, part of iOS HomeKit Quick Start.
- [Voiceover] Working with Homes…is relatively straight-forward.…Getting a list of homes is as easy…as reading the Homes array from within the Home Manager.…Here we're creating the Home Manager,…and then adding its list of homes…to an array we can use later in a table view.…To add a home, call the addHomeWithName method…from the Home Manager, and pass in the name of the home.…Notice there's a completion handler.…You can use that to update your UI.…I should mention that Home Names must be unique.…Removing a home is just as easy.…
Once again, we'll use a method…from the Home Manager to do this.…As you might have guessed, the name…of that method is removeHome.…Simply pass in the home object you wish to remove,…and poof, it's gone.…As with most methods in HomeKit,…there's a completion handler.…removeHome is not exception.…You can use this handler to either update the UI…or take some type of action after the home's been removed.…
- 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
iOS 9 App Development: GamePlayKitwith Tammy Coron1h 31m 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.