HMHomeManager
The manager for a collection of one or more of a user’s homes.
Declaration
class HMHomeManagerMentioned in
Overview
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.
[Image]
Each app creates a single HMHomeManager 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.
[Image]
Adopt the HMHomeManagerDelegate protocol in your app to stay informed of any changes to the set of homes made outside your app.
Topics
Inspecting authorization status
Working with the home layout
Keeping track of connected homes
Adding and removing homes
Providing installation services
addProvisionalHome(named:configuration:)HMHomeManager.ProvisionalConfigurationHMHomeManager.PairingIdentity