Skip to content

Intents iOS xcode14.0 beta1

Manuel de la Pena edited this page Aug 18, 2022 · 3 revisions

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

diff -ruN /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Intents.framework/Headers/INMessage.h /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Intents.framework/Headers/INMessage.h
--- /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Intents.framework/Headers/INMessage.h	2022-02-23 07:08:56.000000000 -0500
+++ /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Intents.framework/Headers/INMessage.h	2022-06-03 18:08:35.000000000 -0400
@@ -9,6 +9,7 @@
 
 @class INPerson;
 @class INSpeakableString;
+@class INFile;
 
 NS_ASSUME_NONNULL_BEGIN
 
@@ -55,6 +56,17 @@
                         recipients:(nullable NSArray<INPerson *> *)recipients
                          groupName:(nullable INSpeakableString *)groupName
                        messageType:(INMessageType)messageType
+                       serviceName:(nullable NSString *)serviceName
+                  audioMessageFile:(nullable INFile *)audioMessageFile NS_DESIGNATED_INITIALIZER API_AVAILABLE(ios(16.0), watchos(9.0)) API_UNAVAILABLE(macos);
+
+- (instancetype)initWithIdentifier:(NSString *)identifier
+            conversationIdentifier:(nullable NSString *)conversationIdentifier
+                           content:(nullable NSString *)content
+                          dateSent:(nullable NSDate *)dateSent
+                            sender:(nullable INPerson *)sender
+                        recipients:(nullable NSArray<INPerson *> *)recipients
+                         groupName:(nullable INSpeakableString *)groupName
+                       messageType:(INMessageType)messageType
                        serviceName:(nullable NSString *)serviceName NS_DESIGNATED_INITIALIZER API_AVAILABLE(ios(13.2), watchos(6.1)) API_UNAVAILABLE(macosx);
 
 - (instancetype)initWithIdentifier:(NSString *)identifier
@@ -98,6 +110,8 @@
 
 @property (readonly, copy, nullable, NS_NONATOMIC_IOSONLY) NSString *serviceName API_AVAILABLE(ios(13.2), watchos(6.1)) API_UNAVAILABLE(macosx);
 
+@property (readonly, copy, nullable, NS_NONATOMIC_IOSONLY) INFile *audioMessageFile;
+
 @end
 
 NS_ASSUME_NONNULL_END
diff -ruN /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Intents.framework/Headers/INSendMessageIntentResponse.h /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Intents.framework/Headers/INSendMessageIntentResponse.h
--- /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Intents.framework/Headers/INSendMessageIntentResponse.h	2022-02-23 07:58:24.000000000 -0500
+++ /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Intents.framework/Headers/INSendMessageIntentResponse.h	2022-05-31 14:51:21.000000000 -0400
@@ -34,7 +34,7 @@
 
 @property (readonly, NS_NONATOMIC_IOSONLY) INSendMessageIntentResponseCode code;
 
-@property (readwrite, copy, nullable, NS_NONATOMIC_IOSONLY) INMessage *sentMessage API_AVAILABLE(ios(10.3));
+@property (readwrite, copy, nullable, NS_NONATOMIC_IOSONLY) NSArray<INMessage *> *sentMessages API_AVAILABLE(ios(16.0), watchos(9.0));
 
 @end
 
diff -ruN /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Intents.framework/Headers/INSendMessageIntentResponse_Deprecated.h /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Intents.framework/Headers/INSendMessageIntentResponse_Deprecated.h
--- /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Intents.framework/Headers/INSendMessageIntentResponse_Deprecated.h	1969-12-31 19:00:00.000000000 -0500
+++ /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Intents.framework/Headers/INSendMessageIntentResponse_Deprecated.h	2022-05-31 14:51:24.000000000 -0400
@@ -0,0 +1,19 @@
+//
+//  INSendMessageIntentResponse_Deprecated.h
+//  Intents
+//
+//  Created by Abdullah Abo Dan on 2/16/22.
+//  Copyright © 2022 Apple Inc. All rights reserved.
+//
+
+#import <Intents/INSendMessageIntentResponse.h>
+
+NS_ASSUME_NONNULL_BEGIN
+
+@interface INSendMessageIntentResponse (Deprecated)
+
+@property (readwrite, copy, nullable, NS_NONATOMIC_IOSONLY) INMessage *sentMessage API_DEPRECATED_WITH_REPLACEMENT("sentMessages", ios(10.3, 16.0), watchos(3.2, 9.0)) API_UNAVAILABLE(macos, tvos);
+
+@end
+
+NS_ASSUME_NONNULL_END
diff -ruN /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Intents.framework/Headers/Intents.apinotes /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Intents.framework/Headers/Intents.apinotes
--- /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Intents.framework/Headers/Intents.apinotes	2022-02-16 01:06:39.000000000 -0500
+++ /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Intents.framework/Headers/Intents.apinotes	2022-05-21 06:17:47.000000000 -0400
@@ -244,6 +244,26 @@
     - Selector: 'resolveTimeForCreateAlarm:withCompletion:'
       MethodKind: Instance
       SwiftName: 'resolveTime(forCreateAlarm:with:)'
