Class

HMAccessoryBrowser

A network browser you can use to discover new accessories in a home.

Declaration

class HMAccessoryBrowser : NSObject

Overview

Discovering new network accessories is an expensive operation in terms of time and power. Only start searching for new accessories when the user explicitly asks to do so, and stop searching as soon as the user has chosen the new accessories to add to their home.

Topics

Discovering Accessories

var discoveredAccessories: [HMAccessory]

An array of accessories discovered during a search.

func startSearchingForNewAccessories()

Starts searching for accessories not yet associated with a home.

func stopSearchingForNewAccessories()

Stops searching for new accessories.

Tracking the Addition or Removal of Accessories

var delegate: HMAccessoryBrowserDelegate?

A delegate that receives updates on the discovered accessories.

protocol HMAccessoryBrowserDelegate

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

Relationships

Inherits From

Conforms To