Skip to content

Intents tvOS xcode13.0 beta2

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-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/Intents.framework/Headers/INGetVisualCodeIntent.h /Applications/Xcode_13.0.0-beta2.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/Intents.framework/Headers/INGetVisualCodeIntent.h
--- /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/Intents.framework/Headers/INGetVisualCodeIntent.h	2021-06-02 05:34:38.000000000 -0400
+++ /Applications/Xcode_13.0.0-beta2.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/Intents.framework/Headers/INGetVisualCodeIntent.h	2021-06-17 03:42:47.000000000 -0400
@@ -14,7 +14,7 @@
 
 NS_ASSUME_NONNULL_BEGIN
 
-API_AVAILABLE(ios(11.0), watchos(4.0))
+API_DEPRECATED("INGetVisualCodeIntent is deprecated. There is no replacement.", ios(11.0, 15.0), watchos(4.0, 8.0))
 API_UNAVAILABLE(macos, tvos)
 @interface INGetVisualCodeIntent : INIntent
 
@@ -31,7 +31,7 @@
  @discussion The minimum requirement for an implementing class is that it should be able to handle the intent. The resolution and confirmation methods are optional. The handling method is always called last, after resolving and confirming the intent.
  */
 
-API_AVAILABLE(ios(11.0), watchos(4.0))
+API_DEPRECATED("INGetVisualCodeIntentHandling is deprecated. There is no replacement.", ios(11.0, 15.0), watchos(4.0, 8.0))
 API_UNAVAILABLE(macos, tvos)
 @protocol INGetVisualCodeIntentHandling <NSObject>
 
diff -ruN /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/Intents.framework/Headers/INGetVisualCodeIntentResponse.h /Applications/Xcode_13.0.0-beta2.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/Intents.framework/Headers/INGetVisualCodeIntentResponse.h
--- /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/Intents.framework/Headers/INGetVisualCodeIntentResponse.h	2021-06-02 05:34:18.000000000 -0400
+++ /Applications/Xcode_13.0.0-beta2.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/Intents.framework/Headers/INGetVisualCodeIntentResponse.h	2021-06-17 03:42:28.000000000 -0400
@@ -18,11 +18,11 @@
     INGetVisualCodeIntentResponseCodeFailure,
     INGetVisualCodeIntentResponseCodeFailureRequiringAppLaunch,
     INGetVisualCodeIntentResponseCodeFailureAppConfigurationRequired,
-} API_AVAILABLE(ios(11.0), watchos(4.0)) API_UNAVAILABLE(macos, tvos);
+} API_DEPRECATED("INGetVisualCodeIntentResponseCode is deprecated. There is no replacement.", ios(11.0, 15.0), watchos(4.0, 8.0)) API_UNAVAILABLE(macos, tvos);
 
 NS_ASSUME_NONNULL_BEGIN
 
-API_AVAILABLE(ios(11.0), watchos(4.0))
+API_DEPRECATED("INGetVisualCodeIntentResponse is deprecated. There is no replacement.", ios(11.0, 15.0), watchos(4.0, 8.0))
 API_UNAVAILABLE(macos, tvos)
 @interface INGetVisualCodeIntentResponse : INIntentResponse
 
diff -ruN /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/Intents.framework/Headers/INIntent.h /Applications/Xcode_13.0.0-beta2.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/Intents.framework/Headers/INIntent.h
--- /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/Intents.framework/Headers/INIntent.h	2021-06-02 05:34:25.000000000 -0400
+++ /Applications/Xcode_13.0.0-beta2.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/Intents.framework/Headers/INIntent.h	2021-06-17 03:42:35.000000000 -0400
@@ -13,6 +13,7 @@
 @class INImage;
 @class INParameter;
 @class INParameterImage;
+@class INIntentDonationMetadata;
 
 API_AVAILABLE(ios(10.0), macos(11.0), watchos(3.2), tvos(14.0))
 @interface INIntent : NSObject <NSCopying, NSSecureCoding>
