HMAccessoryBrowserDelegate

Trait HMAccessoryBrowserDelegate 

Source
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§

Source

unsafe fn accessoryBrowser_didFindNewAccessory( &self, browser: &HMAccessoryBrowser, accessory: &HMAccessory, )
where Self: Sized + Message,

Available on crate feature 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.

Source

unsafe fn accessoryBrowser_didRemoveNewAccessory( &self, browser: &HMAccessoryBrowser, accessory: &HMAccessory, )
where Self: Sized + Message,

Available on crate feature 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.

Trait Implementations§

Source§

impl ProtocolType for dyn HMAccessoryBrowserDelegate

Source§

const NAME: &'static str = "HMAccessoryBrowserDelegate"

The name of the Objective-C protocol that this type represents. Read more
Source§

fn protocol() -> Option<&'static AnyProtocol>

Get a reference to the Objective-C protocol object that this type represents. Read more
Source§

impl<T> ImplementedBy<T> for dyn HMAccessoryBrowserDelegate

Implementations on Foreign Types§

Source§

impl<T> HMAccessoryBrowserDelegate for ProtocolObject<T>

Implementors§