Documentation Archive Developer
Search

HomeKit Changes for Objective-C

HomeKit

HMAccessory.h

Deprecation
From--
ToiOS 9.0

DeclarationDeprecation
From
@property(readonly, copy, nonatomic) NSArray *identifiersForBridgedAccessories
--
To
@property(readonly, copy, nonatomic, nullable) NSArray<NSUUID *> *identifiersForBridgedAccessories
iOS 9.0

Declaration
From
@property(readonly, copy, nonatomic) NSArray *services
To
@property(readonly, copy, nonatomic, nonnull) NSArray<HMService *> *services

HMAccessoryBrowser.h

Declaration
From
@property(readonly, copy, nonatomic) NSArray *discoveredAccessories
To
@property(readonly, copy, nonatomic, nonnull) NSArray<HMAccessory *> *discoveredAccessories

HMAccessoryCategory.h (Added)

HMAccessoryCategoryTypes.h (Added)

HMAction.h

HMActionSet.h

Declaration
From
@property(readonly, copy, nonatomic) NSSet *actions
To
@property(readonly, copy, nonatomic, nonnull) NSSet<HMAction *> *actions

HMCharacteristic.h

Declaration
From
@property(readonly, copy, nonatomic) NSArray *properties
To
@property(readonly, copy, nonatomic, nonnull) NSArray<NSString *> *properties

Header
FromHomeKit/HMCharacteristic.h
ToHomeKit/HMCharacteristicTypes.h

Header
FromHomeKit/HMCharacteristic.h
ToHomeKit/HMCharacteristicTypes.h

Header
FromHomeKit/HMCharacteristic.h
ToHomeKit/HMCharacteristicTypes.h

Header
FromHomeKit/HMCharacteristic.h
ToHomeKit/HMCharacteristicTypes.h

Header
FromHomeKit/HMCharacteristic.h
ToHomeKit/HMCharacteristicTypes.h

Header
FromHomeKit/HMCharacteristic.h
ToHomeKit/HMCharacteristicTypes.h

Header
FromHomeKit/HMCharacteristic.h
ToHomeKit/HMCharacteristicTypes.h

Header
FromHomeKit/HMCharacteristic.h
ToHomeKit/HMCharacteristicTypes.h

Header
FromHomeKit/HMCharacteristic.h
ToHomeKit/HMCharacteristicTypes.h

Header
FromHomeKit/HMCharacteristic.h
ToHomeKit/HMCharacteristicTypes.h

Header
FromHomeKit/HMCharacteristic.h
ToHomeKit/HMCharacteristicTypes.h

Header
FromHomeKit/HMCharacteristic.h
ToHomeKit/HMCharacteristicTypes.h

Header
FromHomeKit/HMCharacteristic.h
ToHomeKit/HMCharacteristicTypes.h

Header
FromHomeKit/HMCharacteristic.h
ToHomeKit/HMCharacteristicTypes.h

Header
FromHomeKit/HMCharacteristic.h
ToHomeKit/HMCharacteristicTypes.h

Header
FromHomeKit/HMCharacteristic.h
ToHomeKit/HMCharacteristicTypes.h

Header
FromHomeKit/HMCharacteristic.h
ToHomeKit/HMCharacteristicTypes.h

Header
FromHomeKit/HMCharacteristic.h
ToHomeKit/HMCharacteristicTypes.h

Header
FromHomeKit/HMCharacteristic.h
ToHomeKit/HMCharacteristicTypes.h

Header
FromHomeKit/HMCharacteristic.h
ToHomeKit/HMCharacteristicTypes.h

Header
FromHomeKit/HMCharacteristic.h
ToHomeKit/HMCharacteristicTypes.h

Header
FromHomeKit/HMCharacteristic.h
ToHomeKit/HMCharacteristicTypes.h

Header
FromHomeKit/HMCharacteristic.h
ToHomeKit/HMCharacteristicTypes.h

Header
FromHomeKit/HMCharacteristic.h
ToHomeKit/HMCharacteristicTypes.h

Header
FromHomeKit/HMCharacteristic.h
ToHomeKit/HMCharacteristicTypes.h

Header
FromHomeKit/HMCharacteristic.h
ToHomeKit/HMCharacteristicTypes.h

Header
FromHomeKit/HMCharacteristic.h
ToHomeKit/HMCharacteristicTypes.h

Header
FromHomeKit/HMCharacteristic.h
ToHomeKit/HMCharacteristicTypes.h

Header
FromHomeKit/HMCharacteristic.h
ToHomeKit/HMCharacteristicTypes.h

Header
FromHomeKit/HMCharacteristic.h
ToHomeKit/HMCharacteristicTypes.h

Header
FromHomeKit/HMCharacteristic.h
ToHomeKit/HMCharacteristicTypes.h

Header
FromHomeKit/HMCharacteristic.h
ToHomeKit/HMCharacteristicTypes.h

Header
FromHomeKit/HMCharacteristic.h
ToHomeKit/HMCharacteristicTypes.h

Header
FromHomeKit/HMCharacteristic.h
ToHomeKit/HMCharacteristicTypes.h