@@ -30,6 +31,9 @@
 // Defines additional contexts in which this intent is relevant to be suggested to the user. Applies to intents donated using INInteraction or set as suggested using INVoiceShortcutCenter.
 @property (readwrite, assign, NS_NONATOMIC_IOSONLY) INShortcutAvailabilityOptions shortcutAvailability API_AVAILABLE(ios(14.0), watchos(7.0)) API_UNAVAILABLE(macos, tvos);
 
+// A metadata object to attach additional metadata to this intent when donated
+@property (copy, nullable, nonatomic) INIntentDonationMetadata *donationMetadata API_AVAILABLE(ios(15.0), macos(12.0), watchos(8.0), tvos(15.0));
+
 // Set an image associated with a parameter on the receiver. This image will be used in display of the receiver throughout the system.
 - (void)setImage:(INImage * _Nullable)image forParameterNamed:(NSString *)parameterName API_AVAILABLE(ios(12.0), watchos(5.0)) NS_REFINED_FOR_SWIFT;
 - (INImage * _Nullable)imageForParameterNamed:(NSString *)parameterName API_AVAILABLE(ios(12.0), watchos(5.0)) NS_REFINED_FOR_SWIFT;
diff -ruN /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/Intents.framework/Headers/INInteraction.h /Applications/Xcode_13.0.0-beta2.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/Intents.framework/Headers/INInteraction.h
--- /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/Intents.framework/Headers/INInteraction.h	2021-06-02 05:34:20.000000000 -0400
+++ /Applications/Xcode_13.0.0-beta2.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/Intents.framework/Headers/INInteraction.h	2021-06-17 03:42:29.000000000 -0400
@@ -9,7 +9,6 @@
 
 @class INIntent;
 @class INIntentResponse;
-@class INIntentDonationMetadata;
 
 typedef NS_ENUM(NSInteger, INIntentHandlingStatus) {
     INIntentHandlingStatusUnspecified = 0,
@@ -60,9 +59,6 @@
 // This is consistent with the response state of the intentResponse, if specified
 @property (readonly, NS_NONATOMIC_IOSONLY) INIntentHandlingStatus intentHandlingStatus;
 
-// A metadata object to attach additional intent-specific metadata to this donation
-@property (copy, nullable, NS_NONATOMIC_IOSONLY) INIntentDonationMetadata *donationMetadata;
-
 // Indicates the direction of the interaction
 @property (assign, NS_NONATOMIC_IOSONLY) INInteractionDirection direction;
 
diff -ruN /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/Intents.framework/Headers/INPhotoAttributeOptions.h /Applications/Xcode_13.0.0-beta2.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/Intents.framework/Headers/INPhotoAttributeOptions.h
--- /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/Intents.framework/Headers/INPhotoAttributeOptions.h	2021-06-02 05:34:19.000000000 -0400
+++ /Applications/Xcode_13.0.0-beta2.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/Intents.framework/Headers/INPhotoAttributeOptions.h	2021-06-17 03:42:29.000000000 -0400
@@ -41,6 +41,6 @@
     INPhotoAttributeOptionLoopPhoto API_AVAILABLE(ios(12.0), macos(10.14), watchos(5.0)) = (1UL << 26),
     INPhotoAttributeOptionBouncePhoto API_AVAILABLE(ios(12.0), macos(10.14), watchos(5.0)) = (1UL << 27),
     INPhotoAttributeOptionLongExposurePhoto API_AVAILABLE(ios(12.0), macos(10.14), watchos(5.0)) = (1UL << 28),
-} API_AVAILABLE(ios(10.0), watchos(3.2)) API_UNAVAILABLE(macos, tvos);
+} API_DEPRECATED("INPhotoAttributeOptions is deprecated. There is no replacement", ios(10.0, 15.0), watchos(3.2, 8.0)) API_UNAVAILABLE(macos, tvos);
 
 #endif // INPhotoAttributeOptions_h
diff -ruN /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/Intents.framework/Headers/INReservation.h /Applications/Xcode_13.0.0-beta2.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/Intents.framework/Headers/INReservation.h
--- /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/Intents.framework/Headers/INReservation.h	2021-06-02 05:34:28.000000000 -0400
+++ /Applications/Xcode_13.0.0-beta2.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/Intents.framework/Headers/INReservation.h	2021-06-17 03:42:38.000000000 -0400
@@ -26,7 +26,6 @@
 @property (readonly, assign, NS_NONATOMIC_IOSONLY) INReservationStatus reservationStatus;
 @property (readonly, copy, nullable, NS_NONATOMIC_IOSONLY) NSString *reservationHolderName;
 @property (readonly, copy, nullable, NS_NONATOMIC_IOSONLY) NSArray<INReservationAction *> *actions;
