forked from xamarin/xamarin-macios
-
Notifications
You must be signed in to change notification settings - Fork 1
HomeKit tvOS xcode9 beta3
Vincent Dondain edited this page Jul 11, 2017
·
2 revisions
#HomeKit.framework https://github.com/xamarin/xamarin-macios/pull/2317
diff -ruN /Applications/Xcode9-beta2.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/HomeKit.framework/Headers/HMAccessory.h /Applications/Xcode9-beta3.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/HomeKit.framework/Headers/HMAccessory.h
--- /Applications/Xcode9-beta2.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/HomeKit.framework/Headers/HMAccessory.h 2017-06-14 07:28:55.000000000 -0400
+++ /Applications/Xcode9-beta3.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/HomeKit.framework/Headers/HMAccessory.h 2017-06-30 03:04:19.000000000 -0400
@@ -13,6 +13,7 @@
@class HMService;
@class HMCharacteristic;
@class HMAccessoryCategory;
+@class HMAccessoryProfile;
@protocol HMAccessoryDelegate;
/*!
@@ -102,6 +103,11 @@
@property(readonly, copy, nonatomic) NSArray<HMService *> *services;
/*!
+ * @abstract Accessory profiles of the receiver.
+ */
+@property(readonly, copy) NSArray<HMAccessoryProfile *> *profiles API_AVAILABLE(ios(11.0), watchos(4.0), tvos(11.0));
+
+/*!
* @brief TRUE if the accessory is blocked, FALSE otherwise.
*/
@@ -190,6 +196,22 @@
- (void)accessoryDidUpdateServices:(HMAccessory *)accessory;
/*!
+ * @abstract Informs the delegate when a profile is added to an accessory.
+ *
+ * @param accessory Sender of the message.
+ * @param profile The added profile.
+ */
+- (void)accessory:(HMAccessory *)accessory didAddProfile:(HMAccessoryProfile *)profile API_AVAILABLE(ios(11.0), watchos(4.0), tvos(11.0));
+
+/*!
+ * @abstract Informs the delegate when a profile is removed from an accessory.
+ *
+ * @param accessory Sender of the message.
+ * @param profile The removed profile.
+ */
+- (void)accessory:(HMAccessory *)accessory didRemoveProfile:(HMAccessoryProfile *)profile API_AVAILABLE(ios(11.0), watchos(4.0), tvos(11.0));
+
+/*!
* @brief Informs the delegate when the reachability of the accessory changes.
*
* @param accessory Sender of the message.
diff -ruN /Applications/Xcode9-beta2.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/HomeKit.framework/Headers/HMCharacteristicEvent.h /Applications/Xcode9-beta3.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/HomeKit.framework/Headers/HMCharacteristicEvent.h
--- /Applications/Xcode9-beta2.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/HomeKit.framework/Headers/HMCharacteristicEvent.h 2017-06-16 00:08:03.000000000 -0400
+++ /Applications/Xcode9-beta3.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/HomeKit.framework/Headers/HMCharacteristicEvent.h 2017-06-30 04:39:07.000000000 -0400
@@ -15,7 +15,7 @@
* set to a particular value.
*/
NS_CLASS_AVAILABLE_IOS(9_0) __WATCHOS_AVAILABLE(2_0) __TVOS_AVAILABLE(10_0)
-@interface HMCharacteristicEvent<TriggerValueType : id<NSCopying>> : HMEvent
+@interface HMCharacteristicEvent<TriggerValueType : id<NSCopying>> : HMEvent <NSCopying, NSMutableCopying>
- (instancetype)init NS_UNAVAILABLE;
diff -ruN /Applications/Xcode9-beta2.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/HomeKit.framework/Headers/HMEventTrigger.h /Applications/Xcode9-beta3.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/HomeKit.framework/Headers/HMEventTrigger.h
--- /Applications/Xcode9-beta2.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/HomeKit.framework/Headers/HMEventTrigger.h 2017-06-14 07:28:55.000000000 -0400
+++ /Applications/Xcode9-beta3.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/HomeKit.framework/Headers/HMEventTrigger.h 2017-06-30 04:27:42.000000000 -0400
@@ -120,7 +120,7 @@
/*!
* @brief Specifies the current activation state of the trigger.
*/
-@property(readonly, assign, nonatomic) HMEventTriggerActivationState triggerActivationState;
+@property(readonly, assign, nonatomic) HMEventTriggerActivationState triggerActivationState API_AVAILABLE(ios(11.0), watchos(4.0), tvos(11.0));
/*!
@@ -292,6 +292,18 @@
+ (NSPredicate *)predicateForEvaluatingTriggerOccurringAfterDateWithComponents:(NSDateComponents *)dateComponents;
/*!
+ * @brief Creates a predicate that will evaluate whether the event occurred between two times.
+ *
+ * @param firstSignificantEvent The first date component.
+ *
+ * @param secondSignificantEvent The second date component.
+ *
+ * @return Predicate object representing a condition to evaluate before executing the action set.
+ */
++ (NSPredicate *)predicateForEvaluatingTriggerOccurringBetweenDateWithComponents:(NSDateComponents *)firstDateComponents
+ secondDateWithComponents:(NSDateComponents *)secondDateWithComponents API_AVAILABLE(ios(11.0), watchos(4.0), tvos(11.0));
+
+/*!
* @brief Creates a predicate that will evaluate whether a characteristic value is related to the specified value.
*
* @param characteristic The characteristic that is evaluated as part of the predicate.
diff -ruN /Applications/Xcode9-beta2.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/HomeKit.framework/Headers/HMEventTriggerActivationState.h /Applications/Xcode9-beta3.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/HomeKit.framework/Headers/HMEventTriggerActivationState.h
--- /Applications/Xcode9-beta2.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/HomeKit.framework/Headers/HMEventTriggerActivationState.h 2017-06-16 00:08:03.000000000 -0400
+++ /Applications/Xcode9-beta3.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/HomeKit.framework/Headers/HMEventTriggerActivationState.h 2017-06-30 04:39:07.000000000 -0400
@@ -10,7 +10,7 @@
NS_ASSUME_NONNULL_BEGIN
/*!
- * @abstract This enumeration describes the setting for audio on the recipient of the camera stream.
+ * @abstract This enumeration describes the current activation state of the event trigger.
*/
API_AVAILABLE(ios(11.0), watchos(4.0), tvos(11.0))
typedef NS_ENUM(NSUInteger, HMEventTriggerActivationState)
diff -ruN /Applications/Xcode9-beta2.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/HomeKit.framework/Headers/HMNumberRange.h /Applications/Xcode9-beta3.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/HomeKit.framework/Headers/HMNumberRange.h
--- /Applications/Xcode9-beta2.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/HomeKit.framework/Headers/HMNumberRange.h 2017-06-16 00:08:03.000000000 -0400
+++ /Applications/Xcode9-beta3.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/HomeKit.framework/Headers/HMNumberRange.h 2017-06-30 04:39:07.000000000 -0400
@@ -21,7 +21,7 @@
*
* @param minValue The minimum value of the range.
*
- * @param maxVlaue The maximum value of the range.
+ * @param maxValue The maximum value of the range.
*/
+ (instancetype)numberRangeWithMinValue:(NSNumber *)minValue maxValue:(NSNumber *)maxValue;
diff -ruN /Applications/Xcode9-beta2.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/HomeKit.framework/Headers/HMPresenceEvent.h /Applications/Xcode9-beta3.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/HomeKit.framework/Headers/HMPresenceEvent.h
--- /Applications/Xcode9-beta2.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/HomeKit.framework/Headers/HMPresenceEvent.h 2017-06-16 00:08:03.000000000 -0400
+++ /Applications/Xcode9-beta3.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/HomeKit.framework/Headers/HMPresenceEvent.h 2017-06-30 04:39:07.000000000 -0400
@@ -18,7 +18,7 @@
- (instancetype)init NS_UNAVAILABLE;
/*!
- * @brief Creates a duration time event.
+ * @brief Creates a presence based event.
*
* @param presenceType The type of presence desired for the event.
*
diff -ruN /Applications/Xcode9-beta2.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/HomeKit.framework/Headers/HMPresenceTypes.h /Applications/Xcode9-beta3.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/HomeKit.framework/Headers/HMPresenceTypes.h
--- /Applications/Xcode9-beta2.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/HomeKit.framework/Headers/HMPresenceTypes.h 2017-06-16 00:08:03.000000000 -0400
+++ /Applications/Xcode9-beta3.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/HomeKit.framework/Headers/HMPresenceTypes.h 2017-06-30 04:39:07.000000000 -0400
@@ -6,7 +6,7 @@
//
/*!
- * @brief Type respresenting presence.
+ * @brief Type representing presence.
*/
typedef NSString * HMPresenceType NS_EXTENSIBLE_STRING_ENUM;
diff -ruN /Applications/Xcode9-beta2.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/HomeKit.framework/Headers/HMSignificantTimeEvent.h /Applications/Xcode9-beta3.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/HomeKit.framework/Headers/HMSignificantTimeEvent.h
--- /Applications/Xcode9-beta2.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/HomeKit.framework/Headers/HMSignificantTimeEvent.h 2017-06-16 00:08:03.000000000 -0400
+++ /Applications/Xcode9-beta3.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/HomeKit.framework/Headers/HMSignificantTimeEvent.h 2017-06-30 04:39:07.000000000 -0400
@@ -10,7 +10,7 @@
NS_ASSUME_NONNULL_BEGIN
/*!
- * @brief This class is used to represent a calendar event.
+ * @brief This class is used to represent a significant time event.
*/
API_AVAILABLE(ios(11.0), watchos(4.0), tvos(11.0))
@interface HMSignificantTimeEvent : HMTimeEvent <NSCopying, NSMutableCopying>
diff -ruN /Applications/Xcode9-beta2.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/HomeKit.framework/Headers/HomeKit.apinotes /Applications/Xcode9-beta3.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/HomeKit.framework/Headers/HomeKit.apinotes
--- /Applications/Xcode9-beta2.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/HomeKit.framework/Headers/HomeKit.apinotes 2017-06-16 00:08:03.000000000 -0400
+++ /Applications/Xcode9-beta3.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/HomeKit.framework/Headers/HomeKit.apinotes 2017-06-30 04:39:07.000000000 -0400
@@ -65,3 +65,10 @@
Tags:
- Name: HMErrorCode
NSErrorDomain: HMErrorDomain
+SwiftVersions:
+- Version: 3.0
+ Classes:
+ - Name: HMActionSet
+ Properties:
+ - Name: lastExecutionDate
+ Nullability: N