public interface HMHomeManagerDelegate
| Modifier and Type | Method and Description |
|---|---|
default void |
homeManagerDidAddHome(HMHomeManager manager,
HMHome home)
Informs the delegate when a new home is added.
|
default void |
homeManagerDidReceiveAddAccessoryRequest(HMHomeManager manager,
HMAddAccessoryRequest request)
Informs the delegate an accessory needs to be added to the home by using one of the
HMAccessorySetupPayload factory methods on the request parameter.
|
default void |
homeManagerDidRemoveHome(HMHomeManager manager,
HMHome home)
Informs the delegate when an existing home is removed.
|
default void |
homeManagerDidUpdateAuthorizationStatus(HMHomeManager manager,
long status)
Informs the delegate a change in authorization status has occurred.
|
default void |
homeManagerDidUpdateHomes(HMHomeManager manager)
Informs the delegate when homes configured by the user have been detected by the system.
|
default void |
homeManagerDidUpdatePrimaryHome(HMHomeManager manager)
Informs the delegate when the primary home is modified.
|
default void homeManagerDidAddHome(HMHomeManager manager, HMHome home)
manager - Sender of this message.home - New home that was added.default void homeManagerDidRemoveHome(HMHomeManager manager, HMHome home)
manager - Sender of this message.home - Home that was removed.default void homeManagerDidUpdateHomes(HMHomeManager manager)
This delegate method is also invoked to inform an application of significant changes to the home configuration. Applications should use this as a cue to invalidate their current references to HomeKit objects and refresh their views with the new list of homes.
manager - Sender of this message.default void homeManagerDidUpdatePrimaryHome(HMHomeManager manager)
manager - Sender of this message.default void homeManagerDidReceiveAddAccessoryRequest(HMHomeManager manager, HMAddAccessoryRequest request)
manager - Sender of this message.request - Information for the add accessory request.default void homeManagerDidUpdateAuthorizationStatus(HMHomeManager manager, long status)
manager - Sender of this message.status - The updated authorization status.