-@property (readonly, copy, nullable, NS_NONATOMIC_IOSONLY) NSURL *url API_DEPRECATED("Use URL instead", ios(14.0, 14.0), macos(10.16, 11.0), watchos(7.0, 7.0));
 @property (readonly, copy, nullable, NS_NONATOMIC_IOSONLY) NSURL *URL API_AVAILABLE(ios(14.0), watchos(7.0));
 
 @end
diff -ruN /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/Intents.framework/Headers/INSendMessageIntentDonationMetadata.h /Applications/Xcode_13.0.0-beta2.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/Intents.framework/Headers/INSendMessageIntentDonationMetadata.h
--- /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/Intents.framework/Headers/INSendMessageIntentDonationMetadata.h	2021-06-02 05:34:22.000000000 -0400
+++ /Applications/Xcode_13.0.0-beta2.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/Intents.framework/Headers/INSendMessageIntentDonationMetadata.h	2021-06-17 03:42:32.000000000 -0400
@@ -15,6 +15,10 @@
 
 @property (NS_NONATOMIC_IOSONLY) BOOL mentionsCurrentUser;
 
+@property (NS_NONATOMIC_IOSONLY, getter=isReplyToCurrentUser) BOOL replyToCurrentUser;
+
+@property (NS_NONATOMIC_IOSONLY) BOOL notifyRecipientAnyway;
+
 @property (NS_NONATOMIC_IOSONLY) NSUInteger recipientCount;
 
 - (instancetype)init NS_DESIGNATED_INITIALIZER;
diff -ruN /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/Intents.framework/Headers/INVisualCodeType.h /Applications/Xcode_13.0.0-beta2.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/Intents.framework/Headers/INVisualCodeType.h
--- /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/Intents.framework/Headers/INVisualCodeType.h	2021-06-02 05:34:27.000000000 -0400
+++ /Applications/Xcode_13.0.0-beta2.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/Intents.framework/Headers/INVisualCodeType.h	2021-06-17 03:42:37.000000000 -0400
@@ -19,6 +19,6 @@
     INVisualCodeTypeTransit API_AVAILABLE(ios(12.0), watchos(5.0)),
     INVisualCodeTypeBus API_AVAILABLE(ios(12.0), watchos(5.0)),
     INVisualCodeTypeSubway API_AVAILABLE(ios(12.0), watchos(5.0)),
-} API_AVAILABLE(ios(11.0), watchos(4.0)) API_UNAVAILABLE(macos, tvos);
+} API_DEPRECATED("INVisualCodeType is deprecated. There is no replacement.", ios(11.0, 15.0), watchos(4.0, 8.0)) API_UNAVAILABLE(macos, tvos);
 
 #endif // INVisualCodeType_h
diff -ruN /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/Intents.framework/Headers/INVisualCodeTypeResolutionResult.h /Applications/Xcode_13.0.0-beta2.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/Intents.framework/Headers/INVisualCodeTypeResolutionResult.h
--- /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/Intents.framework/Headers/INVisualCodeTypeResolutionResult.h	2021-06-02 05:34:29.000000000 -0400
+++ /Applications/Xcode_13.0.0-beta2.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/Intents.framework/Headers/INVisualCodeTypeResolutionResult.h	2021-06-17 03:42:39.000000000 -0400
@@ -11,7 +11,7 @@
 
 NS_ASSUME_NONNULL_BEGIN
 
-API_AVAILABLE(ios(11.0), watchos(4.0))
+API_DEPRECATED("INVisualCodeTypeResolutionResult is deprecated. There is no replacement.", ios(11.0, 15.0), watchos(4.0, 8.0))
 API_UNAVAILABLE(macos, tvos)
 @interface INVisualCodeTypeResolutionResult : INIntentResolutionResult
 
Clone this wiki locally