Package apple.homekit.protocol
Interface HMAccessoryDelegate
-
public interface HMAccessoryDelegateThis defines the protocol for a delegate to receive updates about different aspects of an accessory
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default voidaccessoryDidAddProfile(HMAccessory accessory, HMAccessoryProfile profile)Informs the delegate when a profile is added to an accessory.default voidaccessoryDidRemoveProfile(HMAccessory accessory, HMAccessoryProfile profile)Informs the delegate when a profile is removed from an accessory.default voidaccessoryDidUpdateAssociatedServiceTypeForService(HMAccessory accessory, HMService service)Informs the delegate when the associated service type of a service is modified.default voidaccessoryDidUpdateFirmwareVersion(HMAccessory accessory, java.lang.String firmwareVersion)Informs the delegate when firmwareVersion has been changed for an accessory.default voidaccessoryDidUpdateName(HMAccessory accessory)Informs the delegate when the name of the accessory is modified.default voidaccessoryDidUpdateNameForService(HMAccessory accessory, HMService service)Informs the delegate when the name of a service is modfied.default voidaccessoryDidUpdateReachability(HMAccessory accessory)Informs the delegate when the reachability of the accessory changes.default voidaccessoryDidUpdateServices(HMAccessory accessory)Informs the delegate when the services on the accessory have been dynamically updated.default voidaccessoryServiceDidUpdateValueForCharacteristic(HMAccessory accessory, HMService service, HMCharacteristic characteristic)Informs the delegate of a change in value of a characteristic.
-
-
-
Method Detail
-
accessoryDidUpdateAssociatedServiceTypeForService
default void accessoryDidUpdateAssociatedServiceTypeForService(HMAccessory accessory, HMService service)
Informs the delegate when the associated service type of a service is modified.- Parameters:
accessory- Sender of the message.service- Service whose associated service type was modified.
-
accessoryDidUpdateNameForService
default void accessoryDidUpdateNameForService(HMAccessory accessory, HMService service)
Informs the delegate when the name of a service is modfied.- Parameters:
accessory- Sender of the message.service- Service whose name was modified.
-
accessoryServiceDidUpdateValueForCharacteristic
default void accessoryServiceDidUpdateValueForCharacteristic(HMAccessory accessory, HMService service, HMCharacteristic characteristic)
Informs the delegate of a change in value of a characteristic.- Parameters:
accessory- Sender of this messageservice- HMService that contains the characteristic whose value was modified.characteristic- The characteristic whose value was changed.
-
accessoryDidUpdateName
default void accessoryDidUpdateName(HMAccessory accessory)
Informs the delegate when the name of the accessory is modified.- Parameters:
accessory- Sender of the message.
-
accessoryDidUpdateReachability
default void accessoryDidUpdateReachability(HMAccessory accessory)
Informs the delegate when the reachability of the accessory changes.- Parameters:
accessory- Sender of the message.
-
accessoryDidUpdateServices
default void accessoryDidUpdateServices(HMAccessory accessory)
Informs the delegate when the services on the accessory have been dynamically updated. The services discovered are accessible via the 'services' property of the accessory.- Parameters:
accessory- Sender of the message.
-
accessoryDidAddProfile
default void accessoryDidAddProfile(HMAccessory accessory, HMAccessoryProfile profile)
Informs the delegate when a profile is added to an accessory.- Parameters:
accessory- Sender of the message.profile- The added profile.
-
accessoryDidRemoveProfile
default void accessoryDidRemoveProfile(HMAccessory accessory, HMAccessoryProfile profile)
Informs the delegate when a profile is removed from an accessory.- Parameters:
accessory- Sender of the message.profile- The removed profile.
-
accessoryDidUpdateFirmwareVersion
default void accessoryDidUpdateFirmwareVersion(HMAccessory accessory, java.lang.String firmwareVersion)
Informs the delegate when firmwareVersion has been changed for an accessory.- Parameters:
accessory- Sender of the message.firmwareVersion- The newly updated firmwareVersion.
-
-