Skip to content

Commit

Permalink
[homekit] Update for Xcode 9 beta 3 (#2317)
Browse files Browse the repository at this point in the history
  • Loading branch information
VincentDondain authored Jul 12, 2017
1 parent f49c7c1 commit 3f9ff7c
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/homekit.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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; }

Expand Down Expand Up @@ -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);

Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 3f9ff7c

Please sign in to comment.