+  - Name: INCreateEventIntentHandling
+    Methods:
+    - Selector: 'confirmCreateEvent:completion:'
+      MethodKind: Instance
+      SwiftName: 'confirm(createEvent:completion:)'
+    - Selector: 'handleCreateEvent:completion:'
+      MethodKind: Instance
+      SwiftName: 'handle(createEvent:completion:)'
+    - Selector: 'resolveDateTimeRangeForCreateEvent:withCompletion:'
+      MethodKind: Instance
+      SwiftName: 'resolveDateTimeRange(forCreateEvent:with:)'
+    - Selector: 'resolveLocationForCreateEvent:withCompletion:'
+      MethodKind: Instance
+      SwiftName: 'resolveLocation(forCreateEvent:with:)'
+    - Selector: 'resolveParticipantsForCreateEvent:withCompletion:'
+      MethodKind: Instance
+      SwiftName: 'resolveParticipants(forCreateEvent:with:)'
+    - Selector: 'resolveTitleForCreateEvent:withCompletion:'
+      MethodKind: Instance
+      SwiftName: 'resolveTitle(forCreateEvent:with:)'
   - Name: INCreateFileIntentHandling
     Methods:
     - Selector: 'confirmCreateFile:completion:'
@@ -326,6 +346,20 @@
     - Selector: 'resolveAlarmsForDeleteAlarm:withCompletion:'
       MethodKind: Instance
       SwiftName: 'resolveAlarms(forDeleteAlarm:with:)'
+  - Name: INDeleteEventIntentHandling
+    Methods:
+    - Selector: 'confirmDeleteEvent:completion:'
+      MethodKind: Instance
+      SwiftName: 'confirm(deleteEvent:completion:)'
+    - Selector: 'handleDeleteEvent:completion:'
+      MethodKind: Instance
+      SwiftName: 'handle(deleteEvent:completion:)'
+    - Selector: 'resolveDeleteAllOccurrencesForDeleteEvent:withCompletion:'
+      MethodKind: Instance
+      SwiftName: 'resolveDeleteAllOccurrences(forDeleteEvent:with:)'
+    - Selector: 'resolveTargetEventIdentifierForDeleteEvent:withCompletion:'
+      MethodKind: Instance
+      SwiftName: 'resolveTargetEventIdentifier(forDeleteEvent:with:)'
   - Name: INDeleteFilePermanentlyIntentHandling
     Methods:
     - Selector: 'confirmDeleteFilePermanently:completion:'
@@ -403,6 +437,29 @@
     - Selector: 'resolveDevicesForFindDeviceAndPlaySound:withCompletion:'
       MethodKind: Instance
       SwiftName: 'resolveDevices(forFindDeviceAndPlaySound:with:)'
+  - Name: INFindEventsIntentHandling
+    Methods:
+    - Selector: 'confirmFindEvents:completion:'
+      MethodKind: Instance
+      SwiftName: 'confirm(findEvents:completion:)'
+    - Selector: 'handleFindEvents:completion:'
+      MethodKind: Instance
+      SwiftName: 'handle(findEvents:completion:)'
+    - Selector: 'resolveDateTimeRangeForFindEvents:withCompletion:'
+      MethodKind: Instance
+      SwiftName: 'resolveDateTimeRange(forFindEvents:with:)'
+    - Selector: 'resolveLocationForFindEvents:withCompletion:'
+      MethodKind: Instance
+      SwiftName: 'resolveLocation(forFindEvents:with:)'
+    - Selector: 'resolveParticipantsForFindEvents:withCompletion:'
+      MethodKind: Instance
+      SwiftName: 'resolveParticipants(forFindEvents:with:)'
+    - Selector: 'resolveRequestedEventAttributeForFindEvents:withCompletion:'
+      MethodKind: Instance
+      SwiftName: 'resolveRequestedEventAttribute(forFindEvents:with:)'
+    - Selector: 'resolveSearchQueryForFindEvents:withCompletion:'
+      MethodKind: Instance
+      SwiftName: 'resolveSearchQuery(forFindEvents:with:)'
   - Name: INGetCarLockStatusIntentHandling
     Methods:
     - Selector: 'confirmGetCarLockStatus:completion:'
