Skip to content

Intents iOS xcode16.0 b1

Rolf Bjarne Kvinge edited this page Jul 11, 2024 · 3 revisions

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

diff -ruN /Applications/Xcode_15.4.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Intents.framework/Headers/INAggregatedMessageReaction.h /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Intents.framework/Headers/INAggregatedMessageReaction.h
--- /Applications/Xcode_15.4.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Intents.framework/Headers/INAggregatedMessageReaction.h	1970-01-01 01:00:00
+++ /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Intents.framework/Headers/INAggregatedMessageReaction.h	2024-05-30 11:08:34
@@ -0,0 +1,35 @@
+//
+//  INAggregatedMessageReaction.h
+//  Intents
+//
+//  Copyright (c) 2016-2024 Apple Inc. All rights reserved.
+//
+
+#import <Foundation/Foundation.h>
+
+#import <Intents/INMessageReactionType.h>
+
+@class INPerson;
+
+NS_ASSUME_NONNULL_BEGIN
+
+API_AVAILABLE(ios(18.0), watchos(11.0))
+API_UNAVAILABLE(macos, tvos)
+@interface INAggregatedMessageReaction : NSObject <NSCopying, NSSecureCoding>
+
+- (instancetype)initWithReactionType:(INMessageReactionType)reactionType
+                               emoji:(nullable NSString *)emoji
+                             senders:(nullable NSArray<INPerson *> *)senders
+                       reactionCount:(nullable NSNumber *)reactionCount NS_DESIGNATED_INITIALIZER NS_REFINED_FOR_SWIFT;
+
+@property (readonly, assign, NS_NONATOMIC_IOSONLY) INMessageReactionType reactionType;
+
+@property (readonly, copy, nullable, NS_NONATOMIC_IOSONLY) NSString *emoji;
+
+@property (readonly, copy, nullable, NS_NONATOMIC_IOSONLY) NSArray<INPerson *> *senders;
+
+@property (readonly, copy, nullable, NS_NONATOMIC_IOSONLY) NSNumber *reactionCount NS_REFINED_FOR_SWIFT;
+
+@end
+
+NS_ASSUME_NONNULL_END
diff -ruN /Applications/Xcode_15.4.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Intents.framework/Headers/INMessage.h /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Intents.framework/Headers/INMessage.h
--- /Applications/Xcode_15.4.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Intents.framework/Headers/INMessage.h	2024-04-13 14:53:24
+++ /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Intents.framework/Headers/INMessage.h	2024-05-30 06:10:20
@@ -11,6 +11,9 @@
 @class INSpeakableString;
 @class INFile;
 @class INMessageLinkMetadata;
+@class INAggregatedMessageReaction;
+@class INMessageReaction;
+@class INSticker;
 
 NS_ASSUME_NONNULL_BEGIN
 
@@ -42,6 +45,8 @@
     INMessageTypeFile API_AVAILABLE(ios(12.0), watchos(5.0)) API_UNAVAILABLE(macosx),
     INMessageTypeLink API_AVAILABLE(ios(12.0), watchos(5.0)) API_UNAVAILABLE(macosx),
     INMessageTypeReaction API_AVAILABLE(ios(17.0), watchos(10.0)) API_UNAVAILABLE(macosx),
+    INMessageTypeMediaAnimatedImage API_AVAILABLE(ios(18.0), watchos(11.0)) API_UNAVAILABLE(macosx),
+    INMessageTypeThirdPartyAttachment API_AVAILABLE(ios(18.0), watchos(11.0)) API_UNAVAILABLE(macosx),
 } API_AVAILABLE(ios(11.0), watchos(4.0)) API_UNAVAILABLE(macosx, tvos);
 
 API_AVAILABLE(ios(10.0), watchos(3.2))
@@ -89,7 +94,7 @@
                             sender:(nullable INPerson *)sender
                         recipients:(nullable NSArray<INPerson *> *)recipients
                          groupName:(nullable INSpeakableString *)groupName
-                       messageType:(INMessageType)messageType NS_DESIGNATED_INITIALIZER API_AVAILABLE(ios(11.0), watchos(4.0)) API_UNAVAILABLE(macosx);
+messageType:(INMessageType)messageType API_DEPRECATED("Use initializer with reaction and aggregatedReactions", ios(17.0, 18.0), macos(14.0, 15.0), watchos(10.0, 11.0))  API_UNAVAILABLE(ios, macos, watchos);
 
 - (instancetype)initWithIdentifier:(NSString *)identifier
             conversationIdentifier:(nullable NSString *)conversationIdentifier
