Skip to content

Intents tvOS 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/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/Intents.framework/Headers/INPerson.h /Applications/Xcode_13.0.0-beta5.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/Intents.framework/Headers/INPerson.h
--- /Applications/Xcode_13.0.0-beta4.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.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/AppleTVOS.platform/Developer/SDKs/AppleTVOS.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/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/Intents.framework/Headers/INRelativeReference.h /Applications/Xcode_13.0.0-beta5.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/Intents.framework/Headers/INRelativeReference.h
--- /Applications/Xcode_13.0.0-beta4.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/Intents.framework/Headers/INRelativeReference.h	2021-07-22 04:35:27.000000000 -0400
+++ /Applications/Xcode_13.0.0-beta5.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/Intents.framework/Headers/INRelativeReference.h	2021-08-07 08:50: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/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/Intents.framework/Headers/INRelativeReferenceResolutionResult.h /Applications/Xcode_13.0.0-beta5.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/Intents.framework/Headers/INRelativeReferenceResolutionResult.h
--- /Applications/Xcode_13.0.0-beta4.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/Intents.framework/Headers/INRelativeReferenceResolutionResult.h	2021-07-22 04:35:28.000000000 -0400
+++ /Applications/Xcode_13.0.0-beta5.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/Intents.framework/Headers/INRelativeReferenceResolutionResult.h	2021-08-07 08:50: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/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/Intents.framework/Headers/INRelativeSetting.h /Applications/Xcode_13.0.0-beta5.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/Intents.framework/Headers/INRelativeSetting.h
--- /Applications/Xcode_13.0.0-beta4.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/Intents.framework/Headers/INRelativeSetting.h	2021-07-22 04:35:12.000000000 -0400
+++ /Applications/Xcode_13.0.0-beta5.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/Intents.framework/Headers/INRelativeSetting.h	2021-08-07 08:50:08.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/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/Intents.framework/Headers/INRelativeSettingResolutionResult.h /Applications/Xcode_13.0.0-beta5.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/Intents.framework/Headers/INRelativeSettingResolutionResult.h
--- /Applications/Xcode_13.0.0-beta4.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/Intents.framework/Headers/INRelativeSettingResolutionResult.h	2021-07-22 04:35:13.000000000 -0400
+++ /Applications/Xcode_13.0.0-beta5.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/Intents.framework/Headers/INRelativeSettingResolutionResult.h	2021-08-07 08:50:09.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/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/Intents.framework/Headers/INTemperatureResolutionResult.h /Applications/Xcode_13.0.0-beta5.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/Intents.framework/Headers/INTemperatureResolutionResult.h
--- /Applications/Xcode_13.0.0-beta4.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/Intents.framework/Headers/INTemperatureResolutionResult.h	2021-07-22 04:35:16.000000000 -0400
+++ /Applications/Xcode_13.0.0-beta5.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/Intents.framework/Headers/INTemperatureResolutionResult.h	2021-08-07 08:50:13.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