Editar

Compartir a través de


HMAccessoryDelegate_Extensions Class

Definition

Extension methods to the IHMAccessoryDelegate interface to support all the methods from the HMAccessoryDelegate protocol.

public static class HMAccessoryDelegate_Extensions
type HMAccessoryDelegate_Extensions = class
Inheritance
HMAccessoryDelegate_Extensions

Remarks

The extension methods for IHMAccessoryDelegate allow developers to treat instances of the interface as having all the optional methods of the original HMAccessoryDelegate protocol. Since the interface only contains the required members, these extension methods allow developers to call the optional members of the protocol.

Methods

DidAddProfile(IHMAccessoryDelegate, HMAccessory, HMAccessoryProfile)

Method that is called when profile was added to accessory.

DidRemoveProfile(IHMAccessoryDelegate, HMAccessory, HMAccessoryProfile)

Method that is called when profile was removed from accessory.

DidUpdateAssociatedServiceType(IHMAccessoryDelegate, HMAccessory, HMService)

The accessory updated the service type for service.

DidUpdateFirmwareVersion(IHMAccessoryDelegate, HMAccessory, String)

Method that is called when the firmware version of accessory is updated to firmwareVersion.

DidUpdateName(IHMAccessoryDelegate, HMAccessory)

The accessory updated its name.

DidUpdateNameForService(IHMAccessoryDelegate, HMAccessory, HMService)

The accessory updated the name of service.

DidUpdateReachability(IHMAccessoryDelegate, HMAccessory)

Delegate method called by the system when the accessory's network visibility has changed.

DidUpdateServices(IHMAccessoryDelegate, HMAccessory)

The accessory updated its services.

DidUpdateValueForCharacteristic(IHMAccessoryDelegate, HMAccessory, HMService, HMCharacteristic)

The accessory updated the value of characteristic on service.

Applies to