---
title: HMAccessoryBrowserDelegate
framework: homekit
role: symbol
role_heading: Protocol
path: homekit/hmaccessorybrowserdelegate
---

# HMAccessoryBrowserDelegate

An interface used to notify an accessory browser delegate of new accessories.

## Declaration

```swift
protocol HMAccessoryBrowserDelegate : NSObjectProtocol
```

## Overview

Overview important: To enable a consistent user experience across HomeKit enabled apps, use either the addAndSetupAccessories(completionHandler:) or the addAndSetupAccessories(with:completionHandler:) method of the HMHome class instead of an accessory browser. These calls manage all the details of the accessory search process for you.

## Topics

### Tracking new accessories

- [accessoryBrowser(_:didFindNewAccessory:)](homekit/hmaccessorybrowserdelegate/accessorybrowser(_:didfindnewaccessory:).md)
- [accessoryBrowser(_:didRemoveNewAccessory:)](homekit/hmaccessorybrowserdelegate/accessorybrowser(_:didremovenewaccessory:).md)

## Relationships

### Inherits From

- [NSObjectProtocol](objectivec/nsobjectprotocol.md)

## See Also

### Tracking the addition or removal of accessories

- [delegate](homekit/hmaccessorybrowser/delegate.md)
