HMHomeDelegate

Trait HMHomeDelegate 

Source
pub unsafe trait HMHomeDelegate: NSObjectProtocol {
Show 32 methods // Provided methods unsafe fn homeDidUpdateName(&self, home: &HMHome) where Self: Sized + Message { ... } unsafe fn homeDidUpdateAccessControlForCurrentUser(&self, home: &HMHome) where Self: Sized + Message { ... } unsafe fn home_didAddAccessory( &self, home: &HMHome, accessory: &HMAccessory, ) where Self: Sized + Message { ... } unsafe fn home_didRemoveAccessory( &self, home: &HMHome, accessory: &HMAccessory, ) where Self: Sized + Message { ... } unsafe fn home_didAddUser(&self, home: &HMHome, user: &HMUser) where Self: Sized + Message { ... } unsafe fn home_didRemoveUser(&self, home: &HMHome, user: &HMUser) where Self: Sized + Message { ... } unsafe fn home_didUpdateRoom_forAccessory( &self, home: &HMHome, room: &HMRoom, accessory: &HMAccessory, ) where Self: Sized + Message { ... } unsafe fn home_didAddRoom(&self, home: &HMHome, room: &HMRoom) where Self: Sized + Message { ... } unsafe fn home_didRemoveRoom(&self, home: &HMHome, room: &HMRoom) where Self: Sized + Message { ... } unsafe fn home_didUpdateNameForRoom(&self, home: &HMHome, room: &HMRoom) where Self: Sized + Message { ... } unsafe fn home_didAddZone(&self, home: &HMHome, zone: &HMZone) where Self: Sized + Message { ... } unsafe fn home_didRemoveZone(&self, home: &HMHome, zone: &HMZone) where Self: Sized + Message { ... } unsafe fn home_didUpdateNameForZone(&self, home: &HMHome, zone: &HMZone) where Self: Sized + Message { ... } unsafe fn home_didAddRoom_toZone( &self, home: &HMHome, room: &HMRoom, zone: &HMZone, ) where Self: Sized + Message { ... } unsafe fn home_didRemoveRoom_fromZone( &self, home: &HMHome, room: &HMRoom, zone: &HMZone, ) where Self: Sized + Message { ... } unsafe fn home_didAddServiceGroup( &self, home: &HMHome, group: &HMServiceGroup, ) where Self: Sized + Message { ... } unsafe fn home_didRemoveServiceGroup( &self, home: &HMHome, group: &HMServiceGroup, ) where Self: Sized + Message { ... } unsafe fn home_didUpdateNameForServiceGroup( &self, home: &HMHome, group: &HMServiceGroup, ) where Self: Sized + Message { ... } unsafe fn home_didAddService_toServiceGroup( &self, home: &HMHome, service: &HMService, group: &HMServiceGroup, ) where Self: Sized + Message { ... } unsafe fn home_didRemoveService_fromServiceGroup( &self, home: &HMHome, service: &HMService, group: &HMServiceGroup, ) where Self: Sized + Message { ... } unsafe fn home_didAddActionSet( &self, home: &HMHome, action_set: &HMActionSet, ) where Self: Sized + Message { ... } unsafe fn home_didRemoveActionSet( &self, home: &HMHome, action_set: &HMActionSet, ) where Self: Sized + Message { ... } unsafe fn home_didUpdateNameForActionSet( &self, home: &HMHome, action_set: &HMActionSet, ) where Self: Sized + Message { ... } unsafe fn home_didUpdateActionsForActionSet( &self, home: &HMHome, action_set: &HMActionSet, ) where Self: Sized + Message { ... } unsafe fn home_didAddTrigger(&self, home: &HMHome, trigger: &HMTrigger) where Self: Sized + Message { ... } unsafe fn home_didRemoveTrigger(&self, home: &HMHome, trigger: &HMTrigger) where Self: Sized + Message { ... } unsafe fn home_didUpdateNameForTrigger( &self, home: &HMHome, trigger: &HMTrigger, ) where Self: Sized + Message { ... } unsafe fn home_didUpdateTrigger(&self, home: &HMHome, trigger: &HMTrigger) where Self: Sized + Message { ... } unsafe fn home_didUnblockAccessory( &self, home: &HMHome, accessory: &HMAccessory, ) where Self: Sized + Message { ... } unsafe fn home_didEncounterError_forAccessory( &self, home: &HMHome, error: &NSError, accessory: &HMAccessory, ) where Self: Sized + Message { ... } unsafe fn home_didUpdateHomeHubState( &self, home: &HMHome, home_hub_state: HMHomeHubState, ) where Self: Sized + Message { ... } unsafe fn homeDidUpdateSupportedFeatures(&self, home: &HMHome) where Self: Sized + Message { ... }
}
Available on crate feature HMHome only.
Expand description

