HMAccessoryDelegate
A set of methods that defines the communication method for state updates from accessories to their delegates.
Declaration
protocol HMAccessoryDelegate : NSObjectProtocol, SendableOverview
Adopt this protocol to find out about changes made outside your app to a specific accessory, like when the accessory’s name changes, or when a characteristic value changes.
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 find out about changes made to the accessory’s home, adopt the HMHomeDelegate protocol. To be alerted about changes made to the overall list of homes, adopt the HMHomeManagerDelegate protocol.