Instance Property


An array of accessories discovered during a search.


var discoveredAccessories: [HMAccessory] { get }


When you start a new search by calling the startSearchingForNewAccessories() method, HomeKit clears the discoveredAccessories array. It then modifies the array as it discovers new accessories until you end the search by calling the stopSearchingForNewAccessories() method.

See Also

Discovering Accessories

func startSearchingForNewAccessories()

Starts searching for accessories not yet associated with a home.

func stopSearchingForNewAccessories()

Stops searching for new accessories.