Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions src/homekit.cs
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,17 @@ partial interface HMHomeManager {
[MacCatalyst (14, 0)]
[Export ("authorizationStatus")]
HMHomeManagerAuthorizationStatus AuthorizationStatus { get; }

// From the Vendor (HMHomeManager) category
// HAP=HomeKit Accessory Protocol
[Async]
[TV (26, 1), NoMac, iOS (26, 1), MacCatalyst (26, 1)]
[Export ("findVendorAccessoryWithHAPPublicKey:completionHandler:")]
void FindVendorAccessory (NSData hapPublicKey, HMHomeManagerFindVendorAccessoryCallback completion);
}

delegate void HMHomeManagerFindVendorAccessoryCallback ([NullAllowed] HMAccessory accessory, [NullAllowed] NSError error);

interface IHMHomeManagerDelegate { }

/// <summary>Delegate object for <see cref="HomeKit.HMHomeManager" /> objects, provides methods that can be overridden to react to <see cref="HomeKit.HMHome" />s being added, removed, or set as the primary home.</summary>
Expand Down Expand Up @@ -290,6 +299,30 @@ partial interface HMAccessory {
[MacCatalyst (14, 0)]
[Export ("supportsIdentify")]
bool SupportsIdentify { get; }

// From an unnamed category (@interface HMAccessory ())
[TV (26, 1), NoMac, iOS (26, 1), MacCatalyst (26, 1)]
[Export ("vendorAccessory")]
bool VendorAccessory { [Bind ("isVendorAccessory")] get; }

// From an unnamed category (@interface HMAccessory ())
// HAP=HomeKit Accessory Protocol
// No documention on what kind of NSNumber we're dealing with, so not binding using a better type.
[TV (26, 1), NoMac, iOS (26, 1), MacCatalyst (26, 1)]
[Export ("HAPInstanceID", ArgumentSemantic.Copy)]
[NullAllowed]
NSNumber HapInstanceId { get; }

/// Headers state this property is available in iOS 10+, but I don't believe that
[TV (26, 1), NoMac, iOS (26, 1), MacCatalyst (26, 1)]
[Export ("home", ArgumentSemantic.Weak)]
[NullAllowed]
HMHome Home { get; }

/// Headers state this property is available in iOS 13+, but I don't believe that
[TV (26, 1), NoMac, iOS (26, 1), MacCatalyst (26, 1)]
[Export ("bridgedAccessories", ArgumentSemantic.Copy)]
HMAccessory [] BridgedAccessories { get; }
}

interface IHMAccessoryDelegate { }
Expand Down
5 changes: 5 additions & 0 deletions tests/cecil-tests/Documentation.KnownFailures.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12434,6 +12434,8 @@ M:HomeKit.HMHomeManager.add_DidUpdateAuthorizationStatus(System.EventHandler{Hom
M:HomeKit.HMHomeManager.add_DidUpdateHomes(System.EventHandler)
M:HomeKit.HMHomeManager.add_DidUpdatePrimaryHome(System.EventHandler)
M:HomeKit.HMHomeManager.Dispose(System.Boolean)
M:HomeKit.HMHomeManager.FindVendorAccessory(Foundation.NSData,HomeKit.HMHomeManagerFindVendorAccessoryCallback)
M:HomeKit.HMHomeManager.FindVendorAccessoryAsync(Foundation.NSData)
M:HomeKit.HMHomeManager.remove_DidAddHome(System.EventHandler{HomeKit.HMHomeManagerEventArgs})
M:HomeKit.HMHomeManager.remove_DidReceiveAddAccessoryRequest(System.EventHandler{HomeKit.HMHomeManagerAddAccessoryRequestEventArgs})
M:HomeKit.HMHomeManager.remove_DidRemoveHome(System.EventHandler{HomeKit.HMHomeManagerEventArgs})
Expand Down Expand Up @@ -21405,6 +21407,8 @@ P:HealthKit.HKLiveWorkoutBuilder.Delegate
P:HealthKit.HKMedicationConcept.GeneralForm
P:HealthKit.HKMetadata.AppleFitnessPlusCatalogIdentifier
P:HealthKit.HKWorkoutSession.Delegate
P:HomeKit.HMAccessory.HapInstanceId
P:HomeKit.HMAccessory.VendorAccessory
P:HomeKit.HMAccessoryBrowserEventArgs.Accessory
P:HomeKit.HMAccessoryFirmwareVersionEventArgs.FirmwareVersion
P:HomeKit.HMAccessoryProfileEventArgs.Profile
Expand Down Expand Up @@ -26819,6 +26823,7 @@ T:HomeKit.HMCharacteristicValueVolumeSelector
T:HomeKit.HMCharacteristicValueWiFiSatelliteStatus
T:HomeKit.HMFetchRoomHandler
T:HomeKit.HMHomeManagerAuthorizationStatus
T:HomeKit.HMHomeManagerFindVendorAccessoryCallback
T:IdentityLookup.ILMessageFilterCapabilitiesQueryRequest
T:IdentityLookup.ILMessageFilterCapabilitiesQueryResponse
T:IdentityLookup.ILMessageFilterError
Expand Down

This file was deleted.

5 changes: 0 additions & 5 deletions tests/xtro-sharpie/api-annotations-dotnet/iOS-HomeKit.todo

This file was deleted.

5 changes: 0 additions & 5 deletions tests/xtro-sharpie/api-annotations-dotnet/tvOS-HomeKit.todo

This file was deleted.

Loading