pub unsafe trait HMAccessoryBrowserDelegate: NSObjectProtocol {
// Provided methods
unsafe fn accessoryBrowser_didFindNewAccessory(
&self,
browser: &HMAccessoryBrowser,
accessory: &HMAccessory,
)
where Self: Sized + Message { ... }
unsafe fn accessoryBrowser_didRemoveNewAccessory(
&self,
browser: &HMAccessoryBrowser,
accessory: &HMAccessory,
)
where Self: Sized + Message { ... }
}Available on crate feature
HMAccessoryBrowser only.Expand description
This delegate receives updates about new accessories in the home.
See also Apple’s documentation
Provided Methods§
Sourceunsafe fn accessoryBrowser_didFindNewAccessory(
&self,
browser: &HMAccessoryBrowser,
accessory: &HMAccessory,
)
Available on crate feature HMAccessory only.
unsafe fn accessoryBrowser_didFindNewAccessory( &self, browser: &HMAccessoryBrowser, accessory: &HMAccessory, )
HMAccessory only.Informs the delegate about new accessories discovered in the home.
Parameter browser: Sender of the message.
Parameter accessory: New accessory that was discovered.
Sourceunsafe fn accessoryBrowser_didRemoveNewAccessory(
&self,
browser: &HMAccessoryBrowser,
accessory: &HMAccessory,
)
Available on crate feature HMAccessory only.
unsafe fn accessoryBrowser_didRemoveNewAccessory( &self, browser: &HMAccessoryBrowser, accessory: &HMAccessory, )
HMAccessory only.Informs the delegate about new accessories removed from the home.
Parameter browser: Sender of the message.
Parameter accessory: Accessory that was previously discovered but are no longer reachable.
This method is also invoked when an accessory is added to a home.