Interface HMAccessoryBrowserDelegate


  • public interface HMAccessoryBrowserDelegate
    This delegate receives updates about new accessories in the home. API-Since: 8.0
    • Method Detail

      • accessoryBrowserDidFindNewAccessory

        default void accessoryBrowserDidFindNewAccessory​(@NotNull
                                                         @NotNull HMAccessoryBrowser browser,
                                                         @NotNull
                                                         @NotNull 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​(@NotNull
                                                           @NotNull HMAccessoryBrowser browser,
                                                           @NotNull
                                                           @NotNull 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.