Interface HMAccessoryBrowserDelegate


  • public interface HMAccessoryBrowserDelegate
    This delegate receives updates about new accessories in the home.
    • Method Detail

      • accessoryBrowserDidFindNewAccessory

        default void accessoryBrowserDidFindNewAccessory​(HMAccessoryBrowser browser,
                                                         HMAccessory accessory)
        Informs the delegate about new accessories discovered in the home.
        Parameters:
        browser - Sender of the message.
        accessory - New accessory that was discovered.
      • accessoryBrowserDidRemoveNewAccessory

        default void accessoryBrowserDidRemoveNewAccessory​(HMAccessoryBrowser browser,
                                                           HMAccessory accessory)
        Informs the delegate about new accessories removed from the home.
        Parameters:
        browser - Sender of the message.
        accessory - Accessory that was previously discovered but are no longer reachable. This method is also invoked when an accessory is added to a home.