Skip to content

Intents watchOS xcode13.0 beta5

Rachel Kang edited this page Sep 23, 2021 · 3 revisions

#Intents.framework https://github.com/xamarin/xamarin-macios/pull/12771

diff -ruN /Applications/Xcode_13.0.0-beta4.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/Intents.framework/Headers/INPerson.h /Applications/Xcode_13.0.0-beta5.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/Intents.framework/Headers/INPerson.h
--- /Applications/Xcode_13.0.0-beta4.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/Intents.framework/Headers/INPerson.h	2021-07-22 14:18:26.000000000 -0400
+++ /Applications/Xcode_13.0.0-beta5.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/Intents.framework/Headers/INPerson.h	2021-08-07 08:50:21.000000000 -0400
@@ -56,7 +56,16 @@
                    contactIdentifier:(nullable NSString *)contactIdentifier
                     customIdentifier:(nullable NSString *)customIdentifier
                                 isMe:(BOOL)isMe
-                     suggestionType:(INPersonSuggestionType)suggestionType API_AVAILABLE(ios(15.0), watchos(8.0));
+                     suggestionType:(INPersonSuggestionType)suggestionType API_AVAILABLE(ios(15.0), macos(12.0), watchos(8.0));
+
+- (instancetype)initWithPersonHandle:(INPersonHandle *)personHandle
+                      nameComponents:(nullable NSPersonNameComponents *)nameComponents
+                         displayName:(nullable NSString *)displayName
+                               image:(nullable INImage *)image
+                   contactIdentifier:(nullable NSString *)contactIdentifier
+                    customIdentifier:(nullable NSString *)customIdentifier
+                 isContactSuggestion:(BOOL)isContactSuggestion
+                      suggestionType:(INPersonSuggestionType)suggestionType API_AVAILABLE(ios(15.0), macos(12.0), watchos(8.0));
 
 // The identity of the person in the application
 @property (readonly, copy, nullable, NS_NONATOMIC_IOSONLY) INPersonHandle *personHandle;
@@ -80,6 +89,9 @@
 // This person's relationship to the user
 @property (readonly, copy, nullable, NS_NONATOMIC_IOSONLY) INPersonRelationship relationship API_AVAILABLE(ios(10.2));
 
+// Indicates that the person is confirmed
+@property (readonly, NS_NONATOMIC_IOSONLY, getter=isContactSuggestion) BOOL contactSuggestion API_AVAILABLE(ios(15.0), macos(12.0), watchos(8.0));
+
 @end
 
 @interface INPerson (INInteraction)
diff -ruN /Applications/Xcode_13.0.0-beta4.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/Intents.framework/Headers/INRelativeReference.h /Applications/Xcode_13.0.0-beta5.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/Intents.framework/Headers/INRelativeReference.h
--- /Applications/Xcode_13.0.0-beta4.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/Intents.framework/Headers/INRelativeReference.h	2021-07-23 13:31:51.000000000 -0400
+++ /Applications/Xcode_13.0.0-beta5.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/Intents.framework/Headers/INRelativeReference.h	2021-08-06 23:46:25.000000000 -0400
@@ -15,6 +15,6 @@
     INRelativeReferenceUnknown = 0,
     INRelativeReferenceNext,
     INRelativeReferencePrevious,
-} API_AVAILABLE(ios(10.0)) API_UNAVAILABLE(macos, watchos, tvos);
+} API_DEPRECATED("INRelativeReference is deprecated. There is no replacement.", ios(10.0, 15.0)) API_UNAVAILABLE(macos, watchos, tvos);
 
 #endif // INRelativeReference_h
diff -ruN /Applications/Xcode_13.0.0-beta4.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/Intents.framework/Headers/INRelativeReferenceResolutionResult.h /Applications/Xcode_13.0.0-beta5.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/Intents.framework/Headers/INRelativeReferenceResolutionResult.h
--- /Applications/Xcode_13.0.0-beta4.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/Intents.framework/Headers/INRelativeReferenceResolutionResult.h	2021-07-23 13:31:52.000000000 -0400
+++ /Applications/Xcode_13.0.0-beta5.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/Intents.framework/Headers/INRelativeReferenceResolutionResult.h	2021-08-06 23:46:27.000000000 -0400
@@ -11,7 +11,7 @@
 
 NS_ASSUME_NONNULL_BEGIN
 