@@ -1775,6 +1832,14 @@
     - Selector: 'resolveEntityTypeForUncompressFile:withCompletion:'
       MethodKind: Instance
       SwiftName: 'resolveEntityType(forUncompressFile:with:)'
+  - Name: INUnsendMessagesIntentHandling
+    Methods:
+    - Selector: 'confirmUnsendMessages:completion:'
+      MethodKind: Instance
+      SwiftName: 'confirm(unsendMessages:completion:)'
+    - Selector: 'handleUnsendMessages:completion:'
+      MethodKind: Instance
+      SwiftName: 'handle(unsendMessages:completion:)'
   - Name: INUpdateAlarmIntentHandling
     Methods:
     - Selector: 'confirmUpdateAlarm:completion:'
@@ -1795,6 +1860,38 @@
     - Selector: 'resolveProposedTimeForUpdateAlarm:withCompletion:'
       MethodKind: Instance
       SwiftName: 'resolveProposedTime(forUpdateAlarm:with:)'
+  - Name: INUpdateEventIntentHandling
+    Methods:
+    - Selector: 'confirmUpdateEvent:completion:'
+      MethodKind: Instance
+      SwiftName: 'confirm(updateEvent:completion:)'
+    - Selector: 'handleUpdateEvent:completion:'
+      MethodKind: Instance
+      SwiftName: 'handle(updateEvent:completion:)'
+    - Selector: 'resolveAddParticipantsForUpdateEvent:withCompletion:'
+      MethodKind: Instance
+      SwiftName: 'resolveAddParticipants(forUpdateEvent:with:)'
+    - Selector: 'resolveRemoveLocationForUpdateEvent:withCompletion:'
+      MethodKind: Instance
+      SwiftName: 'resolveRemoveLocation(forUpdateEvent:with:)'
+    - Selector: 'resolveRemoveParticipantsForUpdateEvent:withCompletion:'
+      MethodKind: Instance
+      SwiftName: 'resolveRemoveParticipants(forUpdateEvent:with:)'
+    - Selector: 'resolveSetDateTimeRangeForUpdateEvent:withCompletion:'
+      MethodKind: Instance
+      SwiftName: 'resolveSetDateTimeRange(forUpdateEvent:with:)'
+    - Selector: 'resolveSetLocationForUpdateEvent:withCompletion:'
+      MethodKind: Instance
+      SwiftName: 'resolveSetLocation(forUpdateEvent:with:)'
+    - Selector: 'resolveSetTitleForUpdateEvent:withCompletion:'
+      MethodKind: Instance
+      SwiftName: 'resolveSetTitle(forUpdateEvent:with:)'
+    - Selector: 'resolveTargetEventIdentifierForUpdateEvent:withCompletion:'
+      MethodKind: Instance
+      SwiftName: 'resolveTargetEventIdentifier(forUpdateEvent:with:)'
+    - Selector: 'resolveUpdateAllOccurrencesForUpdateEvent:withCompletion:'
+      MethodKind: Instance
+      SwiftName: 'resolveUpdateAllOccurrences(forUpdateEvent:with:)'
   - Name: INUpdateMediaAffinityIntentHandling
     Methods:
     - Selector: 'confirmUpdateMediaAffinity:completion:'
diff -ruN /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Intents.framework/Headers/Intents.h /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Intents.framework/Headers/Intents.h
--- /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Intents.framework/Headers/Intents.h	2022-02-23 07:12:14.000000000 -0500
+++ /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Intents.framework/Headers/Intents.h	2022-05-31 14:48:58.000000000 -0400
@@ -172,3 +172,4 @@
 #import <Intents/INAddTasksIntent_Deprecated.h>
 #import <Intents/INMediaSearch_Deprecated.h>
 #import <Intents/INCallRecord_Deprecated.h>
+#import <Intents/INSendMessageIntentResponse_Deprecated.h>
Clone this wiki locally