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 { ... }
}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§
Sourceunsafe fn homeDidUpdateName(&self, home: &HMHome)
unsafe fn homeDidUpdateName(&self, home: &HMHome)
Informs the delegate of a change in the name of a home.
Parameter home: Sender of this message.
Sourceunsafe fn homeDidUpdateAccessControlForCurrentUser(&self, home: &HMHome)
unsafe fn homeDidUpdateAccessControlForCurrentUser(&self, home: &HMHome)
Informs the delegate when the access control for current user has been updated.
Parameter home: Sender of the message.
Sourceunsafe fn home_didAddAccessory(&self, home: &HMHome, accessory: &HMAccessory)
Available on crate feature HMAccessory only.
unsafe fn home_didAddAccessory(&self, home: &HMHome, accessory: &HMAccessory)
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.
Sourceunsafe fn home_didRemoveAccessory(&self, home: &HMHome, accessory: &HMAccessory)
Available on crate feature HMAccessory only.
unsafe fn home_didRemoveAccessory(&self, home: &HMHome, accessory: &HMAccessory)
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.
Sourceunsafe fn home_didAddUser(&self, home: &HMHome, user: &HMUser)
Available on crate feature HMUser only.
unsafe fn home_didAddUser(&self, home: &HMHome, user: &HMUser)
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.
Sourceunsafe fn home_didRemoveUser(&self, home: &HMHome, user: &HMUser)
Available on crate feature HMUser only.
unsafe fn home_didRemoveUser(&self, home: &HMHome, user: &HMUser)
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.
Sourceunsafe fn home_didUpdateRoom_forAccessory(
&self,
home: &HMHome,
room: &HMRoom,
accessory: &HMAccessory,
)
Available on crate features HMAccessory and HMRoom only.
unsafe fn home_didUpdateRoom_forAccessory( &self, home: &HMHome, room: &HMRoom, accessory: &HMAccessory, )
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.
Sourceunsafe fn home_didAddRoom(&self, home: &HMHome, room: &HMRoom)
Available on crate feature HMRoom only.
unsafe fn home_didAddRoom(&self, home: &HMHome, room: &HMRoom)
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.
Sourceunsafe fn home_didRemoveRoom(&self, home: &HMHome, room: &HMRoom)
Available on crate feature HMRoom only.
unsafe fn home_didRemoveRoom(&self, home: &HMHome, room: &HMRoom)
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.
Sourceunsafe fn home_didUpdateNameForRoom(&self, home: &HMHome, room: &HMRoom)
Available on crate feature HMRoom only.
unsafe fn home_didUpdateNameForRoom(&self, home: &HMHome, room: &HMRoom)
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.
Sourceunsafe fn home_didAddZone(&self, home: &HMHome, zone: &HMZone)
Available on crate feature HMZone only.
unsafe fn home_didAddZone(&self, home: &HMHome, zone: &HMZone)
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.
Sourceunsafe fn home_didRemoveZone(&self, home: &HMHome, zone: &HMZone)
Available on crate feature HMZone only.
unsafe fn home_didRemoveZone(&self, home: &HMHome, zone: &HMZone)
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.
Sourceunsafe fn home_didUpdateNameForZone(&self, home: &HMHome, zone: &HMZone)
Available on crate feature HMZone only.
unsafe fn home_didUpdateNameForZone(&self, home: &HMHome, zone: &HMZone)
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.
Sourceunsafe fn home_didAddRoom_toZone(
&self,
home: &HMHome,
room: &HMRoom,
zone: &HMZone,
)
Available on crate features HMRoom and HMZone only.
unsafe fn home_didAddRoom_toZone( &self, home: &HMHome, room: &HMRoom, zone: &HMZone, )
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.
Sourceunsafe fn home_didRemoveRoom_fromZone(
&self,
home: &HMHome,
room: &HMRoom,
zone: &HMZone,
)
Available on crate features HMRoom and HMZone only.
unsafe fn home_didRemoveRoom_fromZone( &self, home: &HMHome, room: &HMRoom, zone: &HMZone, )
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.
Sourceunsafe fn home_didAddServiceGroup(&self, home: &HMHome, group: &HMServiceGroup)
Available on crate feature HMServiceGroup only.
unsafe fn home_didAddServiceGroup(&self, home: &HMHome, group: &HMServiceGroup)
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.
Sourceunsafe fn home_didRemoveServiceGroup(
&self,
home: &HMHome,
group: &HMServiceGroup,
)
Available on crate feature HMServiceGroup only.
unsafe fn home_didRemoveServiceGroup( &self, home: &HMHome, group: &HMServiceGroup, )
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.
Sourceunsafe fn home_didUpdateNameForServiceGroup(
&self,
home: &HMHome,
group: &HMServiceGroup,
)
Available on crate feature HMServiceGroup only.
unsafe fn home_didUpdateNameForServiceGroup( &self, home: &HMHome, group: &HMServiceGroup, )
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.
Sourceunsafe fn home_didAddService_toServiceGroup(
&self,
home: &HMHome,
service: &HMService,
group: &HMServiceGroup,
)
Available on crate features HMService and HMServiceGroup only.
unsafe fn home_didAddService_toServiceGroup( &self, home: &HMHome, service: &HMService, group: &HMServiceGroup, )
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.
Sourceunsafe fn home_didRemoveService_fromServiceGroup(
&self,
home: &HMHome,
service: &HMService,
group: &HMServiceGroup,
)
Available on crate features HMService and HMServiceGroup only.
unsafe fn home_didRemoveService_fromServiceGroup( &self, home: &HMHome, service: &HMService, group: &HMServiceGroup, )
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.
Sourceunsafe fn home_didAddActionSet(&self, home: &HMHome, action_set: &HMActionSet)
Available on crate feature HMActionSet only.
unsafe fn home_didAddActionSet(&self, home: &HMHome, action_set: &HMActionSet)
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.
Sourceunsafe fn home_didRemoveActionSet(
&self,
home: &HMHome,
action_set: &HMActionSet,
)
Available on crate feature HMActionSet only.
unsafe fn home_didRemoveActionSet( &self, home: &HMHome, action_set: &HMActionSet, )
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.
Sourceunsafe fn home_didUpdateNameForActionSet(
&self,
home: &HMHome,
action_set: &HMActionSet,
)
Available on crate feature HMActionSet only.
unsafe fn home_didUpdateNameForActionSet( &self, home: &HMHome, action_set: &HMActionSet, )
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.
Sourceunsafe fn home_didUpdateActionsForActionSet(
&self,
home: &HMHome,
action_set: &HMActionSet,
)
Available on crate feature HMActionSet only.
unsafe fn home_didUpdateActionsForActionSet( &self, home: &HMHome, action_set: &HMActionSet, )
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.
Sourceunsafe fn home_didAddTrigger(&self, home: &HMHome, trigger: &HMTrigger)
Available on crate feature HMTrigger only.
unsafe fn home_didAddTrigger(&self, home: &HMHome, trigger: &HMTrigger)
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.
Sourceunsafe fn home_didRemoveTrigger(&self, home: &HMHome, trigger: &HMTrigger)
Available on crate feature HMTrigger only.
unsafe fn home_didRemoveTrigger(&self, home: &HMHome, trigger: &HMTrigger)
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.
Sourceunsafe fn home_didUpdateNameForTrigger(
&self,
home: &HMHome,
trigger: &HMTrigger,
)
Available on crate feature HMTrigger only.
unsafe fn home_didUpdateNameForTrigger( &self, home: &HMHome, trigger: &HMTrigger, )
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.
Sourceunsafe fn home_didUpdateTrigger(&self, home: &HMHome, trigger: &HMTrigger)
Available on crate feature HMTrigger only.
unsafe fn home_didUpdateTrigger(&self, home: &HMHome, trigger: &HMTrigger)
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.
Sourceunsafe fn home_didUnblockAccessory(
&self,
home: &HMHome,
accessory: &HMAccessory,
)
Available on crate feature HMAccessory only.
unsafe fn home_didUnblockAccessory( &self, home: &HMHome, accessory: &HMAccessory, )
HMAccessory only.Informs the delegate that an accessory has been unblocked
Parameter home: Sender of this message.
Parameter accessory: Accessory that was unblocked
Sourceunsafe fn home_didEncounterError_forAccessory(
&self,
home: &HMHome,
error: &NSError,
accessory: &HMAccessory,
)
Available on crate feature HMAccessory only.
unsafe fn home_didEncounterError_forAccessory( &self, home: &HMHome, error: &NSError, accessory: &HMAccessory, )
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
Sourceunsafe fn home_didUpdateHomeHubState(
&self,
home: &HMHome,
home_hub_state: HMHomeHubState,
)
unsafe fn home_didUpdateHomeHubState( &self, home: &HMHome, home_hub_state: HMHomeHubState, )
Informs the delegate when state of the home hub changes.
Parameter home: Sender of the message.
Parameter homeHubState: The new home hub state.
Sourceunsafe fn homeDidUpdateSupportedFeatures(&self, home: &HMHome)
unsafe fn homeDidUpdateSupportedFeatures(&self, home: &HMHome)
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.