@@ -97,7 +102,7 @@
                           dateSent:(nullable NSDate *)dateSent
                             sender:(nullable INPerson *)sender
                         recipients:(nullable NSArray<INPerson *> *)recipients
-                       messageType:(INMessageType)messageType API_AVAILABLE(ios(11.0), watchos(4.0)) API_UNAVAILABLE(macosx);
+                       messageType:(INMessageType)messageType API_DEPRECATED("Use initializer with reaction and aggregatedReactions", ios(17.0, 18.0), macos(14.0, 15.0), watchos(10.0, 11.0))  API_UNAVAILABLE(ios, macos, watchos);
 
 - (instancetype)initWithIdentifier:(NSString *)identifier
                            content:(nullable NSString *)content
@@ -126,6 +131,33 @@
                        messageType:(INMessageType)messageType
                numberOfAttachments:(nullable NSNumber *)numberOfAttachments API_AVAILABLE(ios(17.0), watchos(10.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
+                       serviceName:(nullable NSString *)serviceName
+                       messageType:(INMessageType)messageType
+                 referencedMessage:(nullable INMessage *)referencedMessage
+                          reaction:(nullable INMessageReaction *)reaction
+               aggregatedReactions:(nullable NSArray<INAggregatedMessageReaction *> *)aggregatedReactions API_AVAILABLE(ios(18.0), watchos(11.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
+                       serviceName:(nullable NSString *)serviceName
+                       messageType:(INMessageType)messageType
+                 referencedMessage:(nullable INMessage *)referencedMessage
+                           sticker:(nullable INSticker *)sticker
+                          reaction:(nullable INMessageReaction *)reaction
+               aggregatedReactions:(nullable NSArray<INAggregatedMessageReaction *> *)aggregatedReactions NS_DESIGNATED_INITIALIZER API_AVAILABLE(ios(18.0), watchos(11.0)) API_UNAVAILABLE(macos);
+
 @property (readonly, copy, NS_NONATOMIC_IOSONLY) NSString *identifier;
 
 @property (readonly, copy, nullable, NS_NONATOMIC_IOSONLY) NSString *conversationIdentifier API_AVAILABLE(ios(11.0), watchos(4.0)) API_UNAVAILABLE(macosx);
@@ -151,6 +183,12 @@
 @property (readonly, copy, nullable, NS_NONATOMIC_IOSONLY) INFile *audioMessageFile API_DEPRECATED("Use attachmentFile instead", ios(16.0, 17.0), macos(13.0, 14.0), watchos(9.0, 10.0));
 
 @property (readonly, copy, nullable, NS_NONATOMIC_IOSONLY) INMessageLinkMetadata *linkMetadata API_AVAILABLE(ios(17.0), watchos(10.0)) API_UNAVAILABLE(macosx);
+
+@property (readwrite, copy, nullable, NS_NONATOMIC_IOSONLY) INSticker *sticker API_AVAILABLE(ios(18.0), watchos(11.0), macosx(15.0));
+
+@property (readwrite, copy, nullable, NS_NONATOMIC_IOSONLY) NSArray<INAggregatedMessageReaction *> *aggregatedReactions API_AVAILABLE(ios(18.0), watchos(11.0)) API_UNAVAILABLE(macosx);
+
+@property (readwrite, copy, nullable, NS_NONATOMIC_IOSONLY) INMessageReaction *reaction API_AVAILABLE(ios(18.0), watchos(11.0)) API_UNAVAILABLE(macosx);
 
 @end
 
diff -ruN /Applications/Xcode_15.4.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Intents.framework/Headers/INMessageReaction.h /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Intents.framework/Headers/INMessageReaction.h
--- /Applications/Xcode_15.4.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Intents.framework/Headers/INMessageReaction.h	1970-01-01 01:00:00
+++ /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Intents.framework/Headers/INMessageReaction.h	2024-05-30 11:08:41
@@ -0,0 +1,30 @@
+//
+//  INMessageReaction.h
+//  Intents
+//
+//  Copyright (c) 2016-2024 Apple Inc. All rights reserved.
+//
+
+#import <Foundation/Foundation.h>
+
+#import <Intents/INMessageReactionType.h>
+
+NS_ASSUME_NONNULL_BEGIN
+
+API_AVAILABLE(ios(18.0), macos(15.0), watchos(11.0))
+API_UNAVAILABLE(tvos)
+@interface INMessageReaction : NSObject <NSCopying, NSSecureCoding>
+
+- (instancetype)initWithReactionType:(INMessageReactionType)reactionType
+                 reactionDescription:(nullable NSString *)reactionDescription
+                               emoji:(nullable NSString *)emoji NS_DESIGNATED_INITIALIZER;
+
+@property (readonly, assign, NS_NONATOMIC_IOSONLY) INMessageReactionType reactionType;
+
+@property (readonly, copy, nullable, NS_NONATOMIC_IOSONLY) NSString *reactionDescription;
+
+@property (readonly, copy, nullable, NS_NONATOMIC_IOSONLY) NSString *emoji;
+
+@end
+
+NS_ASSUME_NONNULL_END
diff -ruN /Applications/Xcode_15.4.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Intents.framework/Headers/INMessageReactionType.h /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Intents.framework/Headers/INMessageReactionType.h
--- /Applications/Xcode_15.4.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Intents.framework/Headers/INMessageReactionType.h	1970-01-01 01:00:00
+++ /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Intents.framework/Headers/INMessageReactionType.h	2024-05-30 11:08:33
@@ -0,0 +1,21 @@
+//
+//  INMessageReactionType.h
+//  Intents
+//
+//  Copyright (c) 2016-2024 Apple Inc. All rights reserved.
+//
+
+#ifndef INMessageReactionType_h
+#define INMessageReactionType_h
+
+#import <Foundation/Foundation.h>
+#import <Intents/IntentsDefines.h>
+
+typedef NS_ENUM(NSInteger, INMessageReactionType) {
+    INMessageReactionTypeUnknown = 0,
+    INMessageReactionTypeEmojiReaction API_DEPRECATED("", ios(18.0, 18.0), macos(15.0, 15.0), watchos(11.0, 11.0)),
+    INMessageReactionTypeEmoji,
+    INMessageReactionTypeGeneric,
+} API_AVAILABLE(ios(18.0), macos(15.0), watchos(11.0)) API_UNAVAILABLE(tvos);
+
+#endif // INMessageReactionType_h
diff -ruN /Applications/Xcode_15.4.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Intents.framework/Headers/INSticker.h /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Intents.framework/Headers/INSticker.h
--- /Applications/Xcode_15.4.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Intents.framework/Headers/INSticker.h	1970-01-01 01:00:00
+++ /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Intents.framework/Headers/INSticker.h	2024-05-30 11:08:39
@@ -0,0 +1,27 @@
+//
+//  INSticker.h
+//  Intents
+//
+//  Copyright (c) 2016-2024 Apple Inc. All rights reserved.
+//
+
+#import <Foundation/Foundation.h>
+
+#import <Intents/INStickerType.h>
+
+NS_ASSUME_NONNULL_BEGIN
+
+API_AVAILABLE(ios(18.0), macos(15.0), watchos(11.0))
+API_UNAVAILABLE(tvos)
+@interface INSticker : NSObject <NSCopying, NSSecureCoding>
+
+- (instancetype)initWithType:(INStickerType)type
+                       emoji:(nullable NSString *)emoji NS_DESIGNATED_INITIALIZER;
+
+@property (readonly, assign, NS_NONATOMIC_IOSONLY) INStickerType type;
+
+@property (readonly, copy, nullable, NS_NONATOMIC_IOSONLY) NSString *emoji;
+
+@end
+
+NS_ASSUME_NONNULL_END
diff -ruN /Applications/Xcode_15.4.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Intents.framework/Headers/INStickerType.h /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Intents.framework/Headers/INStickerType.h
--- /Applications/Xcode_15.4.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Intents.framework/Headers/INStickerType.h	1970-01-01 01:00:00
+++ /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Intents.framework/Headers/INStickerType.h	2024-05-30 11:08:35
@@ -0,0 +1,20 @@
+//
+//  INStickerType.h
+//  Intents
+//
+//  Copyright (c) 2016-2024 Apple Inc. All rights reserved.
+//
+
+#ifndef INStickerType_h
+#define INStickerType_h
+
+#import <Foundation/Foundation.h>
+#import <Intents/IntentsDefines.h>
+
+typedef NS_ENUM(NSInteger, INStickerType) {
+    INStickerTypeUnknown = 0,
+    INStickerTypeEmoji,
+    INStickerTypeGeneric,
+} API_AVAILABLE(ios(18.0), macos(15.0), watchos(11.0)) API_UNAVAILABLE(tvos);
+
+#endif // INStickerType_h
Clone this wiki locally