[NET 6 Attribute Conversion] MapKit (#13952)
This commit is contained in:
Родитель
fdd8410c80
Коммит
44f6cb24e5
|
@ -9,10 +9,14 @@ namespace MapKit {
|
|||
#if !WATCH || (WATCH && !NET)
|
||||
|
||||
#if NET
|
||||
[SupportedOSPlatform ("ios11.0")]
|
||||
[SupportedOSPlatform ("tvos11.0")]
|
||||
[SupportedOSPlatform ("ios11.0")]
|
||||
[SupportedOSPlatform ("macos10.13")]
|
||||
#else
|
||||
[TV (11,0)][NoWatch][iOS (11,0)][Mac (10,13)]
|
||||
[TV (11,0)]
|
||||
[NoWatch]
|
||||
[iOS (11,0)]
|
||||
[Mac (10,13)]
|
||||
#endif
|
||||
#if WATCH && !NET
|
||||
[Obsolete ("This API is not available on this platform.")]
|
||||
|
|
|
@ -22,9 +22,14 @@ namespace MapKit {
|
|||
public enum MKDirectionsMode {
|
||||
Driving, Walking, Transit,
|
||||
#if NET
|
||||
[SupportedOSPlatform ("ios10.0")]
|
||||
[SupportedOSPlatform ("macos10.12")]
|
||||
[UnsupportedOSPlatform ("tvos")]
|
||||
#else
|
||||
[iOS (10,0)][NoTV][Watch (3,0)][Mac (10,12)]
|
||||
[iOS (10,0)]
|
||||
[NoTV]
|
||||
[Watch (3,0)]
|
||||
[Mac (10,12)]
|
||||
#endif
|
||||
Default
|
||||
}
|
||||
|
@ -43,7 +48,9 @@ namespace MapKit {
|
|||
|
||||
#if !WATCH // The corresponding key (MKLaunchOptionsCameraKey) is allowed in WatchOS, but there's no MKMapCamera type.
|
||||
|
||||
#if !NET
|
||||
#if NET
|
||||
[SupportedOSPlatform ("ios7.0")]
|
||||
#else
|
||||
[iOS (7,0)]
|
||||
#endif
|
||||
public MKMapCamera? Camera { get; set; }
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Runtime.Versioning;
|
||||
using Foundation;
|
||||
using ObjCRuntime;
|
||||
using MapKit;
|
||||
|
@ -15,7 +16,14 @@ using MapKit;
|
|||
namespace MapKit {
|
||||
public partial class MKOverlayView {
|
||||
|
||||
#if !NET
|
||||
#if NET
|
||||
[SupportedOSPlatform ("tvos9.2")]
|
||||
[SupportedOSPlatform ("macos10.9")]
|
||||
[UnsupportedOSPlatform ("ios7.0")]
|
||||
#if IOS
|
||||
[Obsolete ("Starting with ios7.0 use 'MKOverlayRenderer' instead.", DiagnosticId = "BI1234", UrlFormat = "https://github.com/xamarin/xamarin-macios/wiki/Obsolete")]
|
||||
#endif
|
||||
#else
|
||||
[TV (9,2)]
|
||||
[Mac (10,9)]
|
||||
#endif
|
||||
|
|
|
@ -10,6 +10,7 @@
|
|||
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Runtime.Versioning;
|
||||
using CoreGraphics;
|
||||
using CoreLocation;
|
||||
using Foundation;
|
||||
|
@ -52,10 +53,12 @@ namespace MapKit {
|
|||
}
|
||||
|
||||
// MKGeometry.h
|
||||
[StructLayout (LayoutKind.Sequential)]
|
||||
#if !NET
|
||||
#if NET
|
||||
[SupportedOSPlatform ("macos10.9")]
|
||||
#else
|
||||
[Mac (10,9)]
|
||||
#endif
|
||||
[StructLayout (LayoutKind.Sequential)]
|
||||
public struct MKCoordinateRegion {
|
||||
public CLLocationCoordinate2D Center;
|
||||
public MKCoordinateSpan Span;
|
||||
|
@ -81,10 +84,12 @@ namespace MapKit {
|
|||
}
|
||||
|
||||
// MKGeometry.h
|
||||
[StructLayout (LayoutKind.Sequential)]
|
||||
#if !NET
|
||||
#if NET
|
||||
[SupportedOSPlatform ("macos10.9")]
|
||||
#else
|
||||
[Mac (10,9)]
|
||||
#endif
|
||||
[StructLayout (LayoutKind.Sequential)]
|
||||
public struct MKMapPoint {
|
||||
public double X, Y;
|
||||
|
||||
|
@ -146,7 +151,9 @@ namespace MapKit {
|
|||
Height = height;
|
||||
}
|
||||
|
||||
#if !NET
|
||||
#if NET
|
||||
[SupportedOSPlatform ("tvos9.2")]
|
||||
#else
|
||||
[TV (9,2)]
|
||||
#endif
|
||||
public static MKMapSize World { get { return new MKMapSize (0x10000000, 0x10000000); }}
|
||||
|
@ -185,12 +192,17 @@ namespace MapKit {
|
|||
}
|
||||
|
||||
// MKGeometry.h
|
||||
[StructLayout (LayoutKind.Sequential)]
|
||||
#if !NET
|
||||
#if NET
|
||||
[SupportedOSPlatform ("macos10.9")]
|
||||
#else
|
||||
[Mac (10,9)]
|
||||
#endif
|
||||
[StructLayout (LayoutKind.Sequential)]
|
||||
public struct MKMapRect {
|
||||
#if !NET
|
||||
#if NET
|
||||
[SupportedOSPlatform ("tvos9.2")]
|
||||
[SupportedOSPlatform ("macos10.9")]
|
||||
#else
|
||||
[TV (9,2)]
|
||||
#endif
|
||||
public static readonly MKMapRect Null = new MKMapRect (double.PositiveInfinity, double.PositiveInfinity, 0, 0);
|
||||
|
@ -283,7 +295,10 @@ namespace MapKit {
|
|||
}
|
||||
}
|
||||
|
||||
#if !NET
|
||||
#if NET
|
||||
[SupportedOSPlatform ("tvos9.2")]
|
||||
[SupportedOSPlatform ("macos10.9")]
|
||||
#else
|
||||
[TV (9,2)]
|
||||
#endif
|
||||
public MKMapRect World {
|
||||
|
@ -396,7 +411,9 @@ namespace MapKit {
|
|||
}
|
||||
|
||||
// MKGeometry.h
|
||||
#if !NET
|
||||
#if NET
|
||||
[SupportedOSPlatform ("macos10.9")]
|
||||
#else
|
||||
[Mac (10,9)]
|
||||
#endif
|
||||
public static class MKGeometry {
|
||||
|
|
Загрузка…
Ссылка в новой задаче