This delegate receives update on the various accessories, action sets, groups and triggers managed in the home.

See also Apple’s documentation

Provided Methods§

Source

unsafe fn homeDidUpdateName(&self, home: &HMHome)
where Self: Sized + Message,

Informs the delegate of a change in the name of a home.

Parameter home: Sender of this message.

Source

unsafe fn homeDidUpdateAccessControlForCurrentUser(&self, home: &HMHome)
where Self: Sized + Message,

Informs the delegate when the access control for current user has been updated.

Parameter home: Sender of the message.

Source

unsafe fn home_didAddAccessory(&self, home: &HMHome, accessory: &HMAccessory)
where Self: Sized + Message,

Available on crate feature HMAccessory only.

Informs the delegate of addition of an accessory to the home.

Parameter home: Sender of the message.

Parameter accessory: Accessory that was added to the home.

Source

unsafe fn home_didRemoveAccessory(&self, home: &HMHome, accessory: &HMAccessory)
where Self: Sized + Message,

Available on crate feature HMAccessory only.

Informs the delegate of removal of an accessory from the home.

Parameter home: Sender of the message.

Parameter accessory: Accessory that was removed from the home.

Source

unsafe fn home_didAddUser(&self, home: &HMHome, user: &HMUser)
where Self: Sized + Message,

Available on crate feature HMUser only.

Informs the delegate that a user was added to the home.

Parameter home: Sender of this message.

Parameter user: User who was granted access to the home.

Source

unsafe fn home_didRemoveUser(&self, home: &HMHome, user: &HMUser)
where Self: Sized + Message,

Available on crate feature HMUser only.

Informs the delegate that a user was removed from the home.

Parameter home: Sender of this message.

Parameter user: User whose access was revoked from the home.

Source

unsafe fn home_didUpdateRoom_forAccessory( &self, home: &HMHome, room: &HMRoom, accessory: &HMAccessory, )
where Self: Sized + Message,

Available on crate features HMAccessory and HMRoom only.

Informs the delegate when a new room is assigned to an accessory

Parameter home: Sender of the message.

Parameter room: New room for the accessory.

Parameter accessory: Accessory that was assigned a new room.

Source

unsafe fn home_didAddRoom(&self, home: &HMHome, room: &HMRoom)
where Self: Sized + Message,

Available on crate feature HMRoom only.

Informs the delegate of addition of a room to the home.

Parameter home: Sender of the message.

Parameter room: Room that was added to the home.

Source

unsafe fn home_didRemoveRoom(&self, home: &HMHome, room: &HMRoom)
where Self: Sized + Message,

Available on crate feature HMRoom only.

Informs the delegate of removal of a room from the home.

Parameter home: Sender of the message.

Parameter room: Room that was removed from the home.

Source

unsafe fn home_didUpdateNameForRoom(&self, home: &HMHome, room: &HMRoom)
where Self: Sized + Message,

Available on crate feature HMRoom only.

Informs the delegate that the name of a room was modified

Parameter home: Sender of this message.

