Skip to content

DataDetection watchOS xcode13.0 beta2

Manuel de la Pena edited this page Jul 27, 2021 · 3 revisions

#DataDetection.framework https://github.com/xamarin/xamarin-macios/pull/12259

diff -ruN /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/DataDetection.framework/Headers/DDDetectedValue.h /Applications/Xcode_13.0.0-beta2.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/DataDetection.framework/Headers/DDDetectedValue.h
--- /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/DataDetection.framework/Headers/DDDetectedValue.h	1969-12-31 19:00:00.000000000 -0500
+++ /Applications/Xcode_13.0.0-beta2.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/DataDetection.framework/Headers/DDDetectedValue.h	2021-06-17 04:15:34.000000000 -0400
@@ -0,0 +1,63 @@
+//
+//  DDDetectedValue.h
+//  DataDetection
+//
+//  Copyright © 2021 Apple Inc. All rights reserved.
+//
+
+#import <DataDetection/DataDetectionBase.h>
+
+NS_ASSUME_NONNULL_BEGIN
+
+DD_EXTERN API_AVAILABLE(ios(15.0)) @interface DDDetectedValue : NSObject
+@property(nonatomic, readonly) NSString *matchedString;
+@property(nonatomic, readonly) NSRange matchedRange;
+- (instancetype)init NS_UNAVAILABLE;
+@end
+
+DD_EXTERN API_AVAILABLE(ios(15.0)) @interface DDDetectedValueLink : DDDetectedValue
+@property(nonatomic, readonly) NSURL *URL;
+@end
+
+DD_EXTERN API_AVAILABLE(ios(15.0)) @interface DDDetectedValuePhoneNumber : DDDetectedValue
+@property(nonatomic, readonly) NSString *phoneNumber;
+@property(nonatomic, readonly, nullable) NSString *label;
+@end
+
+DD_EXTERN API_AVAILABLE(ios(15.0)) @interface DDDetectedValueEmailAddress : DDDetectedValue
+@property(nonatomic, readonly) NSString *emailAddress;
+@property(nonatomic, readonly, nullable) NSString *label;
+@end
+
+DD_EXTERN API_AVAILABLE(ios(15.0)) @interface DDDetectedValuePostalAddress : DDDetectedValue
+@property(nonatomic, readonly, nullable) NSString *street;
+@property(nonatomic, readonly, nullable) NSString *city;
+@property(nonatomic, readonly, nullable) NSString *state;
+@property(nonatomic, readonly, nullable) NSString *postalCode;
+@property(nonatomic, readonly, nullable) NSString *country;
+@end
+
+DD_EXTERN API_AVAILABLE(ios(15.0)) @interface DDDetectedValueCalendarEvent : DDDetectedValue
+@property(nonatomic, readonly, getter=isAllDay) BOOL allDay;
+@property(nonatomic, readonly, nullable) NSDate *startDate;
+@property(nonatomic, readonly, nullable) NSTimeZone *startTimeZone;
+@property(nonatomic, readonly, nullable) NSDate *endDate;
+@property(nonatomic, readonly, nullable) NSTimeZone *endTimeZone;
+@end
+
+DD_EXTERN API_AVAILABLE(ios(15.0)) @interface DDDetectedValueShipmentTrackingNumber : DDDetectedValue
+@property(nonatomic, readonly) NSString *carrier;
+@property(nonatomic, readonly) NSString *trackingNumber;
+@end
+
+DD_EXTERN API_AVAILABLE(ios(15.0)) @interface DDDetectedValueFlightNumber : DDDetectedValue
+@property(nonatomic, readonly) NSString *airline;
+@property(nonatomic, readonly) NSString *flightNumber;
+@end
+
+DD_EXTERN API_AVAILABLE(ios(15.0)) @interface DDDetectedValueMoneyAmount : DDDetectedValue
+@property(nonatomic, readonly) NSString *currency;
+@property(nonatomic, readonly) double amount;
+@end
+
+NS_ASSUME_NONNULL_END
diff -ruN /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/DataDetection.framework/Headers/DataDetection.h /Applications/Xcode_13.0.0-beta2.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/DataDetection.framework/Headers/DataDetection.h
--- /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/DataDetection.framework/Headers/DataDetection.h	1969-12-31 19:00:00.000000000 -0500
+++ /Applications/Xcode_13.0.0-beta2.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/DataDetection.framework/Headers/DataDetection.h	2021-06-15 06:46:43.000000000 -0400
@@ -0,0 +1,12 @@
+//
+//  DataDetection.h
+//  DataDetection
+//
+//  Copyright © 2021 Apple Inc. All rights reserved.
+//
+
+#import <Foundation/Foundation.h>
+
+#import <DataDetection/DataDetectionBase.h>
+#import <DataDetection/DDDetectedValue.h>
+
diff -ruN /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/DataDetection.framework/Headers/DataDetectionBase.h /Applications/Xcode_13.0.0-beta2.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/DataDetection.framework/Headers/DataDetectionBase.h
--- /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/DataDetection.framework/Headers/DataDetectionBase.h	1969-12-31 19:00:00.000000000 -0500
+++ /Applications/Xcode_13.0.0-beta2.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/DataDetection.framework/Headers/DataDetectionBase.h	2021-06-15 06:46:43.000000000 -0400
@@ -0,0 +1,14 @@
+//
+//  DataDetectionBase.h
+//  DataDetection
+//
+//  Copyright © 2021 Apple Inc. All rights reserved.
+//
+
+#import <Foundation/Foundation.h>
+
+#ifdef __cplusplus
+#define DD_EXTERN extern "C" __attribute__((visibility ("default")))
+#else
+#define DD_EXTERN extern __attribute__((visibility ("default")))
+#endif
Clone this wiki locally