From 06b68c56a4c3269ed1b504a9985698d175e46047 Mon Sep 17 00:00:00 2001 From: Rolf Bjarne Kvinge Date: Fri, 12 Jul 2024 14:52:07 +0200 Subject: [PATCH 1/6] [MapKit] Implement Xcode 16.0 beta 1, beta 2 and beta 3 changes. Note: there were no changes in beta 2 or beta 3. Draft because needs tests for manual bindings. --- src/MapKit/MKAddressFilter.cs | 41 ++++ src/MapKit/MKEnums.cs | 136 ++++++++++++ src/frameworks.sources | 1 + src/mapkit.cs | 195 +++++++++++++++++- .../Documentation.KnownFailures.txt | 68 ++++++ .../api-annotations-dotnet/iOS-MapKit.todo | 84 -------- .../api-annotations-dotnet/macOS-MapKit.todo | 87 -------- .../api-annotations-dotnet/tvOS-MapKit.todo | 67 ------ tests/xtro-sharpie/iOS-MapKit.todo | 84 -------- tests/xtro-sharpie/macOS-MapKit.todo | 87 -------- tests/xtro-sharpie/tvOS-MapKit.todo | 67 ------ 11 files changed, 440 insertions(+), 477 deletions(-) create mode 100644 src/MapKit/MKAddressFilter.cs delete mode 100644 tests/xtro-sharpie/api-annotations-dotnet/iOS-MapKit.todo delete mode 100644 tests/xtro-sharpie/api-annotations-dotnet/tvOS-MapKit.todo delete mode 100644 tests/xtro-sharpie/iOS-MapKit.todo delete mode 100644 tests/xtro-sharpie/tvOS-MapKit.todo diff --git a/src/MapKit/MKAddressFilter.cs b/src/MapKit/MKAddressFilter.cs new file mode 100644 index 000000000000..df8d6e58bfd3 --- /dev/null +++ b/src/MapKit/MKAddressFilter.cs @@ -0,0 +1,41 @@ +#if !WATCH + +using System; +using System.Runtime.InteropServices; +using Foundation; +using ObjCRuntime; +using MapKit; + +#nullable enable + +namespace MapKit { + /// This enum is used to select how to initialize a new instance of a . + public enum MKAddressFilterConstructorOption { + /// The options parameter passed to the constructor is are included address filter options. + IncludingOptions, + /// The options parameter passed to the constructor is are excluded address filter options. + ExcludeOptions, + } + + public partial class MKAddressFilter { + /// Create a new with the specified address filter options. + /// The address filter options to use. + /// Specify whether the argument is including or excluding the given options. + /// A new instance with the specified address filter options. + public MKAddressFilter (MKAddressFilter options, MKAddressFilterConstructorOption constructorOption) + { + switch (constructorOption) { + case MKAddressFilterConstructorOption.IncludingOptions: + InitializeHandle (_InitIncludingOptions (options)); + break; + case MKAddressFilterConstructorOption.ExcludeOptions: + InitializeHandle (_InitExcludingOptions (options)); + break; + default: + throw new ArgumentOutOfRangeException (nameof (constructorOption), constructorOption, "Invalid enum value."); + } + } + } +} + +#endif diff --git a/src/MapKit/MKEnums.cs b/src/MapKit/MKEnums.cs index e1e959e29964..ac278e1a0b70 100644 --- a/src/MapKit/MKEnums.cs +++ b/src/MapKit/MKEnums.cs @@ -175,6 +175,8 @@ public enum MKLocalSearchCompleterResultType : ulong { Address = 1 << 0, PointOfInterest = 1 << 1, Query = 1 << 2, + [NoWatch, TV (18, 0), Mac (15, 0), iOS (18, 0), MacCatalyst (18, 0)] + PhysicalFeature = 1 << 3, } [Flags] @@ -184,6 +186,8 @@ public enum MKLocalSearchCompleterResultType : ulong { public enum MKLocalSearchResultType : ulong { Address = 1 << 0, PointOfInterest = 1 << 1, + [NoWatch, TV (18, 0), Mac (15, 0), iOS (18, 0), MacCatalyst (18, 0)] + PhysicalFeature = 1 << 2, } [Mac (13, 0), iOS (16, 0), MacCatalyst (16, 0), NoWatch, TV (16, 0)] @@ -356,6 +360,138 @@ public enum MKPointOfInterestCategory { [Field ("MKPointOfInterestCategoryZoo")] Zoo, + + [NoWatch, TV (18, 0), Mac (15, 0), iOS (18, 0), MacCatalyst (18, 0)] + [Field ("MKPointOfInterestCategoryAnimalService")] + AnimalService, + + [NoWatch, TV (18, 0), Mac (15, 0), iOS (18, 0), MacCatalyst (18, 0)] + [Field ("MKPointOfInterestCategoryAutomotiveRepair")] + AutomotiveRepair, + + [NoWatch, TV (18, 0), Mac (15, 0), iOS (18, 0), MacCatalyst (18, 0)] + [Field ("MKPointOfInterestCategoryBaseball")] + Baseball, + + [NoWatch, TV (18, 0), Mac (15, 0), iOS (18, 0), MacCatalyst (18, 0)] + [Field ("MKPointOfInterestCategoryBasketball")] + Basketball, + + [NoWatch, TV (18, 0), Mac (15, 0), iOS (18, 0), MacCatalyst (18, 0)] + [Field ("MKPointOfInterestCategoryBeauty")] + Beauty, + + [NoWatch, TV (18, 0), Mac (15, 0), iOS (18, 0), MacCatalyst (18, 0)] + [Field ("MKPointOfInterestCategoryBowling")] + Bowling, + + [NoWatch, TV (18, 0), Mac (15, 0), iOS (18, 0), MacCatalyst (18, 0)] + [Field ("MKPointOfInterestCategoryCastle")] + Castle, + + [NoWatch, TV (18, 0), Mac (15, 0), iOS (18, 0), MacCatalyst (18, 0)] + [Field ("MKPointOfInterestCategoryConventionCenter")] + ConventionCenter, + + [NoWatch, TV (18, 0), Mac (15, 0), iOS (18, 0), MacCatalyst (18, 0)] + [Field ("MKPointOfInterestCategoryDistillery")] + Distillery, + + [NoWatch, TV (18, 0), Mac (15, 0), iOS (18, 0), MacCatalyst (18, 0)] + [Field ("MKPointOfInterestCategoryFairground")] + Fairground, + + [NoWatch, TV (18, 0), Mac (15, 0), iOS (18, 0), MacCatalyst (18, 0)] + [Field ("MKPointOfInterestCategoryFishing")] + Fishing, + + [NoWatch, TV (18, 0), Mac (15, 0), iOS (18, 0), MacCatalyst (18, 0)] + [Field ("MKPointOfInterestCategoryFortress")] + Fortress, + + [NoWatch, TV (18, 0), Mac (15, 0), iOS (18, 0), MacCatalyst (18, 0)] + [Field ("MKPointOfInterestCategoryGolf")] + Golf, + + [NoWatch, TV (18, 0), Mac (15, 0), iOS (18, 0), MacCatalyst (18, 0)] + [Field ("MKPointOfInterestCategoryGoKart")] + GoKart, + + [NoWatch, TV (18, 0), Mac (15, 0), iOS (18, 0), MacCatalyst (18, 0)] + [Field ("MKPointOfInterestCategoryHiking")] + Hiking, + + [NoWatch, TV (18, 0), Mac (15, 0), iOS (18, 0), MacCatalyst (18, 0)] + [Field ("MKPointOfInterestCategoryKayaking")] + Kayaking, + + [NoWatch, TV (18, 0), Mac (15, 0), iOS (18, 0), MacCatalyst (18, 0)] + [Field ("MKPointOfInterestCategoryLandmark")] + Landmark, + + [NoWatch, TV (18, 0), Mac (15, 0), iOS (18, 0), MacCatalyst (18, 0)] + [Field ("MKPointOfInterestCategoryMailbox")] + Mailbox, + + [NoWatch, TV (18, 0), Mac (15, 0), iOS (18, 0), MacCatalyst (18, 0)] + [Field ("MKPointOfInterestCategoryMiniGolf")] + MiniGolf, + + [NoWatch, TV (18, 0), Mac (15, 0), iOS (18, 0), MacCatalyst (18, 0)] + [Field ("MKPointOfInterestCategoryMusicVenue")] + MusicVenue, + + [NoWatch, TV (18, 0), Mac (15, 0), iOS (18, 0), MacCatalyst (18, 0)] + [Field ("MKPointOfInterestCategoryNationalMonument")] + NationalMonument, + + [NoWatch, TV (18, 0), Mac (15, 0), iOS (18, 0), MacCatalyst (18, 0)] + [Field ("MKPointOfInterestCategoryPlanetarium")] + Planetarium, + + [NoWatch, TV (18, 0), Mac (15, 0), iOS (18, 0), MacCatalyst (18, 0)] + [Field ("MKPointOfInterestCategoryRockClimbing")] + RockClimbing, + + [NoWatch, TV (18, 0), Mac (15, 0), iOS (18, 0), MacCatalyst (18, 0)] + [Field ("MKPointOfInterestCategoryRVPark")] + RVPark, + + [NoWatch, TV (18, 0), Mac (15, 0), iOS (18, 0), MacCatalyst (18, 0)] + [Field ("MKPointOfInterestCategorySkatePark")] + SkatePark, + + [NoWatch, TV (18, 0), Mac (15, 0), iOS (18, 0), MacCatalyst (18, 0)] + [Field ("MKPointOfInterestCategorySkating")] + Skating, + + [NoWatch, TV (18, 0), Mac (15, 0), iOS (18, 0), MacCatalyst (18, 0)] + [Field ("MKPointOfInterestCategorySkiing")] + Skiing, + + [NoWatch, TV (18, 0), Mac (15, 0), iOS (18, 0), MacCatalyst (18, 0)] + [Field ("MKPointOfInterestCategorySoccer")] + Soccer, + + [NoWatch, TV (18, 0), Mac (15, 0), iOS (18, 0), MacCatalyst (18, 0)] + [Field ("MKPointOfInterestCategorySpa")] + Spa, + + [NoWatch, TV (18, 0), Mac (15, 0), iOS (18, 0), MacCatalyst (18, 0)] + [Field ("MKPointOfInterestCategorySurfing")] + Surfing, + + [NoWatch, TV (18, 0), Mac (15, 0), iOS (18, 0), MacCatalyst (18, 0)] + [Field ("MKPointOfInterestCategorySwimming")] + Swimming, + + [NoWatch, TV (18, 0), Mac (15, 0), iOS (18, 0), MacCatalyst (18, 0)] + [Field ("MKPointOfInterestCategoryTennis")] + Tennis, + + [NoWatch, TV (18, 0), Mac (15, 0), iOS (18, 0), MacCatalyst (18, 0)] + [Field ("MKPointOfInterestCategoryVolleyball")] + Volleyball, } #endif diff --git a/src/frameworks.sources b/src/frameworks.sources index 1aabd8437b2e..30be9f6a3ef4 100644 --- a/src/frameworks.sources +++ b/src/frameworks.sources @@ -1132,6 +1132,7 @@ MAPKIT_CORE_SOURCES = \ MapKit/MapKit.cs \ MAPKIT_SOURCES = \ + MapKit/MKAddressFilter.cs \ MapKit/MKCompat.cs \ MapKit/MKDirections.cs \ MapKit/MKFeatureDisplayPriority.cs \ diff --git a/src/mapkit.cs b/src/mapkit.cs index 27aa82ec9754..7f076f67bb2a 100644 --- a/src/mapkit.cs +++ b/src/mapkit.cs @@ -235,6 +235,10 @@ interface MKAnnotationView { [MacCatalyst (14, 0)] [Export ("selectedZPriority")] float SelectedZPriority { get; set; } + + [iOS (18, 0), Mac (15, 0), MacCatalyst (18, 0), NoTV, NoWatch] + [Export ("accessoryOffset", ArgumentSemantic.Assign)] + CGPoint AccessoryOffset { get; set; } } [ThreadSafe] @@ -443,6 +447,14 @@ interface MKMapItem : NSSecureCoding [MacCatalyst (13, 1)] [NullAllowed, Export ("pointOfInterestCategory")] string PointOfInterestCategory { get; set; } + + [NoWatch, TV (18, 0), Mac (15, 0), iOS (18, 0), MacCatalyst (18, 0)] + [Export ("identifier"), NullAllowed] + MKMapItemIdentifier Identifier { get; } + + [NoWatch, TV (18, 0), Mac (15, 0), iOS (18, 0), MacCatalyst (18, 0)] + [Export ("alternateIdentifiers")] + NSSet AlternateIdentifiers { get; } } [NoWatch] @@ -872,6 +884,11 @@ interface MKMapViewDelegate { [MacCatalyst (13, 1)] [Export ("mapViewDidChangeVisibleRegion:")] void DidChangeVisibleRegion (MKMapView mapView); + + [return: NullAllowed] + [Export ("mapView:selectionAccessoryForAnnotation:"), DelegateName ("MKMapViewDelegateGetSelectionAccessory"), DefaultValue (null)] + [NoWatch, NoTV, Mac (15, 0), iOS (18, 0), MacCatalyst (18, 0)] + MKSelectionAccessory GetSelectionAccessory (MKMapView mapView, IMKAnnotation annotation); } [BaseType (typeof (MKAnnotationView))] @@ -1444,6 +1461,14 @@ interface MKLocalSearchRequest : NSCopying { [MacCatalyst (13, 1)] [NullAllowed, Export ("pointOfInterestFilter", ArgumentSemantic.Copy)] MKPointOfInterestFilter PointOfInterestFilter { get; set; } + + [NoWatch, TV (18, 0), Mac (15, 0), iOS (18, 0), MacCatalyst (18, 0)] + [Export ("regionPriority", ArgumentSemantic.Assign)] + MKLocalSearchRegionPriority RegionPriority { get; set; } + + [NoWatch, TV (18, 0), Mac (15, 0), iOS (18, 0), MacCatalyst (18, 0)] + [Export ("addressFilter", ArgumentSemantic.Copy), NullAllowed] + MKAddressFilter AddressFilter { get; set; } } [NoWatch] @@ -2095,6 +2120,14 @@ interface MKLocalSearchCompleter { [MacCatalyst (13, 1)] [NullAllowed, Export ("pointOfInterestFilter", ArgumentSemantic.Copy)] MKPointOfInterestFilter PointOfInterestFilter { get; set; } + + [NoWatch, TV (18, 0), Mac (15, 0), iOS (18, 0), MacCatalyst (18, 0)] + [Export ("regionPriority", ArgumentSemantic.Assign)] + MKLocalSearchRegionPriority RegionPriority { get; set; } + + [NoWatch, TV (18, 0), Mac (15, 0), iOS (18, 0), MacCatalyst (18, 0)] + [Export ("addressFilter", ArgumentSemantic.Copy), NullAllowed] + MKAddressFilter AddressFilter { get; set; } } interface IMKLocalSearchCompleterDelegate { } @@ -2688,14 +2721,20 @@ interface MKMapFeatureAnnotation : MKAnnotation { NSString PointOfInterestCategory { get; } } - [NoMac, iOS (16, 0), MacCatalyst (16, 0), NoWatch, NoTV] + [Mac (15, 0), iOS (16, 0), MacCatalyst (16, 0), NoWatch, TV (18, 0)] [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface MKMapItemRequest { + [NoMac, NoTV] [Export ("initWithMapFeatureAnnotation:")] [DesignatedInitializer] NativeHandle Constructor (MKMapFeatureAnnotation mapFeatureAnnotation); + [NoWatch, TV (18, 0), Mac (15, 0), iOS (18, 0), MacCatalyst (18, 0)] + [Export ("initWithMapItemIdentifier:")] + [DesignatedInitializer] + NativeHandle Constructor (MKMapItemIdentifier identifier); + [Async] [Export ("getMapItemWithCompletionHandler:")] void GetMapItem (Action completionHandler); @@ -2703,6 +2742,9 @@ interface MKMapItemRequest { [Export ("cancel")] void Cancel (); + [NoMac, NoTV] + [Deprecated (PlatformName.iOS, 18, 0, message: "Use 'MapFeatureAnnotation' instead.")] + [Deprecated (PlatformName.MacCatalyst, 18, 0, message: "Use 'MapFeatureAnnotation' instead.")] [Export ("featureAnnotation")] MKMapFeatureAnnotation FeatureAnnotation { get; } @@ -2711,6 +2753,14 @@ interface MKMapItemRequest { [Export ("isLoading")] bool IsLoading { get; } + + [NoWatch, TV (18, 0), Mac (15, 0), iOS (18, 0), MacCatalyst (18, 0)] + [Export ("mapItemIdentifier"), NullAllowed] + MKMapItemIdentifier MapItemIdentifier { get; } + + [NoWatch, NoTV, NoMac, iOS (18, 0), MacCatalyst (18, 0)] + [Export ("mapFeatureAnnotation"), NullAllowed] + MKMapFeatureAnnotation MapFeatureAnnotation { get; } } [Mac (13, 0), iOS (16, 0), MacCatalyst (16, 0), NoWatch, TV (16, 0)] @@ -2735,4 +2785,147 @@ interface MKStandardMapConfiguration { [Export ("showsTraffic")] bool ShowsTraffic { get; set; } } + + [Flags] + [Native] + [NoWatch, TV (18, 0), Mac (15, 0), iOS (18, 0), MacCatalyst (18, 0)] + enum MKAddressFilterOption : ulong { + Country = 1 << 0, + AdministrativeArea = 1 << 1, + SubAdministrativeArea = 1 << 2, + Locality = 1 << 3, + SubLocality = 1 << 4, + PostalCode = 1 << 5, + } + + [NoWatch, TV (18, 0), Mac (15, 0), iOS (18, 0), MacCatalyst (18, 0)] + [BaseType (typeof (NSObject))] + [DisableDefaultCtor] + interface MKAddressFilter : NSSecureCoding, NSCopying { + [Static] + [Export ("filterIncludingAll")] + MKAddressFilter IncludingAll { get; } + + [Static] + [Export ("filterExcludingAll")] + MKAddressFilter ExcludingAll { get; } + + [Export ("initIncludingOptions:")] + [DesignatedInitializer] + [Internal] + NativeHandle _InitIncludingOptions (MKAddressFilter options); + + [Export ("initExcludingOptions:")] + [DesignatedInitializer] + [Internal] + NativeHandle _InitExcludingOptions (MKAddressFilter options); + + [Export ("includesOptions:")] + bool Includes (MKAddressFilterOption options); + + [Export ("excludesOptions:")] + bool Excludes (MKAddressFilterOption options); + } + + [NoWatch, TV (18, 0), Mac (15, 0), iOS (18, 0), MacCatalyst (18, 0)] + [BaseType (typeof (NSObject))] + [DisableDefaultCtor] + interface MKMapItemAnnotation : MKAnnotation { + [Export ("initWithMapItem:")] + [DesignatedInitializer] + NativeHandle Constructor (MKMapItem mapItem); + + [Export ("mapItem", ArgumentSemantic.Strong)] + MKMapItem MapItem { get; } + } + + [NoWatch, NoTV, Mac (15, 0), iOS (18, 0), MacCatalyst (18, 0)] + [Protocol (BackwardsCompatibleCodeGeneration = false), Model] + [BaseType (typeof (NSObject))] + interface MKMapItemDetailViewControllerDelegate { + [Export ("mapItemDetailViewControllerDidFinish:")] + void DidFinish (MKMapItemDetailViewController detailViewController); + } + + interface IMKMapItemDetailViewControllerDelegate { } + + [NoWatch, NoTV, Mac (15, 0), iOS (18, 0), MacCatalyst (18, 0)] + [BaseType (typeof (UIViewController))] + [DisableDefaultCtor] + interface MKMapItemDetailViewController { + [Export ("mapItem", ArgumentSemantic.Strong), NullAllowed] + MKMapItem MapItem { get; set; } + + [Export ("delegate", ArgumentSemantic.Weak), NullAllowed] + NSObject WeakDelegate { get; set; } + + [Wrap ("WeakDelegate")] + IMKMapItemDetailViewControllerDelegate Delegate { get; set; } + + [Export ("initWithMapItem:displaysMap:")] + NativeHandle Constructor ([NullAllowed] MKMapItem mapItem, bool displaysMap); + + [Export ("initWithMapItem:")] + NativeHandle Constructor ([NullAllowed] MKMapItem mapItem); + } + + [NoWatch, TV (18, 0), Mac (15, 0), iOS (18, 0), MacCatalyst (18, 0)] + [BaseType (typeof (NSObject))] + [DisableDefaultCtor] + interface MKMapItemIdentifier : NSCopying, NSSecureCoding { + [Export ("initWithIdentifierString:")] + NativeHandle Constructor (string identifier); + + [Export ("identifierString")] + string IdentifierString { get; } + } + + [NoWatch, NoTV, Mac (15, 0), iOS (18, 0), MacCatalyst (18, 0)] + [BaseType (typeof (NSObject))] + [DisableDefaultCtor] + interface MKSelectionAccessory { + [Static] + [Export ("mapItemDetailWithPresentationStyle:")] + MKSelectionAccessory Create (MKMapItemDetailSelectionAccessoryPresentationStyle presentationStyle); + } + + [Native] + [NoWatch, NoTV, Mac (15, 0), iOS (18, 0), MacCatalyst (18, 0)] + enum MKMapItemDetailSelectionAccessoryCalloutStyle : long { + Automatic, + Full, + Compact, + } + + [NoWatch, NoTV, Mac (15, 0), iOS (18, 0), MacCatalyst (18, 0)] + [BaseType (typeof (NSObject))] + [DisableDefaultCtor] + interface MKMapItemDetailSelectionAccessoryPresentationStyle { + [Static] + [Export ("automaticWithPresentationViewController:")] + MKMapItemDetailSelectionAccessoryPresentationStyle CreateAutomatic (UIViewController presentationViewController); + + [Static] + [Export ("callout", ArgumentSemantic.Strong)] + MKMapItemDetailSelectionAccessoryPresentationStyle Callout { get; } + + [Static] + [Export ("calloutWithCalloutStyle:")] + MKMapItemDetailSelectionAccessoryPresentationStyle CreateCallout (MKMapItemDetailSelectionAccessoryCalloutStyle style); + + [Static] + [Export ("sheetPresentedFromViewController:")] + MKMapItemDetailSelectionAccessoryPresentationStyle CreateSheet (UIViewController viewController); + + [Static] + [Export ("openInMaps", ArgumentSemantic.Strong)] + MKMapItemDetailSelectionAccessoryPresentationStyle OpenInMaps { get; } + } + + [Native] + [NoWatch, TV (18, 0), Mac (15, 0), iOS (18, 0), MacCatalyst (18, 0)] + enum MKLocalSearchRegionPriority : long { + Default = 0, + Required, + } } diff --git a/tests/cecil-tests/Documentation.KnownFailures.txt b/tests/cecil-tests/Documentation.KnownFailures.txt index af9bc49c35a3..1954b5f41091 100644 --- a/tests/cecil-tests/Documentation.KnownFailures.txt +++ b/tests/cecil-tests/Documentation.KnownFailures.txt @@ -13122,6 +13122,12 @@ F:MailKit.MEMessageSecurityErrorCode.EncodingError F:MailKit.MEMessageState.Draft F:MailKit.MEMessageState.Received F:MailKit.MEMessageState.Sending +F:MapKit.MKAddressFilterOption.AdministrativeArea +F:MapKit.MKAddressFilterOption.Country +F:MapKit.MKAddressFilterOption.Locality +F:MapKit.MKAddressFilterOption.PostalCode +F:MapKit.MKAddressFilterOption.SubAdministrativeArea +F:MapKit.MKAddressFilterOption.SubLocality F:MapKit.MKAnnotationViewCollisionMode.Circle F:MapKit.MKAnnotationViewCollisionMode.None F:MapKit.MKAnnotationViewCollisionMode.Rectangle @@ -13164,9 +13170,13 @@ F:MapKit.MKFeatureVisibility.Adaptive F:MapKit.MKFeatureVisibility.Hidden F:MapKit.MKFeatureVisibility.Visible F:MapKit.MKLocalSearchCompleterResultType.Address +F:MapKit.MKLocalSearchCompleterResultType.PhysicalFeature F:MapKit.MKLocalSearchCompleterResultType.PointOfInterest F:MapKit.MKLocalSearchCompleterResultType.Query +F:MapKit.MKLocalSearchRegionPriority.Default +F:MapKit.MKLocalSearchRegionPriority.Required F:MapKit.MKLocalSearchResultType.Address +F:MapKit.MKLocalSearchResultType.PhysicalFeature F:MapKit.MKLocalSearchResultType.PointOfInterest F:MapKit.MKLookAroundBadgePosition.BottomTrailing F:MapKit.MKLookAroundBadgePosition.TopLeading @@ -13181,6 +13191,9 @@ F:MapKit.MKMapFeatureOptions.Territories F:MapKit.MKMapFeatureType.PhysicalFeature F:MapKit.MKMapFeatureType.PointOfInterest F:MapKit.MKMapFeatureType.Territory +F:MapKit.MKMapItemDetailSelectionAccessoryCalloutStyle.Automatic +F:MapKit.MKMapItemDetailSelectionAccessoryCalloutStyle.Compact +F:MapKit.MKMapItemDetailSelectionAccessoryCalloutStyle.Full F:MapKit.MKMapPoint.X F:MapKit.MKMapPoint.Y F:MapKit.MKMapRect.Null @@ -13201,42 +13214,75 @@ F:MapKit.MKPinAnnotationColor.Purple F:MapKit.MKPinAnnotationColor.Red F:MapKit.MKPointOfInterestCategory.Airport F:MapKit.MKPointOfInterestCategory.AmusementPark +F:MapKit.MKPointOfInterestCategory.AnimalService F:MapKit.MKPointOfInterestCategory.Aquarium F:MapKit.MKPointOfInterestCategory.Atm +F:MapKit.MKPointOfInterestCategory.AutomotiveRepair F:MapKit.MKPointOfInterestCategory.Bakery F:MapKit.MKPointOfInterestCategory.Bank +F:MapKit.MKPointOfInterestCategory.Baseball +F:MapKit.MKPointOfInterestCategory.Basketball F:MapKit.MKPointOfInterestCategory.Beach +F:MapKit.MKPointOfInterestCategory.Beauty +F:MapKit.MKPointOfInterestCategory.Bowling F:MapKit.MKPointOfInterestCategory.Brewery F:MapKit.MKPointOfInterestCategory.Cafe F:MapKit.MKPointOfInterestCategory.Campground F:MapKit.MKPointOfInterestCategory.CarRental +F:MapKit.MKPointOfInterestCategory.Castle +F:MapKit.MKPointOfInterestCategory.ConventionCenter +F:MapKit.MKPointOfInterestCategory.Distillery F:MapKit.MKPointOfInterestCategory.EVCharger +F:MapKit.MKPointOfInterestCategory.Fairground F:MapKit.MKPointOfInterestCategory.FireStation +F:MapKit.MKPointOfInterestCategory.Fishing F:MapKit.MKPointOfInterestCategory.FitnessCenter F:MapKit.MKPointOfInterestCategory.FoodMarket +F:MapKit.MKPointOfInterestCategory.Fortress F:MapKit.MKPointOfInterestCategory.GasStation +F:MapKit.MKPointOfInterestCategory.GoKart +F:MapKit.MKPointOfInterestCategory.Golf +F:MapKit.MKPointOfInterestCategory.Hiking F:MapKit.MKPointOfInterestCategory.Hospital F:MapKit.MKPointOfInterestCategory.Hotel +F:MapKit.MKPointOfInterestCategory.Kayaking +F:MapKit.MKPointOfInterestCategory.Landmark F:MapKit.MKPointOfInterestCategory.Laundry F:MapKit.MKPointOfInterestCategory.Library +F:MapKit.MKPointOfInterestCategory.Mailbox F:MapKit.MKPointOfInterestCategory.Marina +F:MapKit.MKPointOfInterestCategory.MiniGolf F:MapKit.MKPointOfInterestCategory.MovieTheater F:MapKit.MKPointOfInterestCategory.Museum +F:MapKit.MKPointOfInterestCategory.MusicVenue +F:MapKit.MKPointOfInterestCategory.NationalMonument F:MapKit.MKPointOfInterestCategory.NationalPark F:MapKit.MKPointOfInterestCategory.Nightlife F:MapKit.MKPointOfInterestCategory.Park F:MapKit.MKPointOfInterestCategory.Parking F:MapKit.MKPointOfInterestCategory.Pharmacy +F:MapKit.MKPointOfInterestCategory.Planetarium F:MapKit.MKPointOfInterestCategory.Police F:MapKit.MKPointOfInterestCategory.PostOffice F:MapKit.MKPointOfInterestCategory.PublicTransport F:MapKit.MKPointOfInterestCategory.Restaurant F:MapKit.MKPointOfInterestCategory.Restroom +F:MapKit.MKPointOfInterestCategory.RockClimbing +F:MapKit.MKPointOfInterestCategory.RVPark F:MapKit.MKPointOfInterestCategory.School +F:MapKit.MKPointOfInterestCategory.SkatePark +F:MapKit.MKPointOfInterestCategory.Skating +F:MapKit.MKPointOfInterestCategory.Skiing +F:MapKit.MKPointOfInterestCategory.Soccer +F:MapKit.MKPointOfInterestCategory.Spa F:MapKit.MKPointOfInterestCategory.Stadium F:MapKit.MKPointOfInterestCategory.Store +F:MapKit.MKPointOfInterestCategory.Surfing +F:MapKit.MKPointOfInterestCategory.Swimming +F:MapKit.MKPointOfInterestCategory.Tennis F:MapKit.MKPointOfInterestCategory.Theater F:MapKit.MKPointOfInterestCategory.University +F:MapKit.MKPointOfInterestCategory.Volleyball F:MapKit.MKPointOfInterestCategory.Winery F:MapKit.MKPointOfInterestCategory.Zoo F:MapKit.MKPointOfInterestFilterType.Excluding @@ -38580,6 +38626,7 @@ M:MapKit.IMKLookAroundViewControllerDelegate.DidUpdateScene(MapKit.MKLookAroundV M:MapKit.IMKLookAroundViewControllerDelegate.WillDismissFullScreen(MapKit.MKLookAroundViewController) M:MapKit.IMKLookAroundViewControllerDelegate.WillPresentFullScreen(MapKit.MKLookAroundViewController) M:MapKit.IMKLookAroundViewControllerDelegate.WillUpdateScene(MapKit.MKLookAroundViewController) +M:MapKit.IMKMapItemDetailViewControllerDelegate.DidFinish(MapKit.MKMapItemDetailViewController) M:MapKit.IMKMapViewDelegate.CalloutAccessoryControlTapped(MapKit.MKMapView,MapKit.MKAnnotationView,UIKit.UIControl) M:MapKit.IMKMapViewDelegate.ChangedDragState(MapKit.MKMapView,MapKit.MKAnnotationView,MapKit.MKAnnotationViewDragState,MapKit.MKAnnotationViewDragState) M:MapKit.IMKMapViewDelegate.CreateClusterAnnotation(MapKit.MKMapView,MapKit.IMKAnnotation[]) @@ -38596,6 +38643,7 @@ M:MapKit.IMKMapViewDelegate.DidSelectAnnotation(MapKit.MKMapView,MapKit.IMKAnnot M:MapKit.IMKMapViewDelegate.DidSelectAnnotationView(MapKit.MKMapView,MapKit.MKAnnotationView) M:MapKit.IMKMapViewDelegate.DidStopLocatingUser(MapKit.MKMapView) M:MapKit.IMKMapViewDelegate.DidUpdateUserLocation(MapKit.MKMapView,MapKit.MKUserLocation) +M:MapKit.IMKMapViewDelegate.GetSelectionAccessory(MapKit.MKMapView,MapKit.IMKAnnotation) M:MapKit.IMKMapViewDelegate.GetViewForAnnotation(MapKit.MKMapView,MapKit.IMKAnnotation) M:MapKit.IMKMapViewDelegate.GetViewForOverlay(MapKit.MKMapView,MapKit.IMKOverlay) M:MapKit.IMKMapViewDelegate.LoadingMapFailed(MapKit.MKMapView,Foundation.NSError) @@ -38609,6 +38657,8 @@ M:MapKit.IMKMapViewDelegate.WillStartRenderingMap(MapKit.MKMapView) M:MapKit.IMKOverlay.Intersects(MapKit.MKMapRect) M:MapKit.IMKReverseGeocoderDelegate.FailedWithError(MapKit.MKReverseGeocoder,Foundation.NSError) M:MapKit.IMKReverseGeocoderDelegate.FoundWithPlacemark(MapKit.MKReverseGeocoder,MapKit.MKPlacemark) +M:MapKit.MKAddressFilter.Copy(Foundation.NSZone) +M:MapKit.MKAddressFilter.EncodeTo(Foundation.NSCoder) M:MapKit.MKAnnotation_Extensions.GetSubtitle(MapKit.IMKAnnotation) M:MapKit.MKAnnotation_Extensions.GetTitle(MapKit.IMKAnnotation) M:MapKit.MKAnnotation_Extensions.SetCoordinate(MapKit.IMKAnnotation,CoreLocation.CLLocationCoordinate2D) @@ -38687,6 +38737,11 @@ M:MapKit.MKMapItem.OpenInMaps(MapKit.MKLaunchOptions) M:MapKit.MKMapItem.OpenInMapsAsync(Foundation.NSDictionary,UIKit.UIScene) M:MapKit.MKMapItem.OpenMaps(MapKit.MKMapItem[],MapKit.MKLaunchOptions) M:MapKit.MKMapItem.OpenMapsAsync(MapKit.MKMapItem[],Foundation.NSDictionary,UIKit.UIScene) +M:MapKit.MKMapItemAnnotation.SetCoordinate(CoreLocation.CLLocationCoordinate2D) +M:MapKit.MKMapItemDetailViewController.Dispose(System.Boolean) +M:MapKit.MKMapItemDetailViewControllerDelegate.DidFinish(MapKit.MKMapItemDetailViewController) +M:MapKit.MKMapItemIdentifier.Copy(Foundation.NSZone) +M:MapKit.MKMapItemIdentifier.EncodeTo(Foundation.NSCoder) M:MapKit.MKMapItemRequest.GetMapItemAsync M:MapKit.MKMapPoint.#ctor(System.Double,System.Double) M:MapKit.MKMapPoint.Equals(System.Object) @@ -38788,6 +38843,7 @@ M:MapKit.MKMapViewDelegate_Extensions.DidSelectAnnotation(MapKit.IMKMapViewDeleg M:MapKit.MKMapViewDelegate_Extensions.DidSelectAnnotationView(MapKit.IMKMapViewDelegate,MapKit.MKMapView,MapKit.MKAnnotationView) M:MapKit.MKMapViewDelegate_Extensions.DidStopLocatingUser(MapKit.IMKMapViewDelegate,MapKit.MKMapView) M:MapKit.MKMapViewDelegate_Extensions.DidUpdateUserLocation(MapKit.IMKMapViewDelegate,MapKit.MKMapView,MapKit.MKUserLocation) +M:MapKit.MKMapViewDelegate_Extensions.GetSelectionAccessory(MapKit.IMKMapViewDelegate,MapKit.MKMapView,MapKit.IMKAnnotation) M:MapKit.MKMapViewDelegate_Extensions.GetViewForAnnotation(MapKit.IMKMapViewDelegate,MapKit.MKMapView,MapKit.IMKAnnotation) M:MapKit.MKMapViewDelegate_Extensions.GetViewForOverlay(MapKit.IMKMapViewDelegate,MapKit.MKMapView,MapKit.IMKOverlay) M:MapKit.MKMapViewDelegate_Extensions.LoadingMapFailed(MapKit.IMKMapViewDelegate,MapKit.MKMapView,Foundation.NSError) @@ -38814,6 +38870,7 @@ M:MapKit.MKMapViewDelegate.DidSelectAnnotation(MapKit.MKMapView,MapKit.IMKAnnota M:MapKit.MKMapViewDelegate.DidSelectAnnotationView(MapKit.MKMapView,MapKit.MKAnnotationView) M:MapKit.MKMapViewDelegate.DidStopLocatingUser(MapKit.MKMapView) M:MapKit.MKMapViewDelegate.DidUpdateUserLocation(MapKit.MKMapView,MapKit.MKUserLocation) +M:MapKit.MKMapViewDelegate.GetSelectionAccessory(MapKit.MKMapView,MapKit.IMKAnnotation) M:MapKit.MKMapViewDelegate.GetViewForAnnotation(MapKit.MKMapView,MapKit.IMKAnnotation) M:MapKit.MKMapViewDelegate.GetViewForOverlay(MapKit.MKMapView,MapKit.IMKOverlay) M:MapKit.MKMapViewDelegate.LoadingMapFailed(MapKit.MKMapView,Foundation.NSError) @@ -67800,6 +67857,10 @@ P:MapKit.MKMapItem.ReadableTypeIdentifiers P:MapKit.MKMapItem.TypeIdentifier P:MapKit.MKMapItem.WritableTypeIdentifiers P:MapKit.MKMapItem.WritableTypeIdentifiersForItemProvider +P:MapKit.MKMapItemAnnotation.Coordinate +P:MapKit.MKMapItemAnnotation.Subtitle +P:MapKit.MKMapItemAnnotation.Title +P:MapKit.MKMapItemDetailViewController.Delegate P:MapKit.MKMapItemRequest.IsCancelled P:MapKit.MKMapItemRequest.IsLoading P:MapKit.MKMapRect.Height @@ -67818,6 +67879,7 @@ P:MapKit.MKMapSize.World P:MapKit.MKMapSnapshotter.Loading P:MapKit.MKMapView.CreateClusterAnnotation P:MapKit.MKMapView.Delegate +P:MapKit.MKMapView.GetSelectionAccessory P:MapKit.MKMapView.GetViewForAnnotation P:MapKit.MKMapView.GetViewForOverlay P:MapKit.MKMapView.OverlayRenderer @@ -80116,8 +80178,10 @@ T:MapKit.IMKAnnotation T:MapKit.IMKGeoJsonObject T:MapKit.IMKLocalSearchCompleterDelegate T:MapKit.IMKLookAroundViewControllerDelegate +T:MapKit.IMKMapItemDetailViewControllerDelegate T:MapKit.IMKMapViewDelegate T:MapKit.IMKOverlay +T:MapKit.MKAddressFilterOption T:MapKit.MKAnnotation T:MapKit.MKAnnotationEventArgs T:MapKit.MKAnnotationViewCollisionMode @@ -80142,6 +80206,7 @@ T:MapKit.MKLaunchOptions T:MapKit.MKLocalSearchCompleterDelegate T:MapKit.MKLocalSearchCompleterResultType T:MapKit.MKLocalSearchCompletionHandler +T:MapKit.MKLocalSearchRegionPriority T:MapKit.MKLocalSearchResultType T:MapKit.MKLookAroundBadgePosition T:MapKit.MKLookAroundViewControllerDelegate @@ -80149,6 +80214,8 @@ T:MapKit.MKMapCameraZoomRangeType T:MapKit.MKMapElevationStyle T:MapKit.MKMapFeatureOptions T:MapKit.MKMapFeatureType +T:MapKit.MKMapItemDetailSelectionAccessoryCalloutStyle +T:MapKit.MKMapItemDetailViewControllerDelegate T:MapKit.MKMapPoint T:MapKit.MKMapRect T:MapKit.MKMapSize @@ -80160,6 +80227,7 @@ T:MapKit.MKMapViewAnnotationEventArgs T:MapKit.MKMapViewChangeEventArgs T:MapKit.MKMapViewDefault T:MapKit.MKMapViewDelegate +T:MapKit.MKMapViewDelegateGetSelectionAccessory T:MapKit.MKMapViewDragStateEventArgs T:MapKit.MKMapViewOverlay T:MapKit.MKOverlay diff --git a/tests/xtro-sharpie/api-annotations-dotnet/iOS-MapKit.todo b/tests/xtro-sharpie/api-annotations-dotnet/iOS-MapKit.todo deleted file mode 100644 index b7e544c5f173..000000000000 --- a/tests/xtro-sharpie/api-annotations-dotnet/iOS-MapKit.todo +++ /dev/null @@ -1,84 +0,0 @@ -!deprecated-attribute-missing! MKMapItemRequest::featureAnnotation missing a [Deprecated] attribute -!missing-enum! MKAddressFilterOption not bound -!missing-enum! MKLocalSearchRegionPriority not bound -!missing-enum! MKMapItemDetailSelectionAccessoryCalloutStyle not bound -!missing-enum-value! MKLocalSearchCompleterResultType native value MKLocalSearchCompleterResultTypePhysicalFeature = 8 not bound -!missing-enum-value! MKLocalSearchResultType native value MKLocalSearchResultTypePhysicalFeature = 4 not bound -!missing-field! MKPointOfInterestCategoryAnimalService not bound -!missing-field! MKPointOfInterestCategoryAutomotiveRepair not bound -!missing-field! MKPointOfInterestCategoryBaseball not bound -!missing-field! MKPointOfInterestCategoryBasketball not bound -!missing-field! MKPointOfInterestCategoryBeauty not bound -!missing-field! MKPointOfInterestCategoryBowling not bound -!missing-field! MKPointOfInterestCategoryCastle not bound -!missing-field! MKPointOfInterestCategoryConventionCenter not bound -!missing-field! MKPointOfInterestCategoryDistillery not bound -!missing-field! MKPointOfInterestCategoryFairground not bound -!missing-field! MKPointOfInterestCategoryFishing not bound -!missing-field! MKPointOfInterestCategoryFortress not bound -!missing-field! MKPointOfInterestCategoryGoKart not bound -!missing-field! MKPointOfInterestCategoryGolf not bound -!missing-field! MKPointOfInterestCategoryHiking not bound -!missing-field! MKPointOfInterestCategoryKayaking not bound -!missing-field! MKPointOfInterestCategoryLandmark not bound -!missing-field! MKPointOfInterestCategoryMailbox not bound -!missing-field! MKPointOfInterestCategoryMiniGolf not bound -!missing-field! MKPointOfInterestCategoryMusicVenue not bound -!missing-field! MKPointOfInterestCategoryNationalMonument not bound -!missing-field! MKPointOfInterestCategoryPlanetarium not bound -!missing-field! MKPointOfInterestCategoryRockClimbing not bound -!missing-field! MKPointOfInterestCategoryRVPark not bound -!missing-field! MKPointOfInterestCategorySkatePark not bound -!missing-field! MKPointOfInterestCategorySkating not bound -!missing-field! MKPointOfInterestCategorySkiing not bound -!missing-field! MKPointOfInterestCategorySoccer not bound -!missing-field! MKPointOfInterestCategorySpa not bound -!missing-field! MKPointOfInterestCategorySurfing not bound -!missing-field! MKPointOfInterestCategorySwimming not bound -!missing-field! MKPointOfInterestCategoryTennis not bound -!missing-field! MKPointOfInterestCategoryVolleyball not bound -!missing-protocol! MKMapItemDetailViewControllerDelegate not bound -!missing-protocol-member! MKMapViewDelegate::mapView:selectionAccessoryForAnnotation: not found -!missing-selector! +MKAddressFilter::filterExcludingAll not bound -!missing-selector! +MKAddressFilter::filterIncludingAll not bound -!missing-selector! +MKMapItemDetailSelectionAccessoryPresentationStyle::automaticWithPresentationViewController: not bound -!missing-selector! +MKMapItemDetailSelectionAccessoryPresentationStyle::callout not bound -!missing-selector! +MKMapItemDetailSelectionAccessoryPresentationStyle::calloutWithCalloutStyle: not bound -!missing-selector! +MKMapItemDetailSelectionAccessoryPresentationStyle::openInMaps not bound -!missing-selector! +MKMapItemDetailSelectionAccessoryPresentationStyle::sheetPresentedFromViewController: not bound -!missing-selector! +MKSelectionAccessory::mapItemDetailWithPresentationStyle: not bound -!missing-selector! MKAddressFilter::excludesOptions: not bound -!missing-selector! MKAddressFilter::includesOptions: not bound -!missing-selector! MKAddressFilter::initExcludingOptions: not bound -!missing-selector! MKAddressFilter::initIncludingOptions: not bound -!missing-selector! MKAnnotationView::accessoryOffset not bound -!missing-selector! MKAnnotationView::setAccessoryOffset: not bound -!missing-selector! MKLocalSearchCompleter::addressFilter not bound -!missing-selector! MKLocalSearchCompleter::regionPriority not bound -!missing-selector! MKLocalSearchCompleter::setAddressFilter: not bound -!missing-selector! MKLocalSearchCompleter::setRegionPriority: not bound -!missing-selector! MKLocalSearchRequest::addressFilter not bound -!missing-selector! MKLocalSearchRequest::regionPriority not bound -!missing-selector! MKLocalSearchRequest::setAddressFilter: not bound -!missing-selector! MKLocalSearchRequest::setRegionPriority: not bound -!missing-selector! MKMapItem::alternateIdentifiers not bound -!missing-selector! MKMapItem::identifier not bound -!missing-selector! MKMapItemAnnotation::initWithMapItem: not bound -!missing-selector! MKMapItemAnnotation::mapItem not bound -!missing-selector! MKMapItemDetailViewController::delegate not bound -!missing-selector! MKMapItemDetailViewController::initWithMapItem: not bound -!missing-selector! MKMapItemDetailViewController::initWithMapItem:displaysMap: not bound -!missing-selector! MKMapItemDetailViewController::mapItem not bound -!missing-selector! MKMapItemDetailViewController::setDelegate: not bound -!missing-selector! MKMapItemDetailViewController::setMapItem: not bound -!missing-selector! MKMapItemIdentifier::identifierString not bound -!missing-selector! MKMapItemIdentifier::initWithIdentifierString: not bound -!missing-selector! MKMapItemRequest::initWithMapItemIdentifier: not bound -!missing-selector! MKMapItemRequest::mapFeatureAnnotation not bound -!missing-selector! MKMapItemRequest::mapItemIdentifier not bound -!missing-type! MKAddressFilter not bound -!missing-type! MKMapItemAnnotation not bound -!missing-type! MKMapItemDetailSelectionAccessoryPresentationStyle not bound -!missing-type! MKMapItemDetailViewController not bound -!missing-type! MKMapItemIdentifier not bound -!missing-type! MKSelectionAccessory not bound diff --git a/tests/xtro-sharpie/api-annotations-dotnet/macOS-MapKit.todo b/tests/xtro-sharpie/api-annotations-dotnet/macOS-MapKit.todo index 417deb27447f..dc35c07c28a2 100644 --- a/tests/xtro-sharpie/api-annotations-dotnet/macOS-MapKit.todo +++ b/tests/xtro-sharpie/api-annotations-dotnet/macOS-MapKit.todo @@ -1,89 +1,2 @@ -!missing-enum! MKAddressFilterOption not bound -!missing-enum! MKLocalSearchRegionPriority not bound -!missing-enum! MKMapItemDetailSelectionAccessoryCalloutStyle not bound -!missing-enum-value! MKLocalSearchCompleterResultType native value MKLocalSearchCompleterResultTypePhysicalFeature = 8 not bound -!missing-enum-value! MKLocalSearchResultType native value MKLocalSearchResultTypePhysicalFeature = 4 not bound -!missing-field! MKPointOfInterestCategoryAnimalService not bound -!missing-field! MKPointOfInterestCategoryAutomotiveRepair not bound -!missing-field! MKPointOfInterestCategoryBaseball not bound -!missing-field! MKPointOfInterestCategoryBasketball not bound -!missing-field! MKPointOfInterestCategoryBeauty not bound -!missing-field! MKPointOfInterestCategoryBowling not bound -!missing-field! MKPointOfInterestCategoryCastle not bound -!missing-field! MKPointOfInterestCategoryConventionCenter not bound -!missing-field! MKPointOfInterestCategoryDistillery not bound -!missing-field! MKPointOfInterestCategoryFairground not bound -!missing-field! MKPointOfInterestCategoryFishing not bound -!missing-field! MKPointOfInterestCategoryFortress not bound -!missing-field! MKPointOfInterestCategoryGoKart not bound -!missing-field! MKPointOfInterestCategoryGolf not bound -!missing-field! MKPointOfInterestCategoryHiking not bound -!missing-field! MKPointOfInterestCategoryKayaking not bound -!missing-field! MKPointOfInterestCategoryLandmark not bound -!missing-field! MKPointOfInterestCategoryMailbox not bound -!missing-field! MKPointOfInterestCategoryMiniGolf not bound -!missing-field! MKPointOfInterestCategoryMusicVenue not bound -!missing-field! MKPointOfInterestCategoryNationalMonument not bound -!missing-field! MKPointOfInterestCategoryPlanetarium not bound -!missing-field! MKPointOfInterestCategoryRockClimbing not bound -!missing-field! MKPointOfInterestCategoryRVPark not bound -!missing-field! MKPointOfInterestCategorySkatePark not bound -!missing-field! MKPointOfInterestCategorySkating not bound -!missing-field! MKPointOfInterestCategorySkiing not bound -!missing-field! MKPointOfInterestCategorySoccer not bound -!missing-field! MKPointOfInterestCategorySpa not bound -!missing-field! MKPointOfInterestCategorySurfing not bound -!missing-field! MKPointOfInterestCategorySwimming not bound -!missing-field! MKPointOfInterestCategoryTennis not bound -!missing-field! MKPointOfInterestCategoryVolleyball not bound -!missing-protocol! MKMapItemDetailViewControllerDelegate not bound -!missing-protocol-member! MKMapViewDelegate::mapView:selectionAccessoryForAnnotation: not found -!missing-selector! +MKAddressFilter::filterExcludingAll not bound -!missing-selector! +MKAddressFilter::filterIncludingAll not bound !missing-selector! +MKMapItem::openMapsWithItems:launchOptions:completionHandler: not bound -!missing-selector! +MKMapItemDetailSelectionAccessoryPresentationStyle::automaticWithPresentationViewController: not bound -!missing-selector! +MKMapItemDetailSelectionAccessoryPresentationStyle::callout not bound -!missing-selector! +MKMapItemDetailSelectionAccessoryPresentationStyle::calloutWithCalloutStyle: not bound -!missing-selector! +MKMapItemDetailSelectionAccessoryPresentationStyle::openInMaps not bound -!missing-selector! +MKMapItemDetailSelectionAccessoryPresentationStyle::sheetPresentedFromViewController: not bound -!missing-selector! +MKSelectionAccessory::mapItemDetailWithPresentationStyle: not bound -!missing-selector! MKAddressFilter::excludesOptions: not bound -!missing-selector! MKAddressFilter::includesOptions: not bound -!missing-selector! MKAddressFilter::initExcludingOptions: not bound -!missing-selector! MKAddressFilter::initIncludingOptions: not bound -!missing-selector! MKAnnotationView::accessoryOffset not bound -!missing-selector! MKAnnotationView::setAccessoryOffset: not bound -!missing-selector! MKLocalSearchCompleter::addressFilter not bound -!missing-selector! MKLocalSearchCompleter::regionPriority not bound -!missing-selector! MKLocalSearchCompleter::setAddressFilter: not bound -!missing-selector! MKLocalSearchCompleter::setRegionPriority: not bound -!missing-selector! MKLocalSearchRequest::addressFilter not bound -!missing-selector! MKLocalSearchRequest::regionPriority not bound -!missing-selector! MKLocalSearchRequest::setAddressFilter: not bound -!missing-selector! MKLocalSearchRequest::setRegionPriority: not bound -!missing-selector! MKMapItem::alternateIdentifiers not bound -!missing-selector! MKMapItem::identifier not bound !missing-selector! MKMapItem::openInMapsWithLaunchOptions:completionHandler: not bound -!missing-selector! MKMapItemAnnotation::initWithMapItem: not bound -!missing-selector! MKMapItemAnnotation::mapItem not bound -!missing-selector! MKMapItemDetailViewController::delegate not bound -!missing-selector! MKMapItemDetailViewController::initWithMapItem: not bound -!missing-selector! MKMapItemDetailViewController::initWithMapItem:displaysMap: not bound -!missing-selector! MKMapItemDetailViewController::mapItem not bound -!missing-selector! MKMapItemDetailViewController::setDelegate: not bound -!missing-selector! MKMapItemDetailViewController::setMapItem: not bound -!missing-selector! MKMapItemIdentifier::identifierString not bound -!missing-selector! MKMapItemIdentifier::initWithIdentifierString: not bound -!missing-selector! MKMapItemRequest::cancel not bound -!missing-selector! MKMapItemRequest::getMapItemWithCompletionHandler: not bound -!missing-selector! MKMapItemRequest::initWithMapItemIdentifier: not bound -!missing-selector! MKMapItemRequest::isCancelled not bound -!missing-selector! MKMapItemRequest::isLoading not bound -!missing-selector! MKMapItemRequest::mapItemIdentifier not bound -!missing-type! MKAddressFilter not bound -!missing-type! MKMapItemAnnotation not bound -!missing-type! MKMapItemDetailSelectionAccessoryPresentationStyle not bound -!missing-type! MKMapItemDetailViewController not bound -!missing-type! MKMapItemIdentifier not bound -!missing-type! MKMapItemRequest not bound -!missing-type! MKSelectionAccessory not bound diff --git a/tests/xtro-sharpie/api-annotations-dotnet/tvOS-MapKit.todo b/tests/xtro-sharpie/api-annotations-dotnet/tvOS-MapKit.todo deleted file mode 100644 index 98477f58b672..000000000000 --- a/tests/xtro-sharpie/api-annotations-dotnet/tvOS-MapKit.todo +++ /dev/null @@ -1,67 +0,0 @@ -!missing-enum! MKAddressFilterOption not bound -!missing-enum! MKLocalSearchRegionPriority not bound -!missing-enum-value! MKLocalSearchCompleterResultType native value MKLocalSearchCompleterResultTypePhysicalFeature = 8 not bound -!missing-enum-value! MKLocalSearchResultType native value MKLocalSearchResultTypePhysicalFeature = 4 not bound -!missing-field! MKPointOfInterestCategoryAnimalService not bound -!missing-field! MKPointOfInterestCategoryAutomotiveRepair not bound -!missing-field! MKPointOfInterestCategoryBaseball not bound -!missing-field! MKPointOfInterestCategoryBasketball not bound -!missing-field! MKPointOfInterestCategoryBeauty not bound -!missing-field! MKPointOfInterestCategoryBowling not bound -!missing-field! MKPointOfInterestCategoryCastle not bound -!missing-field! MKPointOfInterestCategoryConventionCenter not bound -!missing-field! MKPointOfInterestCategoryDistillery not bound -!missing-field! MKPointOfInterestCategoryFairground not bound -!missing-field! MKPointOfInterestCategoryFishing not bound -!missing-field! MKPointOfInterestCategoryFortress not bound -!missing-field! MKPointOfInterestCategoryGoKart not bound -!missing-field! MKPointOfInterestCategoryGolf not bound -!missing-field! MKPointOfInterestCategoryHiking not bound -!missing-field! MKPointOfInterestCategoryKayaking not bound -!missing-field! MKPointOfInterestCategoryLandmark not bound -!missing-field! MKPointOfInterestCategoryMailbox not bound -!missing-field! MKPointOfInterestCategoryMiniGolf not bound -!missing-field! MKPointOfInterestCategoryMusicVenue not bound -!missing-field! MKPointOfInterestCategoryNationalMonument not bound -!missing-field! MKPointOfInterestCategoryPlanetarium not bound -!missing-field! MKPointOfInterestCategoryRockClimbing not bound -!missing-field! MKPointOfInterestCategoryRVPark not bound -!missing-field! MKPointOfInterestCategorySkatePark not bound -!missing-field! MKPointOfInterestCategorySkating not bound -!missing-field! MKPointOfInterestCategorySkiing not bound -!missing-field! MKPointOfInterestCategorySoccer not bound -!missing-field! MKPointOfInterestCategorySpa not bound -!missing-field! MKPointOfInterestCategorySurfing not bound -!missing-field! MKPointOfInterestCategorySwimming not bound -!missing-field! MKPointOfInterestCategoryTennis not bound -!missing-field! MKPointOfInterestCategoryVolleyball not bound -!missing-selector! +MKAddressFilter::filterExcludingAll not bound -!missing-selector! +MKAddressFilter::filterIncludingAll not bound -!missing-selector! MKAddressFilter::excludesOptions: not bound -!missing-selector! MKAddressFilter::includesOptions: not bound -!missing-selector! MKAddressFilter::initExcludingOptions: not bound -!missing-selector! MKAddressFilter::initIncludingOptions: not bound -!missing-selector! MKLocalSearchCompleter::addressFilter not bound -!missing-selector! MKLocalSearchCompleter::regionPriority not bound -!missing-selector! MKLocalSearchCompleter::setAddressFilter: not bound -!missing-selector! MKLocalSearchCompleter::setRegionPriority: not bound -!missing-selector! MKLocalSearchRequest::addressFilter not bound -!missing-selector! MKLocalSearchRequest::regionPriority not bound -!missing-selector! MKLocalSearchRequest::setAddressFilter: not bound -!missing-selector! MKLocalSearchRequest::setRegionPriority: not bound -!missing-selector! MKMapItem::alternateIdentifiers not bound -!missing-selector! MKMapItem::identifier not bound -!missing-selector! MKMapItemAnnotation::initWithMapItem: not bound -!missing-selector! MKMapItemAnnotation::mapItem not bound -!missing-selector! MKMapItemIdentifier::identifierString not bound -!missing-selector! MKMapItemIdentifier::initWithIdentifierString: not bound -!missing-selector! MKMapItemRequest::cancel not bound -!missing-selector! MKMapItemRequest::getMapItemWithCompletionHandler: not bound -!missing-selector! MKMapItemRequest::initWithMapItemIdentifier: not bound -!missing-selector! MKMapItemRequest::isCancelled not bound -!missing-selector! MKMapItemRequest::isLoading not bound -!missing-selector! MKMapItemRequest::mapItemIdentifier not bound -!missing-type! MKAddressFilter not bound -!missing-type! MKMapItemAnnotation not bound -!missing-type! MKMapItemIdentifier not bound -!missing-type! MKMapItemRequest not bound diff --git a/tests/xtro-sharpie/iOS-MapKit.todo b/tests/xtro-sharpie/iOS-MapKit.todo deleted file mode 100644 index b7e544c5f173..000000000000 --- a/tests/xtro-sharpie/iOS-MapKit.todo +++ /dev/null @@ -1,84 +0,0 @@ -!deprecated-attribute-missing! MKMapItemRequest::featureAnnotation missing a [Deprecated] attribute -!missing-enum! MKAddressFilterOption not bound -!missing-enum! MKLocalSearchRegionPriority not bound -!missing-enum! MKMapItemDetailSelectionAccessoryCalloutStyle not bound -!missing-enum-value! MKLocalSearchCompleterResultType native value MKLocalSearchCompleterResultTypePhysicalFeature = 8 not bound -!missing-enum-value! MKLocalSearchResultType native value MKLocalSearchResultTypePhysicalFeature = 4 not bound -!missing-field! MKPointOfInterestCategoryAnimalService not bound -!missing-field! MKPointOfInterestCategoryAutomotiveRepair not bound -!missing-field! MKPointOfInterestCategoryBaseball not bound -!missing-field! MKPointOfInterestCategoryBasketball not bound -!missing-field! MKPointOfInterestCategoryBeauty not bound -!missing-field! MKPointOfInterestCategoryBowling not bound -!missing-field! MKPointOfInterestCategoryCastle not bound -!missing-field! MKPointOfInterestCategoryConventionCenter not bound -!missing-field! MKPointOfInterestCategoryDistillery not bound -!missing-field! MKPointOfInterestCategoryFairground not bound -!missing-field! MKPointOfInterestCategoryFishing not bound -!missing-field! MKPointOfInterestCategoryFortress not bound -!missing-field! MKPointOfInterestCategoryGoKart not bound -!missing-field! MKPointOfInterestCategoryGolf not bound -!missing-field! MKPointOfInterestCategoryHiking not bound -!missing-field! MKPointOfInterestCategoryKayaking not bound -!missing-field! MKPointOfInterestCategoryLandmark not bound -!missing-field! MKPointOfInterestCategoryMailbox not bound -!missing-field! MKPointOfInterestCategoryMiniGolf not bound -!missing-field! MKPointOfInterestCategoryMusicVenue not bound -!missing-field! MKPointOfInterestCategoryNationalMonument not bound -!missing-field! MKPointOfInterestCategoryPlanetarium not bound -!missing-field! MKPointOfInterestCategoryRockClimbing not bound -!missing-field! MKPointOfInterestCategoryRVPark not bound -!missing-field! MKPointOfInterestCategorySkatePark not bound -!missing-field! MKPointOfInterestCategorySkating not bound -!missing-field! MKPointOfInterestCategorySkiing not bound -!missing-field! MKPointOfInterestCategorySoccer not bound -!missing-field! MKPointOfInterestCategorySpa not bound -!missing-field! MKPointOfInterestCategorySurfing not bound -!missing-field! MKPointOfInterestCategorySwimming not bound -!missing-field! MKPointOfInterestCategoryTennis not bound -!missing-field! MKPointOfInterestCategoryVolleyball not bound -!missing-protocol! MKMapItemDetailViewControllerDelegate not bound -!missing-protocol-member! MKMapViewDelegate::mapView:selectionAccessoryForAnnotation: not found -!missing-selector! +MKAddressFilter::filterExcludingAll not bound -!missing-selector! +MKAddressFilter::filterIncludingAll not bound -!missing-selector! +MKMapItemDetailSelectionAccessoryPresentationStyle::automaticWithPresentationViewController: not bound -!missing-selector! +MKMapItemDetailSelectionAccessoryPresentationStyle::callout not bound -!missing-selector! +MKMapItemDetailSelectionAccessoryPresentationStyle::calloutWithCalloutStyle: not bound -!missing-selector! +MKMapItemDetailSelectionAccessoryPresentationStyle::openInMaps not bound -!missing-selector! +MKMapItemDetailSelectionAccessoryPresentationStyle::sheetPresentedFromViewController: not bound -!missing-selector! +MKSelectionAccessory::mapItemDetailWithPresentationStyle: not bound -!missing-selector! MKAddressFilter::excludesOptions: not bound -!missing-selector! MKAddressFilter::includesOptions: not bound -!missing-selector! MKAddressFilter::initExcludingOptions: not bound -!missing-selector! MKAddressFilter::initIncludingOptions: not bound -!missing-selector! MKAnnotationView::accessoryOffset not bound -!missing-selector! MKAnnotationView::setAccessoryOffset: not bound -!missing-selector! MKLocalSearchCompleter::addressFilter not bound -!missing-selector! MKLocalSearchCompleter::regionPriority not bound -!missing-selector! MKLocalSearchCompleter::setAddressFilter: not bound -!missing-selector! MKLocalSearchCompleter::setRegionPriority: not bound -!missing-selector! MKLocalSearchRequest::addressFilter not bound -!missing-selector! MKLocalSearchRequest::regionPriority not bound -!missing-selector! MKLocalSearchRequest::setAddressFilter: not bound -!missing-selector! MKLocalSearchRequest::setRegionPriority: not bound -!missing-selector! MKMapItem::alternateIdentifiers not bound -!missing-selector! MKMapItem::identifier not bound -!missing-selector! MKMapItemAnnotation::initWithMapItem: not bound -!missing-selector! MKMapItemAnnotation::mapItem not bound -!missing-selector! MKMapItemDetailViewController::delegate not bound -!missing-selector! MKMapItemDetailViewController::initWithMapItem: not bound -!missing-selector! MKMapItemDetailViewController::initWithMapItem:displaysMap: not bound -!missing-selector! MKMapItemDetailViewController::mapItem not bound -!missing-selector! MKMapItemDetailViewController::setDelegate: not bound -!missing-selector! MKMapItemDetailViewController::setMapItem: not bound -!missing-selector! MKMapItemIdentifier::identifierString not bound -!missing-selector! MKMapItemIdentifier::initWithIdentifierString: not bound -!missing-selector! MKMapItemRequest::initWithMapItemIdentifier: not bound -!missing-selector! MKMapItemRequest::mapFeatureAnnotation not bound -!missing-selector! MKMapItemRequest::mapItemIdentifier not bound -!missing-type! MKAddressFilter not bound -!missing-type! MKMapItemAnnotation not bound -!missing-type! MKMapItemDetailSelectionAccessoryPresentationStyle not bound -!missing-type! MKMapItemDetailViewController not bound -!missing-type! MKMapItemIdentifier not bound -!missing-type! MKSelectionAccessory not bound diff --git a/tests/xtro-sharpie/macOS-MapKit.todo b/tests/xtro-sharpie/macOS-MapKit.todo index 417deb27447f..dc35c07c28a2 100644 --- a/tests/xtro-sharpie/macOS-MapKit.todo +++ b/tests/xtro-sharpie/macOS-MapKit.todo @@ -1,89 +1,2 @@ -!missing-enum! MKAddressFilterOption not bound -!missing-enum! MKLocalSearchRegionPriority not bound -!missing-enum! MKMapItemDetailSelectionAccessoryCalloutStyle not bound -!missing-enum-value! MKLocalSearchCompleterResultType native value MKLocalSearchCompleterResultTypePhysicalFeature = 8 not bound -!missing-enum-value! MKLocalSearchResultType native value MKLocalSearchResultTypePhysicalFeature = 4 not bound -!missing-field! MKPointOfInterestCategoryAnimalService not bound -!missing-field! MKPointOfInterestCategoryAutomotiveRepair not bound -!missing-field! MKPointOfInterestCategoryBaseball not bound -!missing-field! MKPointOfInterestCategoryBasketball not bound -!missing-field! MKPointOfInterestCategoryBeauty not bound -!missing-field! MKPointOfInterestCategoryBowling not bound -!missing-field! MKPointOfInterestCategoryCastle not bound -!missing-field! MKPointOfInterestCategoryConventionCenter not bound -!missing-field! MKPointOfInterestCategoryDistillery not bound -!missing-field! MKPointOfInterestCategoryFairground not bound -!missing-field! MKPointOfInterestCategoryFishing not bound -!missing-field! MKPointOfInterestCategoryFortress not bound -!missing-field! MKPointOfInterestCategoryGoKart not bound -!missing-field! MKPointOfInterestCategoryGolf not bound -!missing-field! MKPointOfInterestCategoryHiking not bound -!missing-field! MKPointOfInterestCategoryKayaking not bound -!missing-field! MKPointOfInterestCategoryLandmark not bound -!missing-field! MKPointOfInterestCategoryMailbox not bound -!missing-field! MKPointOfInterestCategoryMiniGolf not bound -!missing-field! MKPointOfInterestCategoryMusicVenue not bound -!missing-field! MKPointOfInterestCategoryNationalMonument not bound -!missing-field! MKPointOfInterestCategoryPlanetarium not bound -!missing-field! MKPointOfInterestCategoryRockClimbing not bound -!missing-field! MKPointOfInterestCategoryRVPark not bound -!missing-field! MKPointOfInterestCategorySkatePark not bound -!missing-field! MKPointOfInterestCategorySkating not bound -!missing-field! MKPointOfInterestCategorySkiing not bound -!missing-field! MKPointOfInterestCategorySoccer not bound -!missing-field! MKPointOfInterestCategorySpa not bound -!missing-field! MKPointOfInterestCategorySurfing not bound -!missing-field! MKPointOfInterestCategorySwimming not bound -!missing-field! MKPointOfInterestCategoryTennis not bound -!missing-field! MKPointOfInterestCategoryVolleyball not bound -!missing-protocol! MKMapItemDetailViewControllerDelegate not bound -!missing-protocol-member! MKMapViewDelegate::mapView:selectionAccessoryForAnnotation: not found -!missing-selector! +MKAddressFilter::filterExcludingAll not bound -!missing-selector! +MKAddressFilter::filterIncludingAll not bound !missing-selector! +MKMapItem::openMapsWithItems:launchOptions:completionHandler: not bound -!missing-selector! +MKMapItemDetailSelectionAccessoryPresentationStyle::automaticWithPresentationViewController: not bound -!missing-selector! +MKMapItemDetailSelectionAccessoryPresentationStyle::callout not bound -!missing-selector! +MKMapItemDetailSelectionAccessoryPresentationStyle::calloutWithCalloutStyle: not bound -!missing-selector! +MKMapItemDetailSelectionAccessoryPresentationStyle::openInMaps not bound -!missing-selector! +MKMapItemDetailSelectionAccessoryPresentationStyle::sheetPresentedFromViewController: not bound -!missing-selector! +MKSelectionAccessory::mapItemDetailWithPresentationStyle: not bound -!missing-selector! MKAddressFilter::excludesOptions: not bound -!missing-selector! MKAddressFilter::includesOptions: not bound -!missing-selector! MKAddressFilter::initExcludingOptions: not bound -!missing-selector! MKAddressFilter::initIncludingOptions: not bound -!missing-selector! MKAnnotationView::accessoryOffset not bound -!missing-selector! MKAnnotationView::setAccessoryOffset: not bound -!missing-selector! MKLocalSearchCompleter::addressFilter not bound -!missing-selector! MKLocalSearchCompleter::regionPriority not bound -!missing-selector! MKLocalSearchCompleter::setAddressFilter: not bound -!missing-selector! MKLocalSearchCompleter::setRegionPriority: not bound -!missing-selector! MKLocalSearchRequest::addressFilter not bound -!missing-selector! MKLocalSearchRequest::regionPriority not bound -!missing-selector! MKLocalSearchRequest::setAddressFilter: not bound -!missing-selector! MKLocalSearchRequest::setRegionPriority: not bound -!missing-selector! MKMapItem::alternateIdentifiers not bound -!missing-selector! MKMapItem::identifier not bound !missing-selector! MKMapItem::openInMapsWithLaunchOptions:completionHandler: not bound -!missing-selector! MKMapItemAnnotation::initWithMapItem: not bound -!missing-selector! MKMapItemAnnotation::mapItem not bound -!missing-selector! MKMapItemDetailViewController::delegate not bound -!missing-selector! MKMapItemDetailViewController::initWithMapItem: not bound -!missing-selector! MKMapItemDetailViewController::initWithMapItem:displaysMap: not bound -!missing-selector! MKMapItemDetailViewController::mapItem not bound -!missing-selector! MKMapItemDetailViewController::setDelegate: not bound -!missing-selector! MKMapItemDetailViewController::setMapItem: not bound -!missing-selector! MKMapItemIdentifier::identifierString not bound -!missing-selector! MKMapItemIdentifier::initWithIdentifierString: not bound -!missing-selector! MKMapItemRequest::cancel not bound -!missing-selector! MKMapItemRequest::getMapItemWithCompletionHandler: not bound -!missing-selector! MKMapItemRequest::initWithMapItemIdentifier: not bound -!missing-selector! MKMapItemRequest::isCancelled not bound -!missing-selector! MKMapItemRequest::isLoading not bound -!missing-selector! MKMapItemRequest::mapItemIdentifier not bound -!missing-type! MKAddressFilter not bound -!missing-type! MKMapItemAnnotation not bound -!missing-type! MKMapItemDetailSelectionAccessoryPresentationStyle not bound -!missing-type! MKMapItemDetailViewController not bound -!missing-type! MKMapItemIdentifier not bound -!missing-type! MKMapItemRequest not bound -!missing-type! MKSelectionAccessory not bound diff --git a/tests/xtro-sharpie/tvOS-MapKit.todo b/tests/xtro-sharpie/tvOS-MapKit.todo deleted file mode 100644 index 98477f58b672..000000000000 --- a/tests/xtro-sharpie/tvOS-MapKit.todo +++ /dev/null @@ -1,67 +0,0 @@ -!missing-enum! MKAddressFilterOption not bound -!missing-enum! MKLocalSearchRegionPriority not bound -!missing-enum-value! MKLocalSearchCompleterResultType native value MKLocalSearchCompleterResultTypePhysicalFeature = 8 not bound -!missing-enum-value! MKLocalSearchResultType native value MKLocalSearchResultTypePhysicalFeature = 4 not bound -!missing-field! MKPointOfInterestCategoryAnimalService not bound -!missing-field! MKPointOfInterestCategoryAutomotiveRepair not bound -!missing-field! MKPointOfInterestCategoryBaseball not bound -!missing-field! MKPointOfInterestCategoryBasketball not bound -!missing-field! MKPointOfInterestCategoryBeauty not bound -!missing-field! MKPointOfInterestCategoryBowling not bound -!missing-field! MKPointOfInterestCategoryCastle not bound -!missing-field! MKPointOfInterestCategoryConventionCenter not bound -!missing-field! MKPointOfInterestCategoryDistillery not bound -!missing-field! MKPointOfInterestCategoryFairground not bound -!missing-field! MKPointOfInterestCategoryFishing not bound -!missing-field! MKPointOfInterestCategoryFortress not bound -!missing-field! MKPointOfInterestCategoryGoKart not bound -!missing-field! MKPointOfInterestCategoryGolf not bound -!missing-field! MKPointOfInterestCategoryHiking not bound -!missing-field! MKPointOfInterestCategoryKayaking not bound -!missing-field! MKPointOfInterestCategoryLandmark not bound -!missing-field! MKPointOfInterestCategoryMailbox not bound -!missing-field! MKPointOfInterestCategoryMiniGolf not bound -!missing-field! MKPointOfInterestCategoryMusicVenue not bound -!missing-field! MKPointOfInterestCategoryNationalMonument not bound -!missing-field! MKPointOfInterestCategoryPlanetarium not bound -!missing-field! MKPointOfInterestCategoryRockClimbing not bound -!missing-field! MKPointOfInterestCategoryRVPark not bound -!missing-field! MKPointOfInterestCategorySkatePark not bound -!missing-field! MKPointOfInterestCategorySkating not bound -!missing-field! MKPointOfInterestCategorySkiing not bound -!missing-field! MKPointOfInterestCategorySoccer not bound -!missing-field! MKPointOfInterestCategorySpa not bound -!missing-field! MKPointOfInterestCategorySurfing not bound -!missing-field! MKPointOfInterestCategorySwimming not bound -!missing-field! MKPointOfInterestCategoryTennis not bound -!missing-field! MKPointOfInterestCategoryVolleyball not bound -!missing-selector! +MKAddressFilter::filterExcludingAll not bound -!missing-selector! +MKAddressFilter::filterIncludingAll not bound -!missing-selector! MKAddressFilter::excludesOptions: not bound -!missing-selector! MKAddressFilter::includesOptions: not bound -!missing-selector! MKAddressFilter::initExcludingOptions: not bound -!missing-selector! MKAddressFilter::initIncludingOptions: not bound -!missing-selector! MKLocalSearchCompleter::addressFilter not bound -!missing-selector! MKLocalSearchCompleter::regionPriority not bound -!missing-selector! MKLocalSearchCompleter::setAddressFilter: not bound -!missing-selector! MKLocalSearchCompleter::setRegionPriority: not bound -!missing-selector! MKLocalSearchRequest::addressFilter not bound -!missing-selector! MKLocalSearchRequest::regionPriority not bound -!missing-selector! MKLocalSearchRequest::setAddressFilter: not bound -!missing-selector! MKLocalSearchRequest::setRegionPriority: not bound -!missing-selector! MKMapItem::alternateIdentifiers not bound -!missing-selector! MKMapItem::identifier not bound -!missing-selector! MKMapItemAnnotation::initWithMapItem: not bound -!missing-selector! MKMapItemAnnotation::mapItem not bound -!missing-selector! MKMapItemIdentifier::identifierString not bound -!missing-selector! MKMapItemIdentifier::initWithIdentifierString: not bound -!missing-selector! MKMapItemRequest::cancel not bound -!missing-selector! MKMapItemRequest::getMapItemWithCompletionHandler: not bound -!missing-selector! MKMapItemRequest::initWithMapItemIdentifier: not bound -!missing-selector! MKMapItemRequest::isCancelled not bound -!missing-selector! MKMapItemRequest::isLoading not bound -!missing-selector! MKMapItemRequest::mapItemIdentifier not bound -!missing-type! MKAddressFilter not bound -!missing-type! MKMapItemAnnotation not bound -!missing-type! MKMapItemIdentifier not bound -!missing-type! MKMapItemRequest not bound From bf02f6ba3e2ad4c637f8a6f6f4b36fff8239ca04 Mon Sep 17 00:00:00 2001 From: Rolf Bjarne Kvinge Date: Tue, 13 Aug 2024 12:33:57 +0200 Subject: [PATCH 2/6] [xtro] Fix a few problem when validating DllImports. * Handle DllImports without an EntryPoint value correctly. * Keep track of DllImports we've found separately, instead of removing entries from the list of DllImports we found. This fixes an issue with native functions that are declared more than once in the headers: we'd match the first instance to the DllImport, and then report the second one as 'not bound'. --- tests/xtro-sharpie/xtro-sharpie/DllImportCheck.cs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tests/xtro-sharpie/xtro-sharpie/DllImportCheck.cs b/tests/xtro-sharpie/xtro-sharpie/DllImportCheck.cs index 3bb465619c40..c5da895a9b80 100644 --- a/tests/xtro-sharpie/xtro-sharpie/DllImportCheck.cs +++ b/tests/xtro-sharpie/xtro-sharpie/DllImportCheck.cs @@ -12,6 +12,7 @@ using System; using System.Collections.Generic; +using System.Linq; using Mono.Cecil; @@ -24,6 +25,7 @@ class DllImportCheck : BaseVisitor { // dupes :| Dictionary dllimports = new Dictionary (); + HashSet found = new HashSet (); public override void VisitManagedMethod (MethodDefinition method) { @@ -36,7 +38,7 @@ public override void VisitManagedMethod (MethodDefinition method) // there are duplicates declarations // TODO: right now we only check the first one, as the priority is knowing if we have (or not) bindings for them - var name = info.EntryPoint; + var name = info.EntryPoint ?? method.Name; if (!dllimports.ContainsKey (name)) dllimports.Add (name, method); } @@ -70,14 +72,14 @@ public override void VisitFunctionDecl (FunctionDecl decl, VisitKind visitKind) return; } - dllimports.Remove (name); + found.Add (name); } public override void End () { // at this stage anything else we have is not something we could find in Apple's headers // e.g. a typo in the name - foreach (var kvp in dllimports) { + foreach (var kvp in dllimports.Where (v => !found.Contains (v.Key))) { var extra = kvp.Key; var framework = Helpers.GetFramework (kvp.Value); Log.On (framework).Add ($"!unknown-pinvoke! {extra} bound"); From ffa2735b7de55b7160bba341c9186e4eb6289c43 Mon Sep 17 00:00:00 2001 From: Rolf Bjarne Kvinge Date: Tue, 13 Aug 2024 13:35:16 +0200 Subject: [PATCH 3/6] Tweaks. --- src/mapkit.cs | 15 +++- .../Documentation.KnownFailures.txt | 8 +- .../MacCatalyst-MapKit.ignore | 11 --- .../MacCatalyst-MapKit.todo | 83 ----------------- .../common-MapKit.ignore | 7 ++ .../api-annotations-dotnet/iOS-MapKit.ignore | 11 --- .../macOS-MapKit.ignore | 5 -- .../api-annotations-dotnet/macOS-MapKit.todo | 89 ------------------- .../api-annotations-dotnet/tvOS-MapKit.ignore | 6 -- tests/xtro-sharpie/iOS-MapKit.ignore | 7 -- tests/xtro-sharpie/macOS-MapKit.ignore | 1 - tests/xtro-sharpie/tvOS-MapKit.ignore | 2 - tests/xtro-sharpie/watchOS-MapKit.todo | 1 + 13 files changed, 27 insertions(+), 219 deletions(-) delete mode 100644 tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-MapKit.todo delete mode 100644 tests/xtro-sharpie/api-annotations-dotnet/macOS-MapKit.todo create mode 100644 tests/xtro-sharpie/watchOS-MapKit.todo diff --git a/src/mapkit.cs b/src/mapkit.cs index 529cef3a6725..13f8b5b54983 100644 --- a/src/mapkit.cs +++ b/src/mapkit.cs @@ -87,6 +87,9 @@ interface MKAnnotation { [Export ("setCoordinate:")] [MacCatalyst (13, 1)] void SetCoordinate (CLLocationCoordinate2D value); + + [Notification, Field ("MKAnnotationCalloutInfoDidChangeNotification")] + NSString CalloutInfoDidChangeNotification { get; } } interface IMKAnnotation { } @@ -97,6 +100,11 @@ interface IMKAnnotation { } [Protocol] [MacCatalyst (13, 1)] interface MKOverlay { + // There's a 'coordinate' readonly property defined in the header for MKOverlay, + // but the MKAnnotation protocol (which this protocol subclasses), also defines + // a readonly 'coordinate' property, so there's no need to re-declare it here + // (in fact it causes numerous build problems). + [Abstract] [Export ("boundingMapRect")] MKMapRect BoundingMapRect { get; } @@ -2822,12 +2830,12 @@ interface MKAddressFilter : NSSecureCoding, NSCopying { MKAddressFilter ExcludingAll { get; } [Export ("initIncludingOptions:")] - [DesignatedInitializer] + // [DesignatedInitializer] // this isn't a constructor, so [DesignatedInitializer] doesn't work [Internal] NativeHandle _InitIncludingOptions (MKAddressFilter options); [Export ("initExcludingOptions:")] - [DesignatedInitializer] + // [DesignatedInitializer] // this isn't a constructor, so [DesignatedInitializer] doesn't work [Internal] NativeHandle _InitExcludingOptions (MKAddressFilter options); @@ -2854,6 +2862,7 @@ interface MKMapItemAnnotation : MKAnnotation { [Protocol (BackwardsCompatibleCodeGeneration = false), Model] [BaseType (typeof (NSObject))] interface MKMapItemDetailViewControllerDelegate { + [Abstract] [Export ("mapItemDetailViewControllerDidFinish:")] void DidFinish (MKMapItemDetailViewController detailViewController); } @@ -2914,7 +2923,7 @@ enum MKMapItemDetailSelectionAccessoryCalloutStyle : long { interface MKMapItemDetailSelectionAccessoryPresentationStyle { [Static] [Export ("automaticWithPresentationViewController:")] - MKMapItemDetailSelectionAccessoryPresentationStyle CreateAutomatic (UIViewController presentationViewController); + MKMapItemDetailSelectionAccessoryPresentationStyle CreateAutomatic ([NullAllowed] UIViewController presentationViewController); [Static] [Export ("callout", ArgumentSemantic.Strong)] diff --git a/tests/cecil-tests/Documentation.KnownFailures.txt b/tests/cecil-tests/Documentation.KnownFailures.txt index ed92080f9bc0..56065a51ac0b 100644 --- a/tests/cecil-tests/Documentation.KnownFailures.txt +++ b/tests/cecil-tests/Documentation.KnownFailures.txt @@ -38997,12 +38997,12 @@ M:MapKit.MKMapItem.OpenInMapsAsync(Foundation.NSDictionary,UIKit.UIScene) M:MapKit.MKMapItem.OpenInMapsAsync(Foundation.NSDictionary) M:MapKit.MKMapItem.OpenMaps(MapKit.MKMapItem[],MapKit.MKLaunchOptions) M:MapKit.MKMapItem.OpenMapsAsync(MapKit.MKMapItem[],Foundation.NSDictionary,UIKit.UIScene) +M:MapKit.MKMapItem.OpenMapsAsync(MapKit.MKMapItem[],Foundation.NSDictionary) M:MapKit.MKMapItemAnnotation.SetCoordinate(CoreLocation.CLLocationCoordinate2D) M:MapKit.MKMapItemDetailViewController.Dispose(System.Boolean) M:MapKit.MKMapItemDetailViewControllerDelegate.DidFinish(MapKit.MKMapItemDetailViewController) M:MapKit.MKMapItemIdentifier.Copy(Foundation.NSZone) M:MapKit.MKMapItemIdentifier.EncodeTo(Foundation.NSCoder) -M:MapKit.MKMapItem.OpenMapsAsync(MapKit.MKMapItem[],Foundation.NSDictionary) M:MapKit.MKMapItemRequest.GetMapItemAsync M:MapKit.MKMapPoint.#ctor(System.Double,System.Double) M:MapKit.MKMapPoint.Equals(System.Object) @@ -68300,6 +68300,7 @@ P:MapKit.IMKAnnotation.Subtitle P:MapKit.IMKAnnotation.Title P:MapKit.IMKOverlay.BoundingMapRect P:MapKit.IMKOverlay.CanReplaceMapContent +P:MapKit.MKAnnotation.CalloutInfoDidChangeNotification P:MapKit.MKAnnotation.Coordinate P:MapKit.MKAnnotation.Subtitle P:MapKit.MKAnnotation.Title @@ -68310,6 +68311,7 @@ P:MapKit.MKAnnotationView.Highlighted P:MapKit.MKAnnotationView.Selected P:MapKit.MKAnnotationViewEventArgs.View P:MapKit.MKCircle.CanReplaceMapContent +P:MapKit.MKClusterAnnotation.CalloutInfoDidChangeNotification P:MapKit.MKClusterAnnotation.Coordinate P:MapKit.MKDidAddOverlayRenderersEventArgs.Renderers P:MapKit.MKDidFinishRenderingMapEventArgs.FullyRendered @@ -68330,6 +68332,7 @@ P:MapKit.MKLookAroundSnapshotter.IsLoading P:MapKit.MKLookAroundViewController.Delegate P:MapKit.MKLookAroundViewController.NavigationEnabled P:MapKit.MKMapCameraZoomRange.ZoomDefault +P:MapKit.MKMapFeatureAnnotation.CalloutInfoDidChangeNotification P:MapKit.MKMapFeatureAnnotation.Coordinate P:MapKit.MKMapFeatureAnnotation.Subtitle P:MapKit.MKMapFeatureAnnotation.Title @@ -68337,6 +68340,7 @@ P:MapKit.MKMapItem.ReadableTypeIdentifiers P:MapKit.MKMapItem.TypeIdentifier P:MapKit.MKMapItem.WritableTypeIdentifiers P:MapKit.MKMapItem.WritableTypeIdentifiersForItemProvider +P:MapKit.MKMapItemAnnotation.CalloutInfoDidChangeNotification P:MapKit.MKMapItemAnnotation.Coordinate P:MapKit.MKMapItemAnnotation.Subtitle P:MapKit.MKMapItemAnnotation.Title @@ -68391,6 +68395,7 @@ P:MapKit.MKOverlay.BoundingMapRect P:MapKit.MKOverlay.CanReplaceMapContent P:MapKit.MKOverlayViewsEventArgs.OverlayViews P:MapKit.MKPinAnnotationView.MKPinAnnotationViewAppearance.PinTintColor +P:MapKit.MKPlacemark.CalloutInfoDidChangeNotification P:MapKit.MKPlacemark.Coordinate P:MapKit.MKPlacemark.Subtitle P:MapKit.MKPlacemark.Title @@ -68408,6 +68413,7 @@ P:MapKit.MKPolyline.CanReplaceMapContent P:MapKit.MKPolyline.Coordinate P:MapKit.MKReverseGeocoder.Delegate P:MapKit.MKReverseGeocoder.Querying +P:MapKit.MKShape.CalloutInfoDidChangeNotification P:MapKit.MKShape.Coordinate P:MapKit.MKTileOverlay.BoundingMapRect P:MapKit.MKTileOverlay.Coordinate diff --git a/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-MapKit.ignore b/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-MapKit.ignore index 500aad15f7f8..e69de29bb2d1 100644 --- a/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-MapKit.ignore +++ b/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-MapKit.ignore @@ -1,11 +0,0 @@ -## defined twice for iOS (likely to make it available to OSX) -### MKOverlayRenderer.h -### MKOverlayView.h (based on UIView so not in OSX headers list) -!missing-pinvoke! MKRoadWidthAtZoomScale is not bound - - -## unsorted - -!missing-field! MKAnnotationCalloutInfoDidChangeNotification not bound -!missing-protocol-conformance! MKUserLocation should conform to MKAnnotation -!missing-protocol-member! MKOverlay::coordinate not found diff --git a/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-MapKit.todo b/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-MapKit.todo deleted file mode 100644 index 43ec7812d79a..000000000000 --- a/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-MapKit.todo +++ /dev/null @@ -1,83 +0,0 @@ -!missing-enum! MKAddressFilterOption not bound -!missing-enum! MKLocalSearchRegionPriority not bound -!missing-enum! MKMapItemDetailSelectionAccessoryCalloutStyle not bound -!missing-enum-value! MKLocalSearchCompleterResultType native value MKLocalSearchCompleterResultTypePhysicalFeature = 8 not bound -!missing-enum-value! MKLocalSearchResultType native value MKLocalSearchResultTypePhysicalFeature = 4 not bound -!missing-field! MKPointOfInterestCategoryAnimalService not bound -!missing-field! MKPointOfInterestCategoryAutomotiveRepair not bound -!missing-field! MKPointOfInterestCategoryBaseball not bound -!missing-field! MKPointOfInterestCategoryBasketball not bound -!missing-field! MKPointOfInterestCategoryBeauty not bound -!missing-field! MKPointOfInterestCategoryBowling not bound -!missing-field! MKPointOfInterestCategoryCastle not bound -!missing-field! MKPointOfInterestCategoryConventionCenter not bound -!missing-field! MKPointOfInterestCategoryDistillery not bound -!missing-field! MKPointOfInterestCategoryFairground not bound -!missing-field! MKPointOfInterestCategoryFishing not bound -!missing-field! MKPointOfInterestCategoryFortress not bound -!missing-field! MKPointOfInterestCategoryGoKart not bound -!missing-field! MKPointOfInterestCategoryGolf not bound -!missing-field! MKPointOfInterestCategoryHiking not bound -!missing-field! MKPointOfInterestCategoryKayaking not bound -!missing-field! MKPointOfInterestCategoryLandmark not bound -!missing-field! MKPointOfInterestCategoryMailbox not bound -!missing-field! MKPointOfInterestCategoryMiniGolf not bound -!missing-field! MKPointOfInterestCategoryMusicVenue not bound -!missing-field! MKPointOfInterestCategoryNationalMonument not bound -!missing-field! MKPointOfInterestCategoryPlanetarium not bound -!missing-field! MKPointOfInterestCategoryRockClimbing not bound -!missing-field! MKPointOfInterestCategoryRVPark not bound -!missing-field! MKPointOfInterestCategorySkatePark not bound -!missing-field! MKPointOfInterestCategorySkating not bound -!missing-field! MKPointOfInterestCategorySkiing not bound -!missing-field! MKPointOfInterestCategorySoccer not bound -!missing-field! MKPointOfInterestCategorySpa not bound -!missing-field! MKPointOfInterestCategorySurfing not bound -!missing-field! MKPointOfInterestCategorySwimming not bound -!missing-field! MKPointOfInterestCategoryTennis not bound -!missing-field! MKPointOfInterestCategoryVolleyball not bound -!missing-protocol! MKMapItemDetailViewControllerDelegate not bound -!missing-protocol-member! MKMapViewDelegate::mapView:selectionAccessoryForAnnotation: not found -!missing-selector! +MKAddressFilter::filterExcludingAll not bound -!missing-selector! +MKAddressFilter::filterIncludingAll not bound -!missing-selector! +MKMapItemDetailSelectionAccessoryPresentationStyle::automaticWithPresentationViewController: not bound -!missing-selector! +MKMapItemDetailSelectionAccessoryPresentationStyle::callout not bound -!missing-selector! +MKMapItemDetailSelectionAccessoryPresentationStyle::calloutWithCalloutStyle: not bound -!missing-selector! +MKMapItemDetailSelectionAccessoryPresentationStyle::openInMaps not bound -!missing-selector! +MKMapItemDetailSelectionAccessoryPresentationStyle::sheetPresentedFromViewController: not bound -!missing-selector! +MKSelectionAccessory::mapItemDetailWithPresentationStyle: not bound -!missing-selector! MKAddressFilter::excludesOptions: not bound -!missing-selector! MKAddressFilter::includesOptions: not bound -!missing-selector! MKAddressFilter::initExcludingOptions: not bound -!missing-selector! MKAddressFilter::initIncludingOptions: not bound -!missing-selector! MKAnnotationView::accessoryOffset not bound -!missing-selector! MKAnnotationView::setAccessoryOffset: not bound -!missing-selector! MKLocalSearchCompleter::addressFilter not bound -!missing-selector! MKLocalSearchCompleter::regionPriority not bound -!missing-selector! MKLocalSearchCompleter::setAddressFilter: not bound -!missing-selector! MKLocalSearchCompleter::setRegionPriority: not bound -!missing-selector! MKLocalSearchRequest::addressFilter not bound -!missing-selector! MKLocalSearchRequest::regionPriority not bound -!missing-selector! MKLocalSearchRequest::setAddressFilter: not bound -!missing-selector! MKLocalSearchRequest::setRegionPriority: not bound -!missing-selector! MKMapItem::alternateIdentifiers not bound -!missing-selector! MKMapItem::identifier not bound -!missing-selector! MKMapItemAnnotation::initWithMapItem: not bound -!missing-selector! MKMapItemAnnotation::mapItem not bound -!missing-selector! MKMapItemDetailViewController::delegate not bound -!missing-selector! MKMapItemDetailViewController::initWithMapItem: not bound -!missing-selector! MKMapItemDetailViewController::initWithMapItem:displaysMap: not bound -!missing-selector! MKMapItemDetailViewController::mapItem not bound -!missing-selector! MKMapItemDetailViewController::setDelegate: not bound -!missing-selector! MKMapItemDetailViewController::setMapItem: not bound -!missing-selector! MKMapItemIdentifier::identifierString not bound -!missing-selector! MKMapItemIdentifier::initWithIdentifierString: not bound -!missing-selector! MKMapItemRequest::initWithMapItemIdentifier: not bound -!missing-selector! MKMapItemRequest::mapFeatureAnnotation not bound -!missing-selector! MKMapItemRequest::mapItemIdentifier not bound -!missing-type! MKAddressFilter not bound -!missing-type! MKMapItemAnnotation not bound -!missing-type! MKMapItemDetailSelectionAccessoryPresentationStyle not bound -!missing-type! MKMapItemDetailViewController not bound -!missing-type! MKMapItemIdentifier not bound -!missing-type! MKSelectionAccessory not bound diff --git a/tests/xtro-sharpie/api-annotations-dotnet/common-MapKit.ignore b/tests/xtro-sharpie/api-annotations-dotnet/common-MapKit.ignore index ef8dddbd4be5..0896680fdd5d 100644 --- a/tests/xtro-sharpie/api-annotations-dotnet/common-MapKit.ignore +++ b/tests/xtro-sharpie/api-annotations-dotnet/common-MapKit.ignore @@ -1,3 +1,4 @@ +## We've re-implemented these in managed code !missing-field! MKMapRectNull not bound !missing-field! MKMapRectWorld not bound !missing-field! MKMapSizeWorld not bound @@ -11,3 +12,9 @@ !deprecated-attribute-missing! MKMapView::setShowsBuildings: missing a [Deprecated] attribute !deprecated-attribute-missing! MKMapView::showsTraffic missing a [Deprecated] attribute !deprecated-attribute-missing! MKMapView::setShowsTraffic: missing a [Deprecated] attribute + +## This is rather hard to fix: see comment in the generator (search for MKAnnotation to find it) +!missing-protocol-conformance! MKUserLocation should conform to MKAnnotation + +## The MKOverlay protocol implements the MKAnnotation protocol, which has a required 'coordinate' property, so the API is there. +!missing-protocol-member! MKOverlay::coordinate not found diff --git a/tests/xtro-sharpie/api-annotations-dotnet/iOS-MapKit.ignore b/tests/xtro-sharpie/api-annotations-dotnet/iOS-MapKit.ignore index 500aad15f7f8..e69de29bb2d1 100644 --- a/tests/xtro-sharpie/api-annotations-dotnet/iOS-MapKit.ignore +++ b/tests/xtro-sharpie/api-annotations-dotnet/iOS-MapKit.ignore @@ -1,11 +0,0 @@ -## defined twice for iOS (likely to make it available to OSX) -### MKOverlayRenderer.h -### MKOverlayView.h (based on UIView so not in OSX headers list) -!missing-pinvoke! MKRoadWidthAtZoomScale is not bound - - -## unsorted - -!missing-field! MKAnnotationCalloutInfoDidChangeNotification not bound -!missing-protocol-conformance! MKUserLocation should conform to MKAnnotation -!missing-protocol-member! MKOverlay::coordinate not found diff --git a/tests/xtro-sharpie/api-annotations-dotnet/macOS-MapKit.ignore b/tests/xtro-sharpie/api-annotations-dotnet/macOS-MapKit.ignore index 4152d279f79a..68ffaa04db33 100644 --- a/tests/xtro-sharpie/api-annotations-dotnet/macOS-MapKit.ignore +++ b/tests/xtro-sharpie/api-annotations-dotnet/macOS-MapKit.ignore @@ -1,6 +1 @@ -!missing-field! MKAnnotationCalloutInfoDidChangeNotification not bound -!missing-protocol-conformance! MKUserLocation should conform to MKAnnotation -!missing-protocol-member! MKOverlay::coordinate not found - -## Marked as unavailable on macOS !missing-enum-value! MKUserTrackingMode native value MKUserTrackingModeFollowWithHeading = 2 not bound diff --git a/tests/xtro-sharpie/api-annotations-dotnet/macOS-MapKit.todo b/tests/xtro-sharpie/api-annotations-dotnet/macOS-MapKit.todo deleted file mode 100644 index 0ba4211dac39..000000000000 --- a/tests/xtro-sharpie/api-annotations-dotnet/macOS-MapKit.todo +++ /dev/null @@ -1,89 +0,0 @@ -!missing-selector! +MKMapItem::openMapsWithItems:launchOptions:completionHandler: not bound -!missing-selector! MKMapItem::openInMapsWithLaunchOptions:completionHandler: not bound -!missing-enum! MKAddressFilterOption not bound -!missing-enum! MKLocalSearchRegionPriority not bound -!missing-enum! MKMapItemDetailSelectionAccessoryCalloutStyle not bound -!missing-enum-value! MKLocalSearchCompleterResultType native value MKLocalSearchCompleterResultTypePhysicalFeature = 8 not bound -!missing-enum-value! MKLocalSearchResultType native value MKLocalSearchResultTypePhysicalFeature = 4 not bound -!missing-field! MKPointOfInterestCategoryAnimalService not bound -!missing-field! MKPointOfInterestCategoryAutomotiveRepair not bound -!missing-field! MKPointOfInterestCategoryBaseball not bound -!missing-field! MKPointOfInterestCategoryBasketball not bound -!missing-field! MKPointOfInterestCategoryBeauty not bound -!missing-field! MKPointOfInterestCategoryBowling not bound -!missing-field! MKPointOfInterestCategoryCastle not bound -!missing-field! MKPointOfInterestCategoryConventionCenter not bound -!missing-field! MKPointOfInterestCategoryDistillery not bound -!missing-field! MKPointOfInterestCategoryFairground not bound -!missing-field! MKPointOfInterestCategoryFishing not bound -!missing-field! MKPointOfInterestCategoryFortress not bound -!missing-field! MKPointOfInterestCategoryGoKart not bound -!missing-field! MKPointOfInterestCategoryGolf not bound -!missing-field! MKPointOfInterestCategoryHiking not bound -!missing-field! MKPointOfInterestCategoryKayaking not bound -!missing-field! MKPointOfInterestCategoryLandmark not bound -!missing-field! MKPointOfInterestCategoryMailbox not bound -!missing-field! MKPointOfInterestCategoryMiniGolf not bound -!missing-field! MKPointOfInterestCategoryMusicVenue not bound -!missing-field! MKPointOfInterestCategoryNationalMonument not bound -!missing-field! MKPointOfInterestCategoryPlanetarium not bound -!missing-field! MKPointOfInterestCategoryRockClimbing not bound -!missing-field! MKPointOfInterestCategoryRVPark not bound -!missing-field! MKPointOfInterestCategorySkatePark not bound -!missing-field! MKPointOfInterestCategorySkating not bound -!missing-field! MKPointOfInterestCategorySkiing not bound -!missing-field! MKPointOfInterestCategorySoccer not bound -!missing-field! MKPointOfInterestCategorySpa not bound -!missing-field! MKPointOfInterestCategorySurfing not bound -!missing-field! MKPointOfInterestCategorySwimming not bound -!missing-field! MKPointOfInterestCategoryTennis not bound -!missing-field! MKPointOfInterestCategoryVolleyball not bound -!missing-protocol! MKMapItemDetailViewControllerDelegate not bound -!missing-protocol-member! MKMapViewDelegate::mapView:selectionAccessoryForAnnotation: not found -!missing-selector! +MKAddressFilter::filterExcludingAll not bound -!missing-selector! +MKAddressFilter::filterIncludingAll not bound -!missing-selector! +MKMapItemDetailSelectionAccessoryPresentationStyle::automaticWithPresentationViewController: not bound -!missing-selector! +MKMapItemDetailSelectionAccessoryPresentationStyle::callout not bound -!missing-selector! +MKMapItemDetailSelectionAccessoryPresentationStyle::calloutWithCalloutStyle: not bound -!missing-selector! +MKMapItemDetailSelectionAccessoryPresentationStyle::openInMaps not bound -!missing-selector! +MKMapItemDetailSelectionAccessoryPresentationStyle::sheetPresentedFromViewController: not bound -!missing-selector! +MKSelectionAccessory::mapItemDetailWithPresentationStyle: not bound -!missing-selector! MKAddressFilter::excludesOptions: not bound -!missing-selector! MKAddressFilter::includesOptions: not bound -!missing-selector! MKAddressFilter::initExcludingOptions: not bound -!missing-selector! MKAddressFilter::initIncludingOptions: not bound -!missing-selector! MKAnnotationView::accessoryOffset not bound -!missing-selector! MKAnnotationView::setAccessoryOffset: not bound -!missing-selector! MKLocalSearchCompleter::addressFilter not bound -!missing-selector! MKLocalSearchCompleter::regionPriority not bound -!missing-selector! MKLocalSearchCompleter::setAddressFilter: not bound -!missing-selector! MKLocalSearchCompleter::setRegionPriority: not bound -!missing-selector! MKLocalSearchRequest::addressFilter not bound -!missing-selector! MKLocalSearchRequest::regionPriority not bound -!missing-selector! MKLocalSearchRequest::setAddressFilter: not bound -!missing-selector! MKLocalSearchRequest::setRegionPriority: not bound -!missing-selector! MKMapItem::alternateIdentifiers not bound -!missing-selector! MKMapItem::identifier not bound -!missing-selector! MKMapItemAnnotation::initWithMapItem: not bound -!missing-selector! MKMapItemAnnotation::mapItem not bound -!missing-selector! MKMapItemDetailViewController::delegate not bound -!missing-selector! MKMapItemDetailViewController::initWithMapItem: not bound -!missing-selector! MKMapItemDetailViewController::initWithMapItem:displaysMap: not bound -!missing-selector! MKMapItemDetailViewController::mapItem not bound -!missing-selector! MKMapItemDetailViewController::setDelegate: not bound -!missing-selector! MKMapItemDetailViewController::setMapItem: not bound -!missing-selector! MKMapItemIdentifier::identifierString not bound -!missing-selector! MKMapItemIdentifier::initWithIdentifierString: not bound -!missing-selector! MKMapItemRequest::cancel not bound -!missing-selector! MKMapItemRequest::getMapItemWithCompletionHandler: not bound -!missing-selector! MKMapItemRequest::initWithMapItemIdentifier: not bound -!missing-selector! MKMapItemRequest::isCancelled not bound -!missing-selector! MKMapItemRequest::isLoading not bound -!missing-selector! MKMapItemRequest::mapItemIdentifier not bound -!missing-type! MKAddressFilter not bound -!missing-type! MKMapItemAnnotation not bound -!missing-type! MKMapItemDetailSelectionAccessoryPresentationStyle not bound -!missing-type! MKMapItemDetailViewController not bound -!missing-type! MKMapItemIdentifier not bound -!missing-type! MKMapItemRequest not bound -!missing-type! MKSelectionAccessory not bound diff --git a/tests/xtro-sharpie/api-annotations-dotnet/tvOS-MapKit.ignore b/tests/xtro-sharpie/api-annotations-dotnet/tvOS-MapKit.ignore index 815d3d9b7c4a..68ffaa04db33 100644 --- a/tests/xtro-sharpie/api-annotations-dotnet/tvOS-MapKit.ignore +++ b/tests/xtro-sharpie/api-annotations-dotnet/tvOS-MapKit.ignore @@ -1,7 +1 @@ -!missing-field! MKAnnotationCalloutInfoDidChangeNotification not bound -!missing-pinvoke! MKRoadWidthAtZoomScale is not bound -!missing-protocol-conformance! MKUserLocation should conform to MKAnnotation -!missing-protocol-member! MKOverlay::coordinate not found - -## Marked as unavailable on tvOS !missing-enum-value! MKUserTrackingMode native value MKUserTrackingModeFollowWithHeading = 2 not bound diff --git a/tests/xtro-sharpie/iOS-MapKit.ignore b/tests/xtro-sharpie/iOS-MapKit.ignore index 61ced472e15b..a83ecd9a5097 100644 --- a/tests/xtro-sharpie/iOS-MapKit.ignore +++ b/tests/xtro-sharpie/iOS-MapKit.ignore @@ -1,12 +1,5 @@ -## defined twice for iOS (likely to make it available to OSX) -### MKOverlayRenderer.h -### MKOverlayView.h (based on UIView so not in OSX headers list) -!missing-pinvoke! MKRoadWidthAtZoomScale is not bound - - ## unsorted -!missing-field! MKAnnotationCalloutInfoDidChangeNotification not bound !missing-protocol-conformance! MKUserLocation should conform to MKAnnotation !missing-protocol-member! MKOverlay::coordinate not found diff --git a/tests/xtro-sharpie/macOS-MapKit.ignore b/tests/xtro-sharpie/macOS-MapKit.ignore index a7aa2ddf853b..1d8daa8081dd 100644 --- a/tests/xtro-sharpie/macOS-MapKit.ignore +++ b/tests/xtro-sharpie/macOS-MapKit.ignore @@ -1,4 +1,3 @@ -!missing-field! MKAnnotationCalloutInfoDidChangeNotification not bound !missing-protocol-conformance! MKUserLocation should conform to MKAnnotation !missing-protocol-member! MKOverlay::coordinate not found diff --git a/tests/xtro-sharpie/tvOS-MapKit.ignore b/tests/xtro-sharpie/tvOS-MapKit.ignore index 0b3ced90514d..6af422a70853 100644 --- a/tests/xtro-sharpie/tvOS-MapKit.ignore +++ b/tests/xtro-sharpie/tvOS-MapKit.ignore @@ -1,5 +1,3 @@ -!missing-field! MKAnnotationCalloutInfoDidChangeNotification not bound -!missing-pinvoke! MKRoadWidthAtZoomScale is not bound !missing-protocol-conformance! MKUserLocation should conform to MKAnnotation !missing-protocol-member! MKOverlay::coordinate not found diff --git a/tests/xtro-sharpie/watchOS-MapKit.todo b/tests/xtro-sharpie/watchOS-MapKit.todo new file mode 100644 index 000000000000..5ae11637b26b --- /dev/null +++ b/tests/xtro-sharpie/watchOS-MapKit.todo @@ -0,0 +1 @@ +!unknown-field! MKAnnotationCalloutInfoDidChangeNotification bound From b276d0f86432a8169067c5e5b177935969eb86a4 Mon Sep 17 00:00:00 2001 From: Rolf Bjarne Kvinge Date: Wed, 14 Aug 2024 20:19:29 +0200 Subject: [PATCH 4/6] Add test. --- src/MapKit/MKAddressFilter.cs | 15 +++++---- src/mapkit.cs | 4 +-- .../MapKit/MKAddressFilterTest.cs | 32 +++++++++++++++++++ 3 files changed, 42 insertions(+), 9 deletions(-) create mode 100644 tests/monotouch-test/MapKit/MKAddressFilterTest.cs diff --git a/src/MapKit/MKAddressFilter.cs b/src/MapKit/MKAddressFilter.cs index df8d6e58bfd3..daacf9fd6568 100644 --- a/src/MapKit/MKAddressFilter.cs +++ b/src/MapKit/MKAddressFilter.cs @@ -11,10 +11,10 @@ namespace MapKit { /// This enum is used to select how to initialize a new instance of a . public enum MKAddressFilterConstructorOption { - /// The options parameter passed to the constructor is are included address filter options. - IncludingOptions, - /// The options parameter passed to the constructor is are excluded address filter options. - ExcludeOptions, + /// The options parameter passed to the constructor are inclusive. + Include, + /// The options parameter passed to the constructor are exclusive. + Exclude, } public partial class MKAddressFilter { @@ -22,13 +22,14 @@ public partial class MKAddressFilter { /// The address filter options to use. /// Specify whether the argument is including or excluding the given options. /// A new instance with the specified address filter options. - public MKAddressFilter (MKAddressFilter options, MKAddressFilterConstructorOption constructorOption) + public MKAddressFilter (MKAddressFilterOption options, MKAddressFilterConstructorOption constructorOption) + : base (NSObjectFlag.Empty) { switch (constructorOption) { - case MKAddressFilterConstructorOption.IncludingOptions: + case MKAddressFilterConstructorOption.Include: InitializeHandle (_InitIncludingOptions (options)); break; - case MKAddressFilterConstructorOption.ExcludeOptions: + case MKAddressFilterConstructorOption.Exclude: InitializeHandle (_InitExcludingOptions (options)); break; default: diff --git a/src/mapkit.cs b/src/mapkit.cs index 13f8b5b54983..5b3fe5bba031 100644 --- a/src/mapkit.cs +++ b/src/mapkit.cs @@ -2832,12 +2832,12 @@ interface MKAddressFilter : NSSecureCoding, NSCopying { [Export ("initIncludingOptions:")] // [DesignatedInitializer] // this isn't a constructor, so [DesignatedInitializer] doesn't work [Internal] - NativeHandle _InitIncludingOptions (MKAddressFilter options); + NativeHandle _InitIncludingOptions (MKAddressFilterOption options); [Export ("initExcludingOptions:")] // [DesignatedInitializer] // this isn't a constructor, so [DesignatedInitializer] doesn't work [Internal] - NativeHandle _InitExcludingOptions (MKAddressFilter options); + NativeHandle _InitExcludingOptions (MKAddressFilterOption options); [Export ("includesOptions:")] bool Includes (MKAddressFilterOption options); diff --git a/tests/monotouch-test/MapKit/MKAddressFilterTest.cs b/tests/monotouch-test/MapKit/MKAddressFilterTest.cs new file mode 100644 index 000000000000..d027720131cc --- /dev/null +++ b/tests/monotouch-test/MapKit/MKAddressFilterTest.cs @@ -0,0 +1,32 @@ +#if HAS_MAPKIT && !WATCH + +using System; + +using Foundation; +using MapKit; + +using NUnit.Framework; + +using Xamarin.Utils; + +namespace MonoTouchFixtures.MapKit { + + [TestFixture] + [Preserve (AllMembers = true)] + public class AddressFilterTest { + [Test] + public void Constructors () + { + TestRuntime.AssertXcodeVersion (16, 0); + + using (var filter = new MKAddressFilter (MKAddressFilterOption.Country, MKAddressFilterConstructorOption.Exclude)) { + Assert.IsNotNull (filter, "Exclude filter"); + } + using (var filter = new MKAddressFilter (MKAddressFilterOption.SubAdministrativeArea, MKAddressFilterConstructorOption.Include)) { + Assert.IsNotNull (filter, "Include filter"); + } + } + } +} + +#endif // HAS_MAPKIT && !WATCH From 88492bdc6134490b38655331ef1e5984675bf250 Mon Sep 17 00:00:00 2001 From: Rolf Bjarne Kvinge Date: Fri, 23 Aug 2024 13:17:18 +0200 Subject: [PATCH 5/6] Fix merge failure. --- .../api-annotations-dotnet/macOS-QuickLookThumbnailing.todo | 2 -- 1 file changed, 2 deletions(-) delete mode 100644 tests/xtro-sharpie/api-annotations-dotnet/macOS-QuickLookThumbnailing.todo diff --git a/tests/xtro-sharpie/api-annotations-dotnet/macOS-QuickLookThumbnailing.todo b/tests/xtro-sharpie/api-annotations-dotnet/macOS-QuickLookThumbnailing.todo deleted file mode 100644 index 8107d5b927b4..000000000000 --- a/tests/xtro-sharpie/api-annotations-dotnet/macOS-QuickLookThumbnailing.todo +++ /dev/null @@ -1,2 +0,0 @@ -!deprecated-attribute-missing! QLThumbnailGenerator::saveBestRepresentationForRequest:toFileAtURL:withContentType:completionHandler: missing a [Deprecated] attribute -!missing-selector! QLThumbnailGenerator::saveBestRepresentationForRequest:toFileAtURL:asContentType:completionHandler: not bound From 5001c8b865d5da9d0fa98b46c791ba18af8058de Mon Sep 17 00:00:00 2001 From: Rolf Bjarne Kvinge Date: Thu, 29 Aug 2024 11:45:23 +0200 Subject: [PATCH 6/6] Fix introspection. --- tests/introspection/ApiSelectorTest.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/introspection/ApiSelectorTest.cs b/tests/introspection/ApiSelectorTest.cs index 0c587b335fca..c12367818753 100644 --- a/tests/introspection/ApiSelectorTest.cs +++ b/tests/introspection/ApiSelectorTest.cs @@ -1287,6 +1287,10 @@ protected virtual bool SkipInit (string selector, MethodBase m) // DDDevicePickerViewController case "initWithBrowseDescriptor:parameters:": return true; + // MKAddressFilter + case "initExcludingOptions:": + case "initIncludingOptions:": + return true; default: return false; }