Package apple.homekit.protocol
Interface HMAccessoryDelegate
-
public interface HMAccessoryDelegateThis defines the protocol for a delegate to receive updates about different aspects of an accessory API-Since: 8.0
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default voidaccessoryDidAddProfile(@NotNull HMAccessory accessory, @NotNull HMAccessoryProfile profile)Informs the delegate when a profile is added to an accessory.default voidaccessoryDidRemoveProfile(@NotNull HMAccessory accessory, @NotNull HMAccessoryProfile profile)Informs the delegate when a profile is removed from an accessory.default voidaccessoryDidUpdateAssociatedServiceTypeForService(@NotNull HMAccessory accessory, @NotNull HMService service)Informs the delegate when the associated service type of a service is modified.default voidaccessoryDidUpdateFirmwareVersion(@NotNull HMAccessory accessory, @NotNull java.lang.String firmwareVersion)Informs the delegate when firmwareVersion has been changed for an accessory.default voidaccessoryDidUpdateName(@NotNull HMAccessory accessory)Informs the delegate when the name of the accessory is modified.default voidaccessoryDidUpdateNameForService(@NotNull HMAccessory accessory, @NotNull HMService service)Informs the delegate when the name of a service is modfied.default voidaccessoryDidUpdateReachability(@NotNull HMAccessory accessory)Informs the delegate when the reachability of the accessory changes.default voidaccessoryDidUpdateServices(@NotNull HMAccessory accessory)Informs the delegate when the services on the accessory have been dynamically updated.default voidaccessoryServiceDidUpdateValueForCharacteristic(@NotNull HMAccessory accessory, @NotNull HMService service, @NotNull HMCharacteristic characteristic)Informs the delegate of a change in value of a characteristic.
-
-
-
Method Detail
-
accessoryDidUpdateAssociatedServiceTypeForService
default void accessoryDidUpdateAssociatedServiceTypeForService(@NotNull @NotNull HMAccessory accessory, @NotNull @NotNull 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(@NotNull @NotNull HMAccessory accessory, @NotNull @NotNull 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(@NotNull @NotNull HMAccessory accessory, @NotNull @NotNull HMService service, @NotNull @NotNull 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(@NotNull @NotNull HMAccessory accessory)Informs the delegate when the name of the accessory is modified.- Parameters:
accessory- Sender of the message.
-
accessoryDidUpdateReachability
default void accessoryDidUpdateReachability(@NotNull @NotNull HMAccessory accessory)Informs the delegate when the reachability of the accessory changes.- Parameters:
accessory- Sender of the message.
-
accessoryDidUpdateServices
default void accessoryDidUpdateServices(@NotNull @NotNull 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(@NotNull @NotNull HMAccessory accessory, @NotNull @NotNull HMAccessoryProfile profile)Informs the delegate when a profile is added to an accessory.- Parameters:
accessory- Sender of the message.profile- The added profile. API-Since: 11.0
-
accessoryDidRemoveProfile
default void accessoryDidRemoveProfile(@NotNull @NotNull HMAccessory accessory, @NotNull @NotNull HMAccessoryProfile profile)Informs the delegate when a profile is removed from an accessory.- Parameters:
accessory- Sender of the message.profile- The removed profile. API-Since: 11.0
-
accessoryDidUpdateFirmwareVersion
default void accessoryDidUpdateFirmwareVersion(@NotNull @NotNull HMAccessory accessory, @NotNull @NotNull 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. API-Since: 11.0
-
-