Package apple.homekit.protocol
Interface HMHomeManagerDelegate
-
public interface HMHomeManagerDelegateThis delegate receives updates on homes being managed via the home manager.
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default voidhomeManagerDidAddHome(HMHomeManager manager, HMHome home)Informs the delegate when a new home is added.default voidhomeManagerDidReceiveAddAccessoryRequest(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 voidhomeManagerDidRemoveHome(HMHomeManager manager, HMHome home)Informs the delegate when an existing home is removed.default voidhomeManagerDidUpdateAuthorizationStatus(HMHomeManager manager, long status)Informs the delegate a change in authorization status has occurred.default voidhomeManagerDidUpdateHomes(HMHomeManager manager)Informs the delegate when homes configured by the user have been detected by the system.default voidhomeManagerDidUpdatePrimaryHome(HMHomeManager manager)Informs the delegate when the primary home is modified.
-
-
-
Method Detail
-
homeManagerDidAddHome
default void homeManagerDidAddHome(HMHomeManager manager, HMHome home)
Informs the delegate when a new home is added.- Parameters:
manager- Sender of this message.home- New home that was added.
-
homeManagerDidRemoveHome
default void homeManagerDidRemoveHome(HMHomeManager manager, HMHome home)
Informs the delegate when an existing home is removed.- Parameters:
manager- Sender of this message.home- Home that was removed.
-
homeManagerDidUpdateHomes
default void homeManagerDidUpdateHomes(HMHomeManager manager)
Informs the delegate when homes configured by the user have been detected by the system. 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.- Parameters:
manager- Sender of this message.
-
homeManagerDidUpdatePrimaryHome
default void homeManagerDidUpdatePrimaryHome(HMHomeManager manager)
Informs the delegate when the primary home is modified.- Parameters:
manager- Sender of this message.
-
homeManagerDidReceiveAddAccessoryRequest
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.- Parameters:
manager- Sender of this message.request- Information for the add accessory request.
-
homeManagerDidUpdateAuthorizationStatus
default void homeManagerDidUpdateAuthorizationStatus(HMHomeManager manager, long status)
Informs the delegate a change in authorization status has occurred.- Parameters:
manager- Sender of this message.status- The updated authorization status.
-
-