Header
FromHomeKit/HMCharacteristic.h
ToHomeKit/HMCharacteristicTypes.h

Header
FromHomeKit/HMCharacteristic.h
ToHomeKit/HMCharacteristicTypes.h

Header
FromHomeKit/HMCharacteristic.h
ToHomeKit/HMCharacteristicTypes.h

HMCharacteristicDefines.h

HMCharacteristicEvent.h (Added)

HMCharacteristicTypes.h (Added)

Header
FromHomeKit/HMCharacteristic.h
ToHomeKit/HMCharacteristicTypes.h

Header
FromHomeKit/HMCharacteristic.h
ToHomeKit/HMCharacteristicTypes.h

Header
FromHomeKit/HMCharacteristic.h
ToHomeKit/HMCharacteristicTypes.h

Header
FromHomeKit/HMCharacteristic.h
ToHomeKit/HMCharacteristicTypes.h

Header
FromHomeKit/HMCharacteristic.h
ToHomeKit/HMCharacteristicTypes.h

Header
FromHomeKit/HMCharacteristic.h
ToHomeKit/HMCharacteristicTypes.h

Header
FromHomeKit/HMCharacteristic.h
ToHomeKit/HMCharacteristicTypes.h

Header
FromHomeKit/HMCharacteristic.h
ToHomeKit/HMCharacteristicTypes.h

Header
FromHomeKit/HMCharacteristic.h
ToHomeKit/HMCharacteristicTypes.h

Header
FromHomeKit/HMCharacteristic.h
ToHomeKit/HMCharacteristicTypes.h

Header
FromHomeKit/HMCharacteristic.h
ToHomeKit/HMCharacteristicTypes.h

Header
FromHomeKit/HMCharacteristic.h
ToHomeKit/HMCharacteristicTypes.h

Header
FromHomeKit/HMCharacteristic.h
ToHomeKit/HMCharacteristicTypes.h

Header
FromHomeKit/HMCharacteristic.h
ToHomeKit/HMCharacteristicTypes.h

Header
FromHomeKit/HMCharacteristic.h
ToHomeKit/HMCharacteristicTypes.h

Header
FromHomeKit/HMCharacteristic.h
ToHomeKit/HMCharacteristicTypes.h

Header
FromHomeKit/HMCharacteristic.h
ToHomeKit/HMCharacteristicTypes.h

Header
FromHomeKit/HMCharacteristic.h
ToHomeKit/HMCharacteristicTypes.h

Header
FromHomeKit/HMCharacteristic.h
ToHomeKit/HMCharacteristicTypes.h

Header
FromHomeKit/HMCharacteristic.h
ToHomeKit/HMCharacteristicTypes.h

Header
FromHomeKit/HMCharacteristic.h
ToHomeKit/HMCharacteristicTypes.h

Header
FromHomeKit/HMCharacteristic.h
ToHomeKit/HMCharacteristicTypes.h

Header
FromHomeKit/HMCharacteristic.h
ToHomeKit/HMCharacteristicTypes.h

Header
FromHomeKit/HMCharacteristic.h
ToHomeKit/HMCharacteristicTypes.h

Header
FromHomeKit/HMCharacteristic.h
ToHomeKit/HMCharacteristicTypes.h

Header
FromHomeKit/HMCharacteristic.h
ToHomeKit/HMCharacteristicTypes.h

Header
FromHomeKit/HMCharacteristic.h
ToHomeKit/HMCharacteristicTypes.h

Header
FromHomeKit/HMCharacteristic.h
ToHomeKit/HMCharacteristicTypes.h

Header
FromHomeKit/HMCharacteristic.h
ToHomeKit/HMCharacteristicTypes.h

Header
FromHomeKit/HMCharacteristic.h
ToHomeKit/HMCharacteristicTypes.h

Header
FromHomeKit/HMCharacteristic.h
ToHomeKit/HMCharacteristicTypes.h

Header
FromHomeKit/HMCharacteristic.h
ToHomeKit/HMCharacteristicTypes.h

Header
FromHomeKit/HMCharacteristic.h
ToHomeKit/HMCharacteristicTypes.h

Header
FromHomeKit/HMCharacteristic.h
ToHomeKit/HMCharacteristicTypes.h

Header
FromHomeKit/HMCharacteristic.h
ToHomeKit/HMCharacteristicTypes.h

Header
FromHomeKit/HMCharacteristic.h
ToHomeKit/HMCharacteristicTypes.h

Header
FromHomeKit/HMCharacteristic.h
ToHomeKit/HMCharacteristicTypes.h

HMCharacteristicWriteAction.h

Declaration
From
- (instancetype)initWithCharacteristic:(HMCharacteristic *)characteristic targetValue:(id)targetValue
To
- (instancetype _Nonnull)initWithCharacteristic:(HMCharacteristic * _Nonnull)characteristic targetValue:(TargetValueType _Nonnull)targetValue

Declaration
From
@property(readonly, copy, nonatomic) id targetValue
To
@property(readonly, copy, nonatomic, nonnull) TargetValueType targetValue

