Skip to content

HomeKit iOS xcode26.1 b2

Rolf Bjarne Kvinge edited this page Oct 15, 2025 · 2 revisions

#HomeKit.framework https://github.com/dotnet/macios/pull/24009

diff -ruN /Applications/Xcode_26.1.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HomeKit.framework/Headers/HMAccessory+Vendor.h /Applications/Xcode_26.1.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HomeKit.framework/Headers/HMAccessory+Vendor.h --- /Applications/Xcode_26.1.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HomeKit.framework/Headers/HMAccessory+Vendor.h	1970-01-01 01:00:00 +++ /Applications/Xcode_26.1.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HomeKit.framework/Headers/HMAccessory+Vendor.h	2025-09-29 07:40:19 @@ -0,0 +1,28 @@ +// +// HMAccessory+Vendor.h +// HomeKit +// +// Copyright © 2025 Apple Inc. All rights reserved. +// + +#import <HomeKit/HMAccessory.h> + +NS_ASSUME_NONNULL_BEGIN + +@interface HMAccessory () + +/*! + * @brief Returns YES if the current process is entitled to vendor-level access to this accessory. + */ +@property (nonatomic, readonly, getter=isVendorAccessory) BOOL vendorAccessory API_AVAILABLE(ios(26.1), watchos(26.1), tvos(26.1)) API_UNAVAILABLE(macos); + +/*! + * @brief Returns the HAP Accessory Instance ID, or nil if the receiver does not represent a HAP accessory. + * + * Requires vendor-level access to this accessory. + */ +@property (nullable, nonatomic, readonly, copy) NSNumber *HAPInstanceID NS_REFINED_FOR_SWIFT API_AVAILABLE(ios(26.1), watchos(26.1), tvos(26.1)) API_UNAVAILABLE(macos); + +@end + +NS_ASSUME_NONNULL_END diff -ruN /Applications/Xcode_26.1.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HomeKit.framework/Headers/HMAccessory.h /Applications/Xcode_26.1.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HomeKit.framework/Headers/HMAccessory.h --- /Applications/Xcode_26.1.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HomeKit.framework/Headers/HMAccessory.h	2025-09-11 05:37:37 +++ /Applications/Xcode_26.1.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HomeKit.framework/Headers/HMAccessory.h	2025-09-29 07:28:15 @@ -32,6 +32,11 @@ @interface HMAccessory : NSObject /*! + * @brief The home containing the accessory. + */ +@property (nullable, nonatomic, readonly, weak) HMHome *home API_AVAILABLE(ios(10.0), watchos(3.0), tvos(10.0), macCatalyst(14.0)) API_UNAVAILABLE(macos); + +/*! * @brief The name of the accessory. * * @discussion Returns the accessory's name that is associated with HomeKit. The initial value is the name @@ -91,6 +96,14 @@ * its 'uniqueIdentifiersForBridgedAccessories' property set to nil. */ @property (nullable, nonatomic, readonly, copy) NSArray<NSUUID *> *uniqueIdentifiersForBridgedAccessories API_AVAILABLE(ios(9.0)); + +/*! + * @brief If the receiver represents a bridge, an array of the accessories behind the bridge, otherwise empty. + * + * @see uniqueIdentifiersForBridgedAccessories + * @see bridged + */ +@property (nonatomic, readonly, copy) NSArray<HMAccessory *> *bridgedAccessories API_AVAILABLE(ios(13.0), watchos(6.0), tvos(13.0), macCatalyst(14.0)) API_UNAVAILABLE(macos); /*! * @brief Category information for the accessory. diff -ruN /Applications/Xcode_26.1.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HomeKit.framework/Headers/HMHomeManager+Vendor.h /Applications/Xcode_26.1.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HomeKit.framework/Headers/HMHomeManager+Vendor.h --- /Applications/Xcode_26.1.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HomeKit.framework/Headers/HMHomeManager+Vendor.h	1970-01-01 01:00:00 +++ /Applications/Xcode_26.1.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HomeKit.framework/Headers/HMHomeManager+Vendor.h	2025-09-29 07:40:19 @@ -0,0 +1,34 @@ +// +// HMHomeManager+Vendor.h +// HomeKit +// +// Copyright © 2025 Apple Inc. All rights reserved. +// + +#import <HomeKit/HMHomeManager.h> + +NS_ASSUME_NONNULL_BEGIN + +@class HMAccessory; + +@interface HMHomeManager (Vendor) + +/*! + * @brief Finds a vendor HAP accessory based on its Long Term Public Key. + * + * @param hapPublicKey The HAP Long Term Public Key of the accessory. + * This has a length of 32 bytes. Refer to the + * HomeKit Accessory Protocol Specification for details. + * + * If no matching accessory exists, or if the current process does not have + * vendor-level access to the matching accessory, the result will be nil. + * + * An error will be returned if this method is used before available homes have + * been retrieved by the HMHomeManager, i.e. before the homeManagerDidUpdateHomes: + * delegate method has been invoked. + */ +- (void)findVendorAccessoryWithHAPPublicKey:(NSData *)hapPublicKey completionHandler:(void (^)(HMAccessory *_Nullable_result, NSError *_Nullable))completion NS_SWIFT_NAME(findVendorAccessory(hapPublicKey:completionHandler:)) NS_SWIFT_ASYNC_NAME(findVendorAccessory(hapPublicKey:)) API_AVAILABLE(ios(26.1), watchos(26.1), tvos(26.1)) API_UNAVAILABLE(macos); + +@end + +NS_ASSUME_NONNULL_END diff -ruN /Applications/Xcode_26.1.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HomeKit.framework/Headers/HomeKit.h /Applications/Xcode_26.1.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HomeKit.framework/Headers/HomeKit.h --- /Applications/Xcode_26.1.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HomeKit.framework/Headers/HomeKit.h	2025-09-11 06:08:43 +++ /Applications/Xcode_26.1.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/HomeKit.framework/Headers/HomeKit.h	2025-09-29 07:40:17 @@ -64,3 +64,6 @@ #import <HomeKit/HMAccessorySetupPayload.h> #import <HomeKit/HMAccessorySetupRequest.h> #import <HomeKit/HMAccessorySetupResult.h> + +#import <HomeKit/HMAccessory+Vendor.h> +#import <HomeKit/HMHomeManager+Vendor.h> 
Clone this wiki locally