-API_AVAILABLE(ios(10.0))
+API_DEPRECATED("INRelativeReferenceResolutionResult is deprecated. There is no replacement.", ios(10.0, 15.0))
 API_UNAVAILABLE(macos, watchos, tvos)
 @interface INRelativeReferenceResolutionResult : INIntentResolutionResult
 
diff -ruN /Applications/Xcode_13.0.0-beta4.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/Intents.framework/Headers/INRelativeSetting.h /Applications/Xcode_13.0.0-beta5.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/Intents.framework/Headers/INRelativeSetting.h
--- /Applications/Xcode_13.0.0-beta4.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/Intents.framework/Headers/INRelativeSetting.h	2021-07-23 13:31:37.000000000 -0400
+++ /Applications/Xcode_13.0.0-beta5.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/Intents.framework/Headers/INRelativeSetting.h	2021-08-06 23:46:10.000000000 -0400
@@ -17,6 +17,6 @@
     INRelativeSettingLower,
     INRelativeSettingHigher,
     INRelativeSettingHighest,
-} API_AVAILABLE(ios(10.0)) API_UNAVAILABLE(macos, watchos, tvos);
+} API_DEPRECATED("INRelativeSetting is deprecated. There is no replacement.", ios(10.0, 15.0)) API_UNAVAILABLE(macos, watchos, tvos);
 
 #endif // INRelativeSetting_h
diff -ruN /Applications/Xcode_13.0.0-beta4.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/Intents.framework/Headers/INRelativeSettingResolutionResult.h /Applications/Xcode_13.0.0-beta5.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/Intents.framework/Headers/INRelativeSettingResolutionResult.h
--- /Applications/Xcode_13.0.0-beta4.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/Intents.framework/Headers/INRelativeSettingResolutionResult.h	2021-07-23 13:31:37.000000000 -0400
+++ /Applications/Xcode_13.0.0-beta5.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/Intents.framework/Headers/INRelativeSettingResolutionResult.h	2021-08-06 23:46:10.000000000 -0400
@@ -11,7 +11,7 @@
 
 NS_ASSUME_NONNULL_BEGIN
 
-API_AVAILABLE(ios(10.0))
+API_DEPRECATED("INRelativeSettingResolutionResult is deprecated. There is no replacement.", ios(10.0, 15.0))
 API_UNAVAILABLE(macos, watchos, tvos)
 @interface INRelativeSettingResolutionResult : INIntentResolutionResult
 
diff -ruN /Applications/Xcode_13.0.0-beta4.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/Intents.framework/Headers/INTemperatureResolutionResult.h /Applications/Xcode_13.0.0-beta5.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/Intents.framework/Headers/INTemperatureResolutionResult.h
--- /Applications/Xcode_13.0.0-beta4.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/Intents.framework/Headers/INTemperatureResolutionResult.h	2021-07-23 13:31:40.000000000 -0400
+++ /Applications/Xcode_13.0.0-beta5.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/Intents.framework/Headers/INTemperatureResolutionResult.h	2021-08-06 23:46:14.000000000 -0400
@@ -9,8 +9,9 @@
 
 NS_ASSUME_NONNULL_BEGIN
 
-API_AVAILABLE(ios(10.0), macos(11.0), watchos(3.2))
-API_UNAVAILABLE(tvos)
+API_DEPRECATED("INTemperatureResolutionResult is deprecated. There is no replacement.", ios(10.0, 15.0))
+API_UNAVAILABLE(macos, watchos, tvos)
+
 @interface INTemperatureResolutionResult : INIntentResolutionResult
 
 // This resolution result is for when the app extension wants to tell Siri to proceed, with a given temperature. The resolvedTemperature can be different than the original temperature. This allows app extensions to apply business logic constraints to the temperature. For example, constraining it to a maximum or minimum value.
Clone this wiki locally