Declaration
From
- (void)updateTargetValue:(id)targetValue completionHandler:(void (^)(NSError *error))completion
To
- (void)updateTargetValue:(TargetValueType _Nonnull)targetValue completionHandler:(void (^ _Nonnull)(NSError * _Nullable error))completion

HMError.h

HMEvent.h (Added)

HMEventTrigger.h (Added)

HMHome.h

Declaration
From
@property(readonly, copy, nonatomic) NSArray *accessories
To
@property(readonly, copy, nonatomic, nonnull) NSArray<HMAccessory *> *accessories

Declaration
From
@property(readonly, copy, nonatomic) NSArray *actionSets
To
@property(readonly, copy, nonatomic, nonnull) NSArray<HMActionSet *> *actionSets

Deprecation
From--
ToiOS 9.0

Deprecation
From--
ToiOS 9.0

Modified HMHome.rooms
Declaration
From
@property(readonly, copy, nonatomic) NSArray *rooms
To
@property(readonly, copy, nonatomic, nonnull) NSArray<HMRoom *> *rooms

Declaration
From
@property(readonly, copy, nonatomic) NSArray *serviceGroups
To
@property(readonly, copy, nonatomic, nonnull) NSArray<HMServiceGroup *> *serviceGroups

Declaration
From
- (NSArray *)servicesWithTypes:(NSArray *)serviceTypes
To
- (NSArray<HMService *> * _Nullable)servicesWithTypes:(NSArray<NSString *> * _Nonnull)serviceTypes

Declaration
From
@property(readonly, copy, nonatomic) NSArray *triggers
To
@property(readonly, copy, nonatomic, nonnull) NSArray<HMTrigger *> *triggers

Modified HMHome.users
DeclarationDeprecation
From
@property(readonly, copy, nonatomic) NSArray *users
--
To
@property(readonly, copy, nonatomic, nonnull) NSArray<HMUser *> *users
iOS 9.0

Modified HMHome.zones
Declaration
From
@property(readonly, copy, nonatomic) NSArray *zones
To
@property(readonly, copy, nonatomic, nonnull) NSArray<HMZone *> *zones

HMHomeAccessControl.h (Added)

HMHomeManager.h

Declaration
From
@property(readonly, copy, nonatomic) NSArray *homes
To
@property(readonly, copy, nonatomic, nonnull) NSArray<HMHome *> *homes

HMLocationEvent.h (Added)

HMRoom.h

Declaration
From
@property(readonly, copy, nonatomic) NSArray *accessories
To
@property(readonly, copy, nonatomic, nonnull) NSArray<HMAccessory *> *accessories

HMService.h

Declaration
From
@property(readonly, copy, nonatomic) NSArray *characteristics
To
@property(readonly, copy, nonatomic, nonnull) NSArray<HMCharacteristic *> *characteristics

Header
FromHomeKit/HMService.h
ToHomeKit/HMServiceTypes.h

Header
FromHomeKit/HMService.h
ToHomeKit/HMServiceTypes.h

Header
FromHomeKit/HMService.h
ToHomeKit/HMServiceTypes.h

Header
FromHomeKit/HMService.h
ToHomeKit/HMServiceTypes.h

Header
FromHomeKit/HMService.h
ToHomeKit/HMServiceTypes.h

Header
FromHomeKit/HMService.h
ToHomeKit/HMServiceTypes.h

Header
FromHomeKit/HMService.h
ToHomeKit/HMServiceTypes.h

Header
FromHomeKit/HMService.h
ToHomeKit/HMServiceTypes.h

Header
FromHomeKit/HMService.h
ToHomeKit/HMServiceTypes.h

HMServiceGroup.h

Declaration
From
@property(readonly, copy, nonatomic) NSArray *services
To
@property(readonly, copy, nonatomic, nonnull) NSArray<HMService *> *services

HMServiceTypes.h (Added)

Header
FromHomeKit/HMService.h
ToHomeKit/HMServiceTypes.h

Header
FromHomeKit/HMService.h
ToHomeKit/HMServiceTypes.h

Header
FromHomeKit/HMService.h
ToHomeKit/HMServiceTypes.h

Header
FromHomeKit/HMService.h
ToHomeKit/HMServiceTypes.h

Header
FromHomeKit/HMService.h
ToHomeKit/HMServiceTypes.h

Header
FromHomeKit/HMService.h
ToHomeKit/HMServiceTypes.h

Header
FromHomeKit/HMService.h
ToHomeKit/HMServiceTypes.h

Header
FromHomeKit/HMService.h
ToHomeKit/HMServiceTypes.h

Header
FromHomeKit/HMService.h
ToHomeKit/HMServiceTypes.h

HMTrigger.h

Declaration
From
@property(readonly, copy, nonatomic) NSArray *actionSets
To
@property(readonly, copy, nonatomic, nonnull) NSArray<HMActionSet *> *actionSets

HMUser.h

HMZone.h

Modified HMZone.rooms
Declaration
From
@property(readonly, copy, nonatomic) NSArray *rooms
To
@property(readonly, copy, nonatomic, nonnull) NSArray<HMRoom *> *rooms