Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[homekit] Update for Xcode 9 beta 3 #2317

Merged
merged 1 commit into from
Jul 12, 2017
Merged
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
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