Package apple.homekit.protocol
Interface HMAccessoryBrowserDelegate
-
public interface HMAccessoryBrowserDelegateThis delegate receives updates about new accessories in the home. API-Since: 8.0
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default voidaccessoryBrowserDidFindNewAccessory(@NotNull HMAccessoryBrowser browser, @NotNull HMAccessory accessory)Informs the delegate about new accessories discovered in the home.default voidaccessoryBrowserDidRemoveNewAccessory(@NotNull HMAccessoryBrowser browser, @NotNull HMAccessory accessory)Informs the delegate about new accessories removed from the home.
-
-
-
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.
-
-