The manager for a collection of one or more of a user’s homes.
- iOS 8.0+
- tvOS 10.0+
- watchOS 2.0+
HomeKit stores the user’s home automation information in a database that’s shared among Apple’s built-in iOS Home app, your HomeKit-enabled app, and apps from other developers. All these apps access the database as peers using the HomeKit framework.
Each app creates a single
HMHome instance to coordinate its HomeKit-related activities. The manager’s
homes array gives your app access to a collection of
HMHome instances that represent the user’s homes. These in turn contain references to the home automation accessories that your app can inspect and control.
HMHome protocol in your app to stay informed of any changes to the set of homes made outside your app.