HMHomeDelegate
An interface that communicates changes to a home’s configuration.
Declaration
protocol HMHomeDelegate : NSObjectProtocolOverview
Adopt this protocol to find out about changes made outside your app to a particular home, like when the home’s name changes, or when a room is added.
Changes that your app initiates—even those made asynchronously followed by a call to a completion handler—generate delegate callbacks in other apps, but not in your own. As a result, your app must update its internal data store or user interface from both the completion handler of an asynchronous call, and the delegate callback that corresponds to the same kind of change made by another app.
To be alerted about changes made to the overall list of homes, adopt the HMHomeManagerDelegate protocol. To find out about changes made to specific accessories, adopt the HMAccessoryDelegate protocol.
Topics
Observing Home Configuration
homeDidUpdateName(_:)home(_:didAdd:)home(_:didUpdate:for:)home(_:didRemove:)home(_:didAdd:)home(_:didUpdateNameFor:)home(_:didAdd:to:)home(_:didRemove:from:)home(_:didRemove:)home(_:didAdd:)home(_:didUpdateNameFor:)home(_:didRemove:)home(_:didAdd:)home(_:didRemove:)homeDidUpdateAccessControl(forCurrentUser:)home(_:didUpdate:)homeDidUpdateSupportedFeatures(_:)HMHomeHubState
Observing Service Configuration
Observing Action and Trigger Configuration
home(_:didAdd:)home(_:didUpdateNameFor:)home(_:didUpdateActionsFor:)home(_:didRemove:)home(_:didAdd:)home(_:didUpdateNameFor:)home(_:didUpdate:)home(_:didRemove:)