Trait HMHomeManagerDelegate

Source
pub unsafe trait HMHomeManagerDelegate: NSObjectProtocol {
    // Provided methods
    unsafe fn homeManager_didUpdateAuthorizationStatus(
        &self,
        manager: &HMHomeManager,
        status: HMHomeManagerAuthorizationStatus,
    )
       where Self: Sized + Message { ... }
    unsafe fn homeManagerDidUpdateHomes(&self, manager: &HMHomeManager)
       where Self: Sized + Message { ... }
    unsafe fn homeManagerDidUpdatePrimaryHome(&self, manager: &HMHomeManager)
       where Self: Sized + Message { ... }
    unsafe fn homeManager_didAddHome(
        &self,
        manager: &HMHomeManager,
        home: &HMHome,
    )
       where Self: Sized + Message { ... }
    unsafe fn homeManager_didRemoveHome(
        &self,
        manager: &HMHomeManager,
        home: &HMHome,
    )
       where Self: Sized + Message { ... }
    unsafe fn homeManager_didReceiveAddAccessoryRequest(
        &self,
        manager: &HMHomeManager,
        request: &HMAddAccessoryRequest,
    )
       where Self: Sized + Message { ... }
}
Available on crate feature HMHomeManager only.
Expand description

This delegate receives updates on homes being managed via the home manager.

See also Apple’s documentation

Provided Methods§

Source

unsafe fn homeManager_didUpdateAuthorizationStatus( &self, manager: &HMHomeManager, status: HMHomeManagerAuthorizationStatus, )
where Self: Sized + Message,

Informs the delegate a change in authorization status has occurred.

Parameter manager: Sender of this message.

Parameter status: The updated authorization status.

Source

unsafe fn homeManagerDidUpdateHomes(&self, manager: &HMHomeManager)
where Self: Sized + Message,

Informs the delegate when homes configured by the user have been detected by the system.

This delegate method is also invoked to inform an application of significant changes to the home configuration. Applications should use this as a cue to invalidate their current references to HomeKit objects and refresh their views with the new list of homes.

Parameter manager: Sender of this message.

Source

unsafe fn homeManagerDidUpdatePrimaryHome(&self, manager: &HMHomeManager)
where Self: Sized + Message,

Informs the delegate when the primary home is modified.

Parameter manager: Sender of this message.

Source

unsafe fn homeManager_didAddHome(&self, manager: &HMHomeManager, home: &HMHome)
where Self: Sized + Message,

Available on crate feature HMHome only.

Informs the delegate when a new home is added.

Parameter manager: Sender of this message.

Parameter home: New home that was added.

Source

unsafe fn homeManager_didRemoveHome( &self, manager: &HMHomeManager, home: &HMHome, )
where Self: Sized + Message,

Available on crate feature HMHome only.

Informs the delegate when an existing home is removed.

Parameter manager: Sender of this message.

Parameter home: Home that was removed.

Source

unsafe fn homeManager_didReceiveAddAccessoryRequest( &self, manager: &HMHomeManager, request: &HMAddAccessoryRequest, )
where Self: Sized + Message,

Available on crate feature HMAddAccessoryRequest only.

Informs the delegate an accessory needs to be added to the home by using one of the HMAccessorySetupPayload factory methods on the request parameter.

Parameter manager: Sender of this message.

Parameter request: Information for the add accessory request.

Trait Implementations§

Source§

impl ProtocolType for dyn HMHomeManagerDelegate

Source§

const NAME: &'static str = "HMHomeManagerDelegate"

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 HMHomeManagerDelegate

Implementations on Foreign Types§

Source§

impl<T> HMHomeManagerDelegate for ProtocolObject<T>

Implementors§