Parameter room: Room that was modified.

Source

unsafe fn home_didAddZone(&self, home: &HMHome, zone: &HMZone)
where Self: Sized + Message,

Available on crate feature HMZone only.

Informs the delegate of addition of a zone to the home.

Parameter home: Sender of the message.

Parameter zone: Zone that was added to the home.

Source

unsafe fn home_didRemoveZone(&self, home: &HMHome, zone: &HMZone)
where Self: Sized + Message,

Available on crate feature HMZone only.

Informs the delegate of removal of a zone from the home.

Parameter home: Sender of the message.

Parameter zone: Zone that was removed from the home.

Source

unsafe fn home_didUpdateNameForZone(&self, home: &HMHome, zone: &HMZone)
where Self: Sized + Message,

Available on crate feature HMZone only.

Informs the delegate that the name of a zone was modified.

Parameter home: Sender of this message.

Parameter zone: Zone that was modified.

Source

unsafe fn home_didAddRoom_toZone( &self, home: &HMHome, room: &HMRoom, zone: &HMZone, )
where Self: Sized + Message,

Available on crate features HMRoom and HMZone only.

Informs the delegate that the room was added to a zone.

Parameter home: Sender of this message.

Parameter room: Room that was added to the zone.

Parameter zone: Zone that was modified.

Source

unsafe fn home_didRemoveRoom_fromZone( &self, home: &HMHome, room: &HMRoom, zone: &HMZone, )
where Self: Sized + Message,

Available on crate features HMRoom and HMZone only.

Informs the delegate that the room was removed from a zone.

Parameter home: Sender of this message.

Parameter room: Room that was removed from the zone.

Parameter zone: Zone that was modified.

Source

unsafe fn home_didAddServiceGroup(&self, home: &HMHome, group: &HMServiceGroup)
where Self: Sized + Message,

Available on crate feature HMServiceGroup only.

Informs the delegate that a service group was added to the home.

Parameter home: Sender of the message.

Parameter group: Service group that was added to the home.

Source

unsafe fn home_didRemoveServiceGroup( &self, home: &HMHome, group: &HMServiceGroup, )
where Self: Sized + Message,

Available on crate feature HMServiceGroup only.

Informs the delegate that a service group was removed from the home.

Parameter home: Sender of the message.

Parameter group: Service group that was removed from the home.

Source

unsafe fn home_didUpdateNameForServiceGroup( &self, home: &HMHome, group: &HMServiceGroup, )
where Self: Sized + Message,

Available on crate feature HMServiceGroup only.

Informs the delegate that the name of a service group was modified.

Parameter home: Sender of this message.

Parameter group: The service group that was modified.

Source

unsafe fn home_didAddService_toServiceGroup( &self, home: &HMHome, service: &HMService, group: &HMServiceGroup, )
where Self: Sized + Message,

Available on crate features HMService and HMServiceGroup only.

Informs the delegate that a service was added to a service group.

Parameter home: Sender of this message.

Parameter service: Service that was added to the service group.

Parameter group: Service group that was modified.

Source

unsafe fn home_didRemoveService_fromServiceGroup( &self, home: &HMHome, service: &HMService, group: &HMServiceGroup, )
where Self: Sized + Message,

Available on crate features HMService and HMServiceGroup only.

Informs the delegate that a service was removed from a service group.

Parameter home: Sender of this message.

Parameter service: Service that was removed from the service group.

Parameter group: Service group that was modified.

Source

unsafe fn home_didAddActionSet(&self, home: &HMHome, action_set: &HMActionSet)
where Self: Sized + Message,

Available on crate feature HMActionSet only.

Informs the delegate that an action set was added to the home.

Parameter home: Sender of this message.

Parameter actionSet: Action set that was added to the home.

Source

unsafe fn home_didRemoveActionSet( &self, home: &HMHome, action_set: &HMActionSet, )
where Self: Sized + Message,

Available on crate feature HMActionSet only.

Informs the delegate that an action set was removed from the home.

Parameter home: Sender of this message.

Parameter actionSet: Action set that was removed from the home.

Source

unsafe fn home_didUpdateNameForActionSet( &self, home: &HMHome, action_set: &HMActionSet, )
where Self: Sized + Message,

Available on crate feature HMActionSet only.

Informs the delegate that the name of an action set was modified.

Parameter home: Sender of this message.

Parameter actionSet: Action set that was modified.

Source

unsafe fn home_didUpdateActionsForActionSet( &self, home: &HMHome, action_set: &HMActionSet, )
where Self: Sized + Message,

Available on crate feature HMActionSet only.

Informs the delegate that the actions of an action set was modified. This indicates that an action was added/removed or modified (value replaced)

Parameter home: Sender of this message.

Parameter actionSet: Action set that was modified.

Source

unsafe fn home_didAddTrigger(&self, home: &HMHome, trigger: &HMTrigger)
where Self: Sized + Message,

Available on crate feature HMTrigger only.

Informs the delegate of the addition of a trigger to the home.

Parameter home: Sender of the message.

Parameter trigger: Trigger that was added to the home.

Source

unsafe fn home_didRemoveTrigger(&self, home: &HMHome, trigger: &HMTrigger)
where Self: Sized + Message,

Available on crate feature HMTrigger only.

Informs the delegate of removal of a trigger from the home.

Parameter home: Sender of the message.

Parameter trigger: Trigger that was removed from the home.

Source

unsafe fn home_didUpdateNameForTrigger( &self, home: &HMHome, trigger: &HMTrigger, )
where Self: Sized + Message,

Available on crate feature HMTrigger only.

Informs the delegate that the name of the trigger was modified.

Parameter home: Sender of this message.

Parameter trigger: Trigger that was modified.

Source

unsafe fn home_didUpdateTrigger(&self, home: &HMHome, trigger: &HMTrigger)
where Self: Sized + Message,

Available on crate feature HMTrigger only.

Informs the delegate whenever a trigger is updated. For example, this method may be invoked when a trigger is activated, when a trigger fires, or when the action sets associated with a trigger are modified.

Parameter home: Sender of this message.

Parameter trigger: The trigger that was updated.

Source

unsafe fn home_didUnblockAccessory( &self, home: &HMHome, accessory: &HMAccessory, )
where Self: Sized + Message,

Available on crate feature HMAccessory only.

Informs the delegate that an accessory has been unblocked

Parameter home: Sender of this message.

Parameter accessory: Accessory that was unblocked

Source

unsafe fn home_didEncounterError_forAccessory( &self, home: &HMHome, error: &NSError, accessory: &HMAccessory, )
where Self: Sized + Message,

Available on crate feature HMAccessory only.

Informs the delegate that a configured accessory encountered an error. The delegate should check the blocked state of the accessory

Parameter home: Sender of this message.

Parameter error: Error encountered by accessory.

Parameter accessory: Accessory that encountered the error

Source

unsafe fn home_didUpdateHomeHubState( &self, home: &HMHome, home_hub_state: HMHomeHubState, )
where Self: Sized + Message,

Informs the delegate when state of the home hub changes.

Parameter home: Sender of the message.

Parameter homeHubState: The new home hub state.

Source

unsafe fn homeDidUpdateSupportedFeatures(&self, home: &HMHome)
where Self: Sized + Message,

Informs the delegate when the supported features of this home changes.

The supported features covered by this are currently:

  • supportsAddingNetworkRouter

Parameter home: Sender of the message.

Trait Implementations§

Source§

impl ProtocolType for dyn HMHomeDelegate

Source§

const NAME: &'static str = "HMHomeDelegate"

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 HMHomeDelegate

Implementations on Foreign Types§

Source§

impl<T> HMHomeDelegate for ProtocolObject<T>
where T: ?Sized + HMHomeDelegate,

Implementors§