Skip to content

Commit

Permalink
using Handler
Browse files Browse the repository at this point in the history
  • Loading branch information
tj_devel709 committed Jul 9, 2021
1 parent 3245e8b commit 44d4790
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/homekit.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1874,15 +1874,15 @@ interface HMAccessControl {

}

delegate void HMErrorBlock ([NullAllowed] NSError error);
delegate void HMErrorHandler ([NullAllowed] NSError error);

[iOS (15,0), Watch (8,0), TV (15,0), MacCatalyst (15,0)]
[BaseType (typeof (NSObject))]
interface HMAccessorySetupManager
{
[Async]
[Export ("addAndSetUpAccessoriesForTopology:completionHandler:")]
void AddAndSetUpAccessories (HMChipServiceTopology topology, HMErrorBlock completion);
void AddAndSetUpAccessories (HMChipServiceTopology topology, HMErrorHandler completion);
}

[iOS (15,0), Watch (8,0), TV (15,0), MacCatalyst (15,0)]
Expand All @@ -1901,15 +1901,15 @@ interface HMChipServiceHome : NSCopying, NSSecureCoding
IntPtr Constructor (NSUuid uuid, string name);
}

delegate void FetchRoomCompletion (NSArray<HMChipServiceRoom> rooms, NSError error);
delegate void FetchRoomHandler (NSArray<HMChipServiceRoom> rooms, NSError error);

[iOS (15,0), Watch (8,0), TV (15,0), MacCatalyst (15,0)]
[BaseType (typeof (NSObject), Name = "HMCHIPServiceRequestHandler")]
interface HMChipServiceRequestHandler : NSExtensionRequestHandling
{
[Async]
[Export ("fetchRoomsInHome:completion:")]
void FetchRooms (HMChipServiceHome home, FetchRoomCompletion completion);
void FetchRooms (HMChipServiceHome home, FetchRoomHandler completion);

[Async]
[Export ("pairAccessoryInHome:onboardingPayload:completion:")]
Expand Down

0 comments on commit 44d4790

Please sign in to comment.