public interface HMAccessoryDelegate
| Modifier and Type | Method and Description |
|---|---|
default void |
accessoryDidAddProfile(HMAccessory accessory,
HMAccessoryProfile profile)
Informs the delegate when a profile is added to an accessory.
|
default void |
accessoryDidRemoveProfile(HMAccessory accessory,
HMAccessoryProfile profile)
Informs the delegate when a profile is removed from an accessory.
|
default void |
accessoryDidUpdateAssociatedServiceTypeForService(HMAccessory accessory,
HMService service)
Informs the delegate when the associated service type of a service is modified.
|
default void |
accessoryDidUpdateFirmwareVersion(HMAccessory accessory,
java.lang.String firmwareVersion)
Informs the delegate when firmwareVersion has been changed for an accessory.
|
default void |
accessoryDidUpdateName(HMAccessory accessory)
Informs the delegate when the name of the accessory is modified.
|
default void |
accessoryDidUpdateNameForService(HMAccessory accessory,
HMService service)
Informs the delegate when the name of a service is modfied.
|
default void |
accessoryDidUpdateReachability(HMAccessory accessory)
Informs the delegate when the reachability of the accessory changes.
|
default void |
accessoryDidUpdateServices(HMAccessory accessory)
Informs the delegate when the services on the accessory have been dynamically updated.
|
default void |
accessoryServiceDidUpdateValueForCharacteristic(HMAccessory accessory,
HMService service,
HMCharacteristic characteristic)
Informs the delegate of a change in value of a characteristic.
|
default void accessoryDidUpdateAssociatedServiceTypeForService(HMAccessory accessory, HMService service)
accessory - Sender of the message.service - Service whose associated service type was modified.default void accessoryDidUpdateNameForService(HMAccessory accessory, HMService service)
accessory - Sender of the message.service - Service whose name was modified.default void accessoryServiceDidUpdateValueForCharacteristic(HMAccessory accessory, HMService service, HMCharacteristic characteristic)
accessory - Sender of this messageservice - HMService that contains the characteristic whose value was modified.characteristic - The characteristic whose value was changed.default void accessoryDidUpdateName(HMAccessory accessory)
accessory - Sender of the message.default void accessoryDidUpdateReachability(HMAccessory accessory)
accessory - Sender of the message.default void accessoryDidUpdateServices(HMAccessory accessory)
accessory - Sender of the message.default void accessoryDidAddProfile(HMAccessory accessory, HMAccessoryProfile profile)
accessory - Sender of the message.profile - The added profile.default void accessoryDidRemoveProfile(HMAccessory accessory, HMAccessoryProfile profile)
accessory - Sender of the message.profile - The removed profile.default void accessoryDidUpdateFirmwareVersion(HMAccessory accessory, java.lang.String firmwareVersion)
accessory - Sender of the message.firmwareVersion - The newly updated firmwareVersion.