-
Notifications
You must be signed in to change notification settings - Fork 514
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[DataDetection] Add new framework for Xcode 13 beta 3. #12259
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,131 @@ | ||
using CoreFoundation; | ||
using ObjCRuntime; | ||
using Foundation; | ||
|
||
using System; | ||
|
||
namespace DataDetection { | ||
|
||
[iOS (15,0), MacCatalyst (15,0)] | ||
[BaseType (typeof(NSObject))] | ||
[DisableDefaultCtor] | ||
interface DDDetectedValue | ||
{ | ||
[Export ("matchedString")] | ||
string MatchedString { get; } | ||
|
||
[Export ("matchedRange")] | ||
NSRange MatchedRange { get; } | ||
} | ||
|
||
[iOS (15,0), MacCatalyst (15,0)] | ||
[BaseType (typeof (DDDetectedValue))] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. base does not have a default ctor |
||
[DisableDefaultCtor] | ||
interface DDDetectedValueLink | ||
{ | ||
[Export ("URL")] | ||
NSUrl Url { get; } | ||
} | ||
|
||
[iOS (15,0), MacCatalyst (15,0)] | ||
[BaseType (typeof (DDDetectedValue))] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
[DisableDefaultCtor] | ||
interface DDDetectedValuePhoneNumber | ||
{ | ||
[Export ("phoneNumber")] | ||
string PhoneNumber { get; } | ||
|
||
[NullAllowed, Export ("label")] | ||
string Label { get; } | ||
} | ||
|
||
[iOS (15,0), MacCatalyst (15,0)] | ||
[BaseType (typeof (DDDetectedValue))] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
[DisableDefaultCtor] | ||
interface DDDetectedValueEmailAddress | ||
{ | ||
[Export ("emailAddress")] | ||
string EmailAddress { get; } | ||
|
||
[NullAllowed, Export ("label")] | ||
string Label { get; } | ||
} | ||
|
||
[iOS (15,0), MacCatalyst (15,0)] | ||
[BaseType (typeof (DDDetectedValue))] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
[DisableDefaultCtor] | ||
interface DDDetectedValuePostalAddress | ||
{ | ||
[NullAllowed, Export ("street")] | ||
string Street { get; } | ||
|
||
[NullAllowed, Export ("city")] | ||
string City { get; } | ||
|
||
[NullAllowed, Export ("state")] | ||
string State { get; } | ||
|
||
[NullAllowed, Export ("postalCode")] | ||
string PostalCode { get; } | ||
|
||
[NullAllowed, Export ("country")] | ||
string Country { get; } | ||
} | ||
|
||
[iOS (15,0), MacCatalyst (15,0)] | ||
[BaseType (typeof (DDDetectedValue))] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
[DisableDefaultCtor] | ||
interface DDDetectedValueCalendarEvent | ||
{ | ||
[Export ("allDay")] | ||
bool AllDay { [Bind ("isAllDay")] get; } | ||
|
||
[NullAllowed, Export ("startDate")] | ||
NSDate StartDate { get; } | ||
|
||
[NullAllowed, Export ("startTimeZone")] | ||
NSTimeZone StartTimeZone { get; } | ||
|
||
[NullAllowed, Export ("endDate")] | ||
NSDate EndDate { get; } | ||
|
||
[NullAllowed, Export ("endTimeZone")] | ||
NSTimeZone EndTimeZone { get; } | ||
} | ||
|
||
[iOS (15,0), MacCatalyst (15,0)] | ||
[BaseType (typeof (DDDetectedValue))] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
[DisableDefaultCtor] | ||
interface DDDetectedValueShipmentTrackingNumber | ||
{ | ||
[Export ("carrier")] | ||
string Carrier { get; } | ||
|
||
[Export ("trackingNumber")] | ||
string TrackingNumber { get; } | ||
} | ||
|
||
[iOS (15,0), MacCatalyst (15,0)] | ||
[BaseType (typeof (DDDetectedValue))] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
[DisableDefaultCtor] | ||
interface DDDetectedValueFlightNumber | ||
{ | ||
[Export ("airline")] | ||
string Airline { get; } | ||
|
||
[Export ("flightNumber")] | ||
string FlightNumber { get; } | ||
} | ||
|
||
[iOS (15,0), MacCatalyst (15,0)] | ||
[BaseType (typeof (DDDetectedValue))] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
[DisableDefaultCtor] | ||
interface DDDetectedValueMoneyAmount | ||
{ | ||
[Export ("currency")] | ||
string Currency { get; } | ||
|
||
[Export ("amount")] | ||
double Amount { get; } | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2058,6 +2058,7 @@ IOS_FRAMEWORKS = \ | |
CoreSpotlight \ | ||
CoreTelephony \ | ||
CoreText \ | ||
DataDetection \ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You need to add the framework to |
||
DeviceCheck \ | ||
EventKit \ | ||
EventKitUI \ | ||
|
This file was deleted.
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
small