From 2bad859263311785ff6bbc28dbf85cbd9bbf146a Mon Sep 17 00:00:00 2001 From: Vincent Dondain Date: Tue, 11 Jul 2017 17:46:05 -0400 Subject: [PATCH] [homekit] Update for Xcode 9 beta 3 --- src/homekit.cs | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/src/homekit.cs b/src/homekit.cs index fd9103fcb060..342af02d3e2a 100644 --- a/src/homekit.cs +++ b/src/homekit.cs @@ -125,6 +125,10 @@ partial interface HMAccessory { [Export ("services", ArgumentSemantic.Copy)] HMService [] Services { get; } + [Watch (4,0), TV (11,0), iOS (11,0)] + [Export ("profiles", ArgumentSemantic.Copy)] + HMAccessoryProfile[] Profiles { get; } + [Export ("blocked")] bool Blocked { [Bind ("isBlocked")] get; } @@ -179,6 +183,14 @@ partial interface HMAccessoryDelegate { [Export ("accessoryDidUpdateServices:")] void DidUpdateServices (HMAccessory accessory); + [Watch (4,0), TV (11,0), iOS (11,0)] + [Export ("accessory:didAddProfile:"), EventArgs ("HMAccessoryProfile")] + void DidAddProfile (HMAccessory accessory, HMAccessoryProfile profile); + + [Watch (4,0), TV (11,0), iOS (11,0)] + [Export ("accessory:didRemoveProfile:"), EventArgs ("HMAccessoryProfile")] + void DidRemoveProfile (HMAccessory accessory, HMAccessoryProfile profile); + [Export ("accessoryDidUpdateReachability:")] void DidUpdateReachability (HMAccessory accessory); @@ -1255,6 +1267,11 @@ interface HMEventTrigger { [Export ("predicateForEvaluatingTriggerOccurringAfterDateWithComponents:")] NSPredicate CreatePredicateForEvaluatingTriggerOccurringAfterDate (NSDateComponents dateComponents); + [Watch (4,0), TV (11,0), iOS (11,0)] + [Static] + [Export ("predicateForEvaluatingTriggerOccurringBetweenDateWithComponents:secondDateWithComponents:")] + NSPredicate CreatePredicateForEvaluatingTriggerOccurringBetweenDates (NSDateComponents firstDateComponents, NSDateComponents secondDateComponents); + [Static] [Export ("predicateForEvaluatingTriggerWithCharacteristic:relatedBy:toValue:")] NSPredicate CreatePredicateForEvaluatingTrigger (HMCharacteristic characteristic, NSPredicateOperatorType operatorType, NSObject value);