Contents

HMHomeDelegate

An interface that communicates changes to a home’s configuration.

Declaration

protocol HMHomeDelegate : NSObjectProtocol

Overview

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

Observing Service Configuration

Observing Action and Trigger Configuration

Observing Accessories

See Also

Keeping track of home configuration changes