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 { ... }
}HMHomeManager only.Expand description
This delegate receives updates on homes being managed via the home manager.
See also Apple’s documentation
Provided Methods§
Sourceunsafe fn homeManager_didUpdateAuthorizationStatus(
&self,
manager: &HMHomeManager,
status: HMHomeManagerAuthorizationStatus,
)
unsafe fn homeManager_didUpdateAuthorizationStatus( &self, manager: &HMHomeManager, status: HMHomeManagerAuthorizationStatus, )
Informs the delegate a change in authorization status has occurred.
Parameter manager: Sender of this message.
Parameter status: The updated authorization status.
Sourceunsafe fn homeManagerDidUpdateHomes(&self, manager: &HMHomeManager)
unsafe fn homeManagerDidUpdateHomes(&self, manager: &HMHomeManager)
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.
Sourceunsafe fn homeManagerDidUpdatePrimaryHome(&self, manager: &HMHomeManager)
unsafe fn homeManagerDidUpdatePrimaryHome(&self, manager: &HMHomeManager)
Informs the delegate when the primary home is modified.
Parameter manager: Sender of this message.
Sourceunsafe fn homeManager_didAddHome(&self, manager: &HMHomeManager, home: &HMHome)
Available on crate feature HMHome only.
unsafe fn homeManager_didAddHome(&self, manager: &HMHomeManager, home: &HMHome)
HMHome only.Informs the delegate when a new home is added.
Parameter manager: Sender of this message.
Parameter home: New home that was added.
Sourceunsafe fn homeManager_didRemoveHome(
&self,
manager: &HMHomeManager,
home: &HMHome,
)
Available on crate feature HMHome only.
unsafe fn homeManager_didRemoveHome( &self, manager: &HMHomeManager, home: &HMHome, )
HMHome only.Informs the delegate when an existing home is removed.
Parameter manager: Sender of this message.
Parameter home: Home that was removed.
Sourceunsafe fn homeManager_didReceiveAddAccessoryRequest(
&self,
manager: &HMHomeManager,
request: &HMAddAccessoryRequest,
)
Available on crate feature HMAddAccessoryRequest only.
unsafe fn homeManager_didReceiveAddAccessoryRequest( &self, manager: &HMHomeManager, request: &HMAddAccessoryRequest, )
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.