[autoformat] Add the IOSurface, ImageCaptureCore, ImageIO, ImageKit, Intents, JavaScriptCore, LocalAuthentication, MLCompute, MapKit, MediaAccessibility, MediaLibrary, MediaPlayer and MediaToolbox frameworks. (#16755)
This commit is contained in:
Родитель
4025f4e881
Коммит
4a626c2ac5
|
@ -38,7 +38,7 @@ namespace IOSurface {
|
|||
public int Lock (IOSurfaceLockOptions options, ref int seed)
|
||||
{
|
||||
unsafe {
|
||||
fixed (int *p = &seed){
|
||||
fixed (int* p = &seed) {
|
||||
return _Lock (options, (IntPtr) p);
|
||||
}
|
||||
}
|
||||
|
@ -56,7 +56,7 @@ namespace IOSurface {
|
|||
public int Unlock (IOSurfaceLockOptions options, ref int seed)
|
||||
{
|
||||
unsafe {
|
||||
fixed (int *p = &seed){
|
||||
fixed (int* p = &seed) {
|
||||
return _Unlock (options, (IntPtr) p);
|
||||
}
|
||||
}
|
||||
|
@ -74,7 +74,7 @@ namespace IOSurface {
|
|||
public int SetPurgeable (IOSurfacePurgeabilityState newState, ref IOSurfacePurgeabilityState oldState)
|
||||
{
|
||||
unsafe {
|
||||
fixed (IOSurfacePurgeabilityState *p = &oldState){
|
||||
fixed (IOSurfacePurgeabilityState* p = &oldState) {
|
||||
return _SetPurgeable (newState, (IntPtr) p);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -40,7 +40,7 @@ namespace IOSurface {
|
|||
#elif TVOS || IOS
|
||||
return SystemVersion.CheckiOS (12, 0);
|
||||
#else
|
||||
#error Unknown platform
|
||||
#error Unknown platform
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
|
@ -275,15 +275,15 @@ namespace ImageCaptureCore {
|
|||
}
|
||||
|
||||
enum ICTransportType {
|
||||
[Field ("ICTransportTypeUSB")]
|
||||
Usb,
|
||||
[Field ("ICTransportTypeFireWire")]
|
||||
FireWire,
|
||||
[Field ("ICTransportTypeBluetooth")]
|
||||
Bluetooth,
|
||||
[Field ("ICTransportTypeTCPIP")]
|
||||
TcpIp,
|
||||
[Field ("ICTransportTypeMassStorage")]
|
||||
MassStorage,
|
||||
[Field ("ICTransportTypeUSB")]
|
||||
Usb,
|
||||
[Field ("ICTransportTypeFireWire")]
|
||||
FireWire,
|
||||
[Field ("ICTransportTypeBluetooth")]
|
||||
Bluetooth,
|
||||
[Field ("ICTransportTypeTCPIP")]
|
||||
TcpIp,
|
||||
[Field ("ICTransportTypeMassStorage")]
|
||||
MassStorage,
|
||||
}
|
||||
}
|
||||
|
|
|
@ -16,8 +16,7 @@ using CoreGraphics;
|
|||
using Foundation;
|
||||
using ObjCRuntime;
|
||||
|
||||
namespace ImageIO
|
||||
{
|
||||
namespace ImageIO {
|
||||
|
||||
#if NET
|
||||
[SupportedOSPlatform ("ios")]
|
||||
|
@ -25,10 +24,9 @@ namespace ImageIO
|
|||
[SupportedOSPlatform ("macos")]
|
||||
[SupportedOSPlatform ("tvos")]
|
||||
#endif
|
||||
public static class CGImageAnimation
|
||||
{
|
||||
public static class CGImageAnimation {
|
||||
|
||||
public delegate void CGImageSourceAnimationHandler (nint index, CGImage image, out bool stop);
|
||||
public delegate void CGImageSourceAnimationHandler (nint index, CGImage image, out bool stop);
|
||||
|
||||
#if NET
|
||||
[SupportedOSPlatform ("macos10.15")]
|
||||
|
@ -36,13 +34,13 @@ namespace ImageIO
|
|||
[SupportedOSPlatform ("tvos13.0")]
|
||||
[SupportedOSPlatform ("maccatalyst")]
|
||||
#else
|
||||
[Introduced (PlatformName.MacOSX, 10, 15, PlatformArchitecture.All)]
|
||||
[Introduced (PlatformName.iOS, 13, 0, PlatformArchitecture.All)]
|
||||
[Introduced (PlatformName.TvOS, 13, 0, PlatformArchitecture.All)]
|
||||
[Introduced (PlatformName.WatchOS, 6, 0, PlatformArchitecture.All)]
|
||||
[Introduced (PlatformName.MacOSX, 10, 15, PlatformArchitecture.All)]
|
||||
[Introduced (PlatformName.iOS, 13, 0, PlatformArchitecture.All)]
|
||||
[Introduced (PlatformName.TvOS, 13, 0, PlatformArchitecture.All)]
|
||||
[Introduced (PlatformName.WatchOS, 6, 0, PlatformArchitecture.All)]
|
||||
#endif
|
||||
[DllImport (Constants.ImageIOLibrary)]
|
||||
static extern /* OSStatus */ CGImageAnimationStatus CGAnimateImageAtURLWithBlock ( /* CFURLRef */ IntPtr url, /* CFDictionaryRef _iio_Nullable */ IntPtr options, /* CGImageSourceAnimationHandler */ ref BlockLiteral block);
|
||||
[DllImport (Constants.ImageIOLibrary)]
|
||||
static extern /* OSStatus */ CGImageAnimationStatus CGAnimateImageAtURLWithBlock ( /* CFURLRef */ IntPtr url, /* CFDictionaryRef _iio_Nullable */ IntPtr options, /* CGImageSourceAnimationHandler */ ref BlockLiteral block);
|
||||
|
||||
#if NET
|
||||
[SupportedOSPlatform ("macos10.15")]
|
||||
|
@ -50,13 +48,13 @@ namespace ImageIO
|
|||
[SupportedOSPlatform ("tvos13.0")]
|
||||
[SupportedOSPlatform ("maccatalyst")]
|
||||
#else
|
||||
[Introduced (PlatformName.MacOSX, 10, 15, PlatformArchitecture.All)]
|
||||
[Introduced (PlatformName.iOS, 13, 0, PlatformArchitecture.All)]
|
||||
[Introduced (PlatformName.TvOS, 13, 0, PlatformArchitecture.All)]
|
||||
[Introduced (PlatformName.WatchOS, 6, 0, PlatformArchitecture.All)]
|
||||
[Introduced (PlatformName.MacOSX, 10, 15, PlatformArchitecture.All)]
|
||||
[Introduced (PlatformName.iOS, 13, 0, PlatformArchitecture.All)]
|
||||
[Introduced (PlatformName.TvOS, 13, 0, PlatformArchitecture.All)]
|
||||
[Introduced (PlatformName.WatchOS, 6, 0, PlatformArchitecture.All)]
|
||||
#endif
|
||||
[DllImport (Constants.ImageIOLibrary)]
|
||||
static extern /* OSStatus */ CGImageAnimationStatus CGAnimateImageDataWithBlock ( /* CFDataRef _Nonnull */ IntPtr data, /* CFDictionaryRef _Nullable */ IntPtr options, /* CGImageSourceAnimationHandler _Nonnull */ ref BlockLiteral block);
|
||||
[DllImport (Constants.ImageIOLibrary)]
|
||||
static extern /* OSStatus */ CGImageAnimationStatus CGAnimateImageDataWithBlock ( /* CFDataRef _Nonnull */ IntPtr data, /* CFDictionaryRef _Nullable */ IntPtr options, /* CGImageSourceAnimationHandler _Nonnull */ ref BlockLiteral block);
|
||||
|
||||
#if NET
|
||||
[SupportedOSPlatform ("macos10.15")]
|
||||
|
@ -64,32 +62,32 @@ namespace ImageIO
|
|||
[SupportedOSPlatform ("tvos13.0")]
|
||||
[SupportedOSPlatform ("maccatalyst")]
|
||||
#else
|
||||
[Introduced (PlatformName.MacOSX, 10, 15, PlatformArchitecture.All)]
|
||||
[Introduced (PlatformName.iOS, 13, 0, PlatformArchitecture.All)]
|
||||
[Introduced (PlatformName.TvOS, 13, 0, PlatformArchitecture.All)]
|
||||
[Introduced (PlatformName.WatchOS, 6, 0, PlatformArchitecture.All)]
|
||||
[Introduced (PlatformName.MacOSX, 10, 15, PlatformArchitecture.All)]
|
||||
[Introduced (PlatformName.iOS, 13, 0, PlatformArchitecture.All)]
|
||||
[Introduced (PlatformName.TvOS, 13, 0, PlatformArchitecture.All)]
|
||||
[Introduced (PlatformName.WatchOS, 6, 0, PlatformArchitecture.All)]
|
||||
#endif
|
||||
[BindingImpl (BindingImplOptions.Optimizable)]
|
||||
public static CGImageAnimationStatus AnimateImage (NSUrl url, CGImageAnimationOptions options, [BlockProxy (typeof (NIDCGImageSourceAnimationBlock))] CGImageSourceAnimationHandler handler)
|
||||
{
|
||||
[BindingImpl (BindingImplOptions.Optimizable)]
|
||||
public static CGImageAnimationStatus AnimateImage (NSUrl url, CGImageAnimationOptions options, [BlockProxy (typeof (NIDCGImageSourceAnimationBlock))] CGImageSourceAnimationHandler handler)
|
||||
{
|
||||
#if IOS && ARCH_32
|
||||
throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
|
||||
#else
|
||||
if (url is null)
|
||||
ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (url));
|
||||
if (handler is null)
|
||||
ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (handler));
|
||||
if (url is null)
|
||||
ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (url));
|
||||
if (handler is null)
|
||||
ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (handler));
|
||||
|
||||
var block = new BlockLiteral ();
|
||||
block.SetupBlockUnsafe (SDCGImageSourceAnimationBlock.Handler, handler);
|
||||
var block = new BlockLiteral ();
|
||||
block.SetupBlockUnsafe (SDCGImageSourceAnimationBlock.Handler, handler);
|
||||
|
||||
try {
|
||||
return CGAnimateImageAtURLWithBlock (url.Handle, options.GetHandle (), ref block);
|
||||
} finally {
|
||||
block.CleanupBlock ();
|
||||
}
|
||||
try {
|
||||
return CGAnimateImageAtURLWithBlock (url.Handle, options.GetHandle (), ref block);
|
||||
} finally {
|
||||
block.CleanupBlock ();
|
||||
}
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
#if NET
|
||||
[SupportedOSPlatform ("macos10.15")]
|
||||
|
@ -97,81 +95,79 @@ namespace ImageIO
|
|||
[SupportedOSPlatform ("tvos13.0")]
|
||||
[SupportedOSPlatform ("maccatalyst")]
|
||||
#else
|
||||
[Introduced (PlatformName.MacOSX, 10, 15, PlatformArchitecture.All)]
|
||||
[Introduced (PlatformName.iOS, 13, 0, PlatformArchitecture.All)]
|
||||
[Introduced (PlatformName.TvOS, 13, 0, PlatformArchitecture.All)]
|
||||
[Introduced (PlatformName.WatchOS, 6, 0, PlatformArchitecture.All)]
|
||||
[Introduced (PlatformName.MacOSX, 10, 15, PlatformArchitecture.All)]
|
||||
[Introduced (PlatformName.iOS, 13, 0, PlatformArchitecture.All)]
|
||||
[Introduced (PlatformName.TvOS, 13, 0, PlatformArchitecture.All)]
|
||||
[Introduced (PlatformName.WatchOS, 6, 0, PlatformArchitecture.All)]
|
||||
#endif
|
||||
[BindingImpl (BindingImplOptions.Optimizable)]
|
||||
public static CGImageAnimationStatus AnimateImage (NSData data, CGImageAnimationOptions options, [BlockProxy (typeof (NIDCGImageSourceAnimationBlock))] CGImageSourceAnimationHandler handler)
|
||||
{
|
||||
[BindingImpl (BindingImplOptions.Optimizable)]
|
||||
public static CGImageAnimationStatus AnimateImage (NSData data, CGImageAnimationOptions options, [BlockProxy (typeof (NIDCGImageSourceAnimationBlock))] CGImageSourceAnimationHandler handler)
|
||||
{
|
||||
#if IOS && ARCH_32
|
||||
throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
|
||||
#else
|
||||
if (data is null)
|
||||
ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (data));
|
||||
if (handler is null)
|
||||
ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (handler));
|
||||
if (data is null)
|
||||
ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (data));
|
||||
if (handler is null)
|
||||
ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (handler));
|
||||
|
||||
var block = new BlockLiteral ();
|
||||
block.SetupBlockUnsafe (SDCGImageSourceAnimationBlock.Handler, handler);
|
||||
var block = new BlockLiteral ();
|
||||
block.SetupBlockUnsafe (SDCGImageSourceAnimationBlock.Handler, handler);
|
||||
|
||||
try {
|
||||
return CGAnimateImageDataWithBlock (data.Handle, options.GetHandle (), ref block);
|
||||
} finally {
|
||||
block.CleanupBlock ();
|
||||
}
|
||||
try {
|
||||
return CGAnimateImageDataWithBlock (data.Handle, options.GetHandle (), ref block);
|
||||
} finally {
|
||||
block.CleanupBlock ();
|
||||
}
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
// This class bridges native block invocations that call into C#
|
||||
//
|
||||
static internal class SDCGImageSourceAnimationBlock
|
||||
{
|
||||
static internal readonly DCGImageSourceAnimationBlock Handler = Invoke;
|
||||
//
|
||||
// This class bridges native block invocations that call into C#
|
||||
//
|
||||
static internal class SDCGImageSourceAnimationBlock {
|
||||
static internal readonly DCGImageSourceAnimationBlock Handler = Invoke;
|
||||
|
||||
[MonoPInvokeCallback (typeof (DCGImageSourceAnimationBlock))]
|
||||
static void Invoke (IntPtr block, nint index, IntPtr image, [MarshalAs (UnmanagedType.I1)] out bool stop)
|
||||
{
|
||||
var del = BlockLiteral.GetTarget<CGImageSourceAnimationHandler> (block);
|
||||
if (del is not null)
|
||||
del (index, new CoreGraphics.CGImage (image, false), out stop);
|
||||
else
|
||||
stop = false;
|
||||
}
|
||||
} /* class SDCGImageSourceAnimationBlock */
|
||||
[MonoPInvokeCallback (typeof (DCGImageSourceAnimationBlock))]
|
||||
static void Invoke (IntPtr block, nint index, IntPtr image, [MarshalAs (UnmanagedType.I1)] out bool stop)
|
||||
{
|
||||
var del = BlockLiteral.GetTarget<CGImageSourceAnimationHandler> (block);
|
||||
if (del is not null)
|
||||
del (index, new CoreGraphics.CGImage (image, false), out stop);
|
||||
else
|
||||
stop = false;
|
||||
}
|
||||
} /* class SDCGImageSourceAnimationBlock */
|
||||
|
||||
internal sealed class NIDCGImageSourceAnimationBlock : TrampolineBlockBase
|
||||
{
|
||||
DCGImageSourceAnimationBlock invoker;
|
||||
internal sealed class NIDCGImageSourceAnimationBlock : TrampolineBlockBase {
|
||||
DCGImageSourceAnimationBlock invoker;
|
||||
|
||||
[BindingImpl (BindingImplOptions.Optimizable)]
|
||||
public unsafe NIDCGImageSourceAnimationBlock (BlockLiteral * block) : base (block)
|
||||
{
|
||||
invoker = block->GetDelegateForBlock<DCGImageSourceAnimationBlock> ();
|
||||
}
|
||||
[BindingImpl (BindingImplOptions.Optimizable)]
|
||||
public unsafe NIDCGImageSourceAnimationBlock (BlockLiteral* block) : base (block)
|
||||
{
|
||||
invoker = block->GetDelegateForBlock<DCGImageSourceAnimationBlock> ();
|
||||
}
|
||||
|
||||
[Preserve (Conditional = true)]
|
||||
[BindingImpl (BindingImplOptions.Optimizable)]
|
||||
public unsafe static CGImageSourceAnimationHandler? Create (IntPtr block)
|
||||
{
|
||||
if (block == IntPtr.Zero)
|
||||
return null;
|
||||
var del = (CGImageSourceAnimationHandler) GetExistingManagedDelegate (block);
|
||||
return del ?? new NIDCGImageSourceAnimationBlock ( (BlockLiteral *) block).Invoke;
|
||||
}
|
||||
[Preserve (Conditional = true)]
|
||||
[BindingImpl (BindingImplOptions.Optimizable)]
|
||||
public unsafe static CGImageSourceAnimationHandler? Create (IntPtr block)
|
||||
{
|
||||
if (block == IntPtr.Zero)
|
||||
return null;
|
||||
var del = (CGImageSourceAnimationHandler) GetExistingManagedDelegate (block);
|
||||
return del ?? new NIDCGImageSourceAnimationBlock ((BlockLiteral*) block).Invoke;
|
||||
}
|
||||
|
||||
[BindingImpl (BindingImplOptions.Optimizable)]
|
||||
void Invoke (nint index, CGImage image, out bool stop)
|
||||
{
|
||||
invoker (BlockPointer, index, image.GetHandle (), out stop);
|
||||
}
|
||||
} /* class NIDCGImageSourceAnimationBlock */
|
||||
[BindingImpl (BindingImplOptions.Optimizable)]
|
||||
void Invoke (nint index, CGImage image, out bool stop)
|
||||
{
|
||||
invoker (BlockPointer, index, image.GetHandle (), out stop);
|
||||
}
|
||||
} /* class NIDCGImageSourceAnimationBlock */
|
||||
|
||||
[UnmanagedFunctionPointerAttribute (CallingConvention.Cdecl)]
|
||||
[UserDelegateType (typeof (CGImageSourceAnimationHandler))]
|
||||
internal delegate void DCGImageSourceAnimationBlock (IntPtr block, nint index, IntPtr imageHandle, [MarshalAs (UnmanagedType.I1)] out bool stop);
|
||||
}
|
||||
[UnmanagedFunctionPointerAttribute (CallingConvention.Cdecl)]
|
||||
[UserDelegateType (typeof (CGImageSourceAnimationHandler))]
|
||||
internal delegate void DCGImageSourceAnimationBlock (IntPtr block, nint index, IntPtr imageHandle, [MarshalAs (UnmanagedType.I1)] out bool stop);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -41,8 +41,7 @@ using NativeHandle = System.IntPtr;
|
|||
|
||||
namespace ImageIO {
|
||||
|
||||
public partial class CGImageDestinationOptions
|
||||
{
|
||||
public partial class CGImageDestinationOptions {
|
||||
CGColor? destinationBackgroundColor;
|
||||
public CGColor? DestinationBackgroundColor {
|
||||
get { return destinationBackgroundColor; }
|
||||
|
@ -58,15 +57,14 @@ namespace ImageIO {
|
|||
}
|
||||
}
|
||||
|
||||
public partial class CGCopyImageSourceOptions
|
||||
{
|
||||
public partial class CGCopyImageSourceOptions {
|
||||
#if NET
|
||||
[SupportedOSPlatform ("ios7.0")]
|
||||
[SupportedOSPlatform ("maccatalyst")]
|
||||
[SupportedOSPlatform ("macos")]
|
||||
[SupportedOSPlatform ("tvos")]
|
||||
#else
|
||||
[iOS (7,0)]
|
||||
[iOS (7, 0)]
|
||||
#endif
|
||||
public CGImageMetadata? Metadata { get; set; }
|
||||
|
||||
|
@ -76,7 +74,7 @@ namespace ImageIO {
|
|||
[SupportedOSPlatform ("macos")]
|
||||
[SupportedOSPlatform ("tvos")]
|
||||
#else
|
||||
[iOS (7,0)]
|
||||
[iOS (7, 0)]
|
||||
#endif
|
||||
public bool MergeMetadata { get; set; }
|
||||
|
||||
|
@ -86,7 +84,7 @@ namespace ImageIO {
|
|||
[SupportedOSPlatform ("macos")]
|
||||
[SupportedOSPlatform ("tvos")]
|
||||
#else
|
||||
[iOS (7,0)]
|
||||
[iOS (7, 0)]
|
||||
#endif
|
||||
public bool ShouldExcludeXMP { get; set; }
|
||||
|
||||
|
@ -107,7 +105,7 @@ namespace ImageIO {
|
|||
[SupportedOSPlatform ("macos")]
|
||||
[SupportedOSPlatform ("tvos")]
|
||||
#else
|
||||
[iOS (7,0)]
|
||||
[iOS (7, 0)]
|
||||
#endif
|
||||
public DateTime? DateTime { get; set; }
|
||||
|
||||
|
@ -117,7 +115,7 @@ namespace ImageIO {
|
|||
[SupportedOSPlatform ("macos")]
|
||||
[SupportedOSPlatform ("tvos")]
|
||||
#else
|
||||
[iOS (7,0)]
|
||||
[iOS (7, 0)]
|
||||
#endif
|
||||
public int? Orientation { get; set; }
|
||||
|
||||
|
@ -178,13 +176,13 @@ namespace ImageIO {
|
|||
}
|
||||
#endif
|
||||
|
||||
[Preserve (Conditional=true)]
|
||||
[Preserve (Conditional = true)]
|
||||
internal CGImageDestination (NativeHandle handle, bool owns)
|
||||
: base (handle, owns)
|
||||
{
|
||||
}
|
||||
|
||||
[DllImport (Constants.ImageIOLibrary, EntryPoint="CGImageDestinationGetTypeID")]
|
||||
[DllImport (Constants.ImageIOLibrary, EntryPoint = "CGImageDestinationGetTypeID")]
|
||||
public extern static /* CFTypeID */ nint GetTypeID ();
|
||||
|
||||
[DllImport (Constants.ImageIOLibrary)]
|
||||
|
@ -332,7 +330,7 @@ namespace ImageIO {
|
|||
[SupportedOSPlatform ("macos")]
|
||||
[SupportedOSPlatform ("tvos")]
|
||||
#else
|
||||
[iOS (7,0)]
|
||||
[iOS (7, 0)]
|
||||
#endif
|
||||
[DllImport (Constants.ImageIOLibrary)]
|
||||
extern static void CGImageDestinationAddImageAndMetadata (/* CGImageDestinationRef __nonnull */ IntPtr idst,
|
||||
|
@ -345,7 +343,7 @@ namespace ImageIO {
|
|||
[SupportedOSPlatform ("macos")]
|
||||
[SupportedOSPlatform ("tvos")]
|
||||
#else
|
||||
[iOS (7,0)]
|
||||
[iOS (7, 0)]
|
||||
#endif
|
||||
[EditorBrowsable (EditorBrowsableState.Advanced)]
|
||||
public void AddImageAndMetadata (CGImage image, CGImageMetadata meta, NSDictionary? options)
|
||||
|
@ -361,7 +359,7 @@ namespace ImageIO {
|
|||
[SupportedOSPlatform ("macos")]
|
||||
[SupportedOSPlatform ("tvos")]
|
||||
#else
|
||||
[iOS (7,0)]
|
||||
[iOS (7, 0)]
|
||||
#endif
|
||||
public void AddImageAndMetadata (CGImage image, CGImageMetadata meta, CGImageDestinationOptions? options)
|
||||
{
|
||||
|
@ -375,7 +373,7 @@ namespace ImageIO {
|
|||
[SupportedOSPlatform ("macos")]
|
||||
[SupportedOSPlatform ("tvos")]
|
||||
#else
|
||||
[iOS (7,0)]
|
||||
[iOS (7, 0)]
|
||||
#endif
|
||||
[DllImport (Constants.ImageIOLibrary)]
|
||||
[return: MarshalAs (UnmanagedType.I1)]
|
||||
|
@ -389,7 +387,7 @@ namespace ImageIO {
|
|||
[SupportedOSPlatform ("macos")]
|
||||
[SupportedOSPlatform ("tvos")]
|
||||
#else
|
||||
[iOS (7,0)]
|
||||
[iOS (7, 0)]
|
||||
#endif
|
||||
[EditorBrowsable (EditorBrowsableState.Advanced)]
|
||||
public bool CopyImageSource (CGImageSource image, NSDictionary? options, out NSError? error)
|
||||
|
@ -407,7 +405,7 @@ namespace ImageIO {
|
|||
[SupportedOSPlatform ("macos")]
|
||||
[SupportedOSPlatform ("tvos")]
|
||||
#else
|
||||
[iOS (7,0)]
|
||||
[iOS (7, 0)]
|
||||
#endif
|
||||
public bool CopyImageSource (CGImageSource image, CGCopyImageSourceOptions? options, out NSError? error)
|
||||
{
|
||||
|
|
|
@ -28,7 +28,7 @@ namespace ImageIO {
|
|||
[SupportedOSPlatform ("macos")]
|
||||
[SupportedOSPlatform ("tvos")]
|
||||
#else
|
||||
[iOS (7,0)]
|
||||
[iOS (7, 0)]
|
||||
#endif
|
||||
public partial class CGImageMetadataEnumerateOptions {
|
||||
|
||||
|
@ -55,7 +55,7 @@ namespace ImageIO {
|
|||
[SupportedOSPlatform ("macos")]
|
||||
[SupportedOSPlatform ("tvos")]
|
||||
#else
|
||||
[iOS (7,0)]
|
||||
[iOS (7, 0)]
|
||||
#endif
|
||||
public partial class CGImageMetadata : NativeObject {
|
||||
#if !NET
|
||||
|
@ -80,7 +80,7 @@ namespace ImageIO {
|
|||
{
|
||||
}
|
||||
|
||||
[DllImport (Constants.ImageIOLibrary, EntryPoint="CGImageMetadataGetTypeID")]
|
||||
[DllImport (Constants.ImageIOLibrary, EntryPoint = "CGImageMetadataGetTypeID")]
|
||||
public extern static /* CFTypeID */ nint GetTypeID ();
|
||||
|
||||
|
||||
|
|
|
@ -29,7 +29,7 @@ namespace ImageIO {
|
|||
[SupportedOSPlatform ("macos")]
|
||||
[SupportedOSPlatform ("tvos")]
|
||||
#else
|
||||
[iOS (7,0)]
|
||||
[iOS (7, 0)]
|
||||
#endif
|
||||
public class CGImageMetadataTag : NativeObject {
|
||||
|
||||
|
@ -46,7 +46,7 @@ namespace ImageIO {
|
|||
}
|
||||
#endif
|
||||
|
||||
[Preserve (Conditional=true)]
|
||||
[Preserve (Conditional = true)]
|
||||
internal CGImageMetadataTag (NativeHandle handle, bool owns)
|
||||
: base (handle, owns)
|
||||
{
|
||||
|
@ -83,7 +83,7 @@ namespace ImageIO {
|
|||
InitializeHandle (CGImageMetadataTagCreate (xmlns.Handle, prefix.GetHandle (), name.Handle, type, value));
|
||||
}
|
||||
|
||||
[DllImport (Constants.ImageIOLibrary, EntryPoint="CGImageMetadataTagGetTypeID")]
|
||||
[DllImport (Constants.ImageIOLibrary, EntryPoint = "CGImageMetadataTagGetTypeID")]
|
||||
public extern static nint GetTypeID ();
|
||||
|
||||
|
||||
|
@ -141,7 +141,7 @@ namespace ImageIO {
|
|||
extern static /* CFArrayRef __nullable */ IntPtr CGImageMetadataTagCopyQualifiers (
|
||||
/* CGImageMetadataTagRef __nonnull */ IntPtr tag);
|
||||
|
||||
public CGImageMetadataTag?[]? GetQualifiers ()
|
||||
public CGImageMetadataTag? []? GetQualifiers ()
|
||||
{
|
||||
IntPtr result = CGImageMetadataTagCopyQualifiers (Handle);
|
||||
return CFArray.ArrayFromHandle<CGImageMetadataTag> (result, true);
|
||||
|
|
|
@ -46,11 +46,11 @@ namespace ImageIO {
|
|||
#if !COREBUILD
|
||||
// untyped enum -> CGImageSource.h
|
||||
public enum CGImageSourceStatus {
|
||||
Complete = 0,
|
||||
Incomplete = -1,
|
||||
Complete = 0,
|
||||
Incomplete = -1,
|
||||
ReadingHeader = -2,
|
||||
UnknownType = -3,
|
||||
InvalidData = -4,
|
||||
UnknownType = -3,
|
||||
InvalidData = -4,
|
||||
UnexpectedEOF = -5,
|
||||
}
|
||||
|
||||
|
@ -71,8 +71,8 @@ namespace ImageIO {
|
|||
[SupportedOSPlatform ("maccatalyst")]
|
||||
[SupportedOSPlatform ("tvos")]
|
||||
#else
|
||||
[iOS (7,0)]
|
||||
[Mac (10,9)]
|
||||
[iOS (7, 0)]
|
||||
[Mac (10, 9)]
|
||||
#endif
|
||||
public bool ShouldCacheImmediately { get; set; }
|
||||
|
||||
|
@ -108,8 +108,8 @@ namespace ImageIO {
|
|||
[SupportedOSPlatform ("maccatalyst")]
|
||||
[SupportedOSPlatform ("tvos")]
|
||||
#else
|
||||
[iOS (9,0)]
|
||||
[Mac (10,11)]
|
||||
[iOS (9, 0)]
|
||||
[Mac (10, 11)]
|
||||
#endif
|
||||
public int? SubsampleFactor { get; set; }
|
||||
|
||||
|
@ -134,10 +134,9 @@ namespace ImageIO {
|
|||
}
|
||||
#endif
|
||||
|
||||
public partial class CGImageSource : NativeObject
|
||||
{
|
||||
public partial class CGImageSource : NativeObject {
|
||||
#if !COREBUILD
|
||||
[DllImport (Constants.ImageIOLibrary, EntryPoint="CGImageSourceGetTypeID")]
|
||||
[DllImport (Constants.ImageIOLibrary, EntryPoint = "CGImageSourceGetTypeID")]
|
||||
public extern static nint GetTypeID ();
|
||||
|
||||
[DllImport (Constants.ImageIOLibrary)]
|
||||
|
@ -150,7 +149,7 @@ namespace ImageIO {
|
|||
}
|
||||
}
|
||||
#endif
|
||||
[Preserve (Conditional=true)]
|
||||
[Preserve (Conditional = true)]
|
||||
internal CGImageSource (NativeHandle handle, bool owns)
|
||||
: base (handle, owns)
|
||||
{
|
||||
|
@ -410,10 +409,10 @@ namespace ImageIO {
|
|||
[SupportedOSPlatform ("tvos12.0")]
|
||||
[SupportedOSPlatform ("maccatalyst")]
|
||||
#else
|
||||
[Mac (10,14)]
|
||||
[iOS (12,0)]
|
||||
[TV (12,0)]
|
||||
[Watch (5,0)]
|
||||
[Mac (10, 14)]
|
||||
[iOS (12, 0)]
|
||||
[TV (12, 0)]
|
||||
[Watch (5, 0)]
|
||||
#endif
|
||||
[DllImport (Constants.ImageIOLibrary)]
|
||||
extern static nuint CGImageSourceGetPrimaryImageIndex (IntPtr /* CGImageSource */ src);
|
||||
|
@ -424,10 +423,10 @@ namespace ImageIO {
|
|||
[SupportedOSPlatform ("tvos12.0")]
|
||||
[SupportedOSPlatform ("maccatalyst")]
|
||||
#else
|
||||
[Mac (10,14)]
|
||||
[iOS (12,0)]
|
||||
[TV (12,0)]
|
||||
[Watch (5,0)]
|
||||
[Mac (10, 14)]
|
||||
[iOS (12, 0)]
|
||||
[TV (12, 0)]
|
||||
[Watch (5, 0)]
|
||||
#endif
|
||||
public nuint GetPrimaryImageIndex ()
|
||||
{
|
||||
|
|
|
@ -32,7 +32,7 @@ namespace ImageIO {
|
|||
[SupportedOSPlatform ("tvos")]
|
||||
[UnsupportedOSPlatform ("macos")]
|
||||
#else
|
||||
[iOS (7,0)]
|
||||
[iOS (7, 0)]
|
||||
#endif
|
||||
[EditorBrowsable (EditorBrowsableState.Advanced)]
|
||||
public CGImageMetadata? CopyMetadata (nint index, NSDictionary? options)
|
||||
|
@ -47,7 +47,7 @@ namespace ImageIO {
|
|||
[SupportedOSPlatform ("tvos")]
|
||||
[UnsupportedOSPlatform ("macos")]
|
||||
#else
|
||||
[iOS (7,0)]
|
||||
[iOS (7, 0)]
|
||||
#endif
|
||||
public CGImageMetadata? CopyMetadata (nint index, CGImageOptions? options)
|
||||
{
|
||||
|
@ -62,7 +62,7 @@ namespace ImageIO {
|
|||
[SupportedOSPlatform ("tvos")]
|
||||
[UnsupportedOSPlatform ("macos")]
|
||||
#else
|
||||
[iOS (7,0)]
|
||||
[iOS (7, 0)]
|
||||
#endif
|
||||
[DllImport (Constants.ImageIOLibrary)]
|
||||
extern static void CGImageSourceRemoveCacheAtIndex (/* CGImageSourceRef __nonnull */ IntPtr isrc,
|
||||
|
@ -74,7 +74,7 @@ namespace ImageIO {
|
|||
[SupportedOSPlatform ("tvos")]
|
||||
[UnsupportedOSPlatform ("macos")]
|
||||
#else
|
||||
[iOS (7,0)]
|
||||
[iOS (7, 0)]
|
||||
#endif
|
||||
public void RemoveCache (nint index)
|
||||
{
|
||||
|
|
|
@ -24,7 +24,7 @@ namespace ImageIO {
|
|||
[SupportedOSPlatform ("macos")]
|
||||
[SupportedOSPlatform ("tvos")]
|
||||
#else
|
||||
[iOS (7,0)]
|
||||
[iOS (7, 0)]
|
||||
#endif
|
||||
public class CGMutableImageMetadata : CGImageMetadata {
|
||||
|
||||
|
|
|
@ -15,7 +15,7 @@ namespace ImageIO {
|
|||
|
||||
// untyped enum -> CGImageMetadata.h
|
||||
// note: not used in any API
|
||||
[iOS (7,0)]
|
||||
[iOS (7, 0)]
|
||||
[ErrorDomain ("kCFErrorDomainCGImageMetadata")]
|
||||
public enum CGImageMetadataErrors {
|
||||
Unknown = 0,
|
||||
|
@ -26,7 +26,7 @@ namespace ImageIO {
|
|||
}
|
||||
|
||||
// untyped enum -> CGImageMetadata.h
|
||||
[iOS (7,0)]
|
||||
[iOS (7, 0)]
|
||||
public enum CGImageMetadataType {
|
||||
Invalid = -1,
|
||||
Default = 0,
|
||||
|
@ -51,7 +51,8 @@ namespace ImageIO {
|
|||
|
||||
// untyped enum / #defines
|
||||
// used with kCGImagePropertyPNGCompressionFilter
|
||||
[iOS (9,0)][Mac (10,11)]
|
||||
[iOS (9, 0)]
|
||||
[Mac (10, 11)]
|
||||
[Flags]
|
||||
public enum CGImagePropertyPngFilters {
|
||||
No = 0,
|
||||
|
@ -63,8 +64,7 @@ namespace ImageIO {
|
|||
}
|
||||
|
||||
[Mac (10, 15), iOS (13, 0), TV (13, 0), Watch (6, 0)]
|
||||
public enum CGImageAnimationStatus
|
||||
{
|
||||
public enum CGImageAnimationStatus {
|
||||
Ok = 0,
|
||||
ParameterError = -22140,
|
||||
CorruptInputImage = -22141,
|
||||
|
@ -74,7 +74,7 @@ namespace ImageIO {
|
|||
}
|
||||
|
||||
// Yes, no [Native] here
|
||||
[Mac (11,0), iOS (14,1), TV (14,2), Watch (7,1)]
|
||||
[Mac (11, 0), iOS (14, 1), TV (14, 2), Watch (7, 1)]
|
||||
public enum CGImagePropertyTgaCompression : uint {
|
||||
None = 0,
|
||||
Rle,
|
||||
|
|
|
@ -39,68 +39,68 @@ namespace ImageKit {
|
|||
public enum IKCameraDeviceViewDisplayMode : long {
|
||||
None = -1,
|
||||
Table = 0,
|
||||
Icon = 1
|
||||
Icon = 1
|
||||
};
|
||||
|
||||
[Native]
|
||||
public enum IKCameraDeviceViewTransferMode : long {
|
||||
File = 0,
|
||||
File = 0,
|
||||
Memory = 1
|
||||
};
|
||||
|
||||
[Native]
|
||||
public enum IKDeviceBrowserViewDisplayMode : long {
|
||||
Table = 0,
|
||||
Table = 0,
|
||||
Outline = 1,
|
||||
Icon = 2
|
||||
Icon = 2
|
||||
};
|
||||
|
||||
// Untyped enum in ObjC
|
||||
public enum IKImageBrowserCellState : int {
|
||||
NoImage = 0,
|
||||
Invalid = 1,
|
||||
Ready = 2
|
||||
Ready = 2
|
||||
};
|
||||
|
||||
[Flags]
|
||||
[Native]
|
||||
public enum IKCellsStyle : ulong {
|
||||
None = 0,
|
||||
Shadowed = 1 << 0,
|
||||
Outlined = 1 << 1,
|
||||
Titled = 1 << 2,
|
||||
None = 0,
|
||||
Shadowed = 1 << 0,
|
||||
Outlined = 1 << 1,
|
||||
Titled = 1 << 2,
|
||||
Subtitled = 1 << 3
|
||||
};
|
||||
|
||||
//used as a value for the IKImageBrowserGroupStyleKey in the NSDictionary that defines a group in IKImageBrowserView
|
||||
[Native]
|
||||
public enum IKGroupStyle : long {
|
||||
Bezel = 0,
|
||||
Bezel = 0,
|
||||
Disclosure = 1
|
||||
};
|
||||
|
||||
// Untyped enum in ObjC
|
||||
public enum IKImageBrowserDropOperation : int {
|
||||
On = 0,
|
||||
On = 0,
|
||||
Before = 1
|
||||
};
|
||||
|
||||
[Native]
|
||||
public enum IKScannerDeviceViewTransferMode : long {
|
||||
File = 0,
|
||||
File = 0,
|
||||
Memory = 1
|
||||
};
|
||||
|
||||
[Native]
|
||||
public enum IKScannerDeviceViewDisplayMode : long {
|
||||
None = -1,
|
||||
Simple = 0,
|
||||
None = -1,
|
||||
Simple = 0,
|
||||
Advanced = 1
|
||||
};
|
||||
|
||||
[Flags]
|
||||
public enum IKFilterBrowserPanelStyleMask : uint {
|
||||
Normal = 0,
|
||||
Normal = 0,
|
||||
Textured = 1 << 8
|
||||
// Other NSWindow Style Mask bit settings do not apply to this panel
|
||||
}
|
||||
|
|
|
@ -22,7 +22,7 @@ namespace Intents {
|
|||
#elif WATCH
|
||||
if (SystemVersion.CheckwatchOS (4, 0))
|
||||
#endif
|
||||
return SuccessWithResolvedBillType (resolvedValue);
|
||||
return SuccessWithResolvedBillType (resolvedValue);
|
||||
else
|
||||
return SuccessWithResolvedValue (resolvedValue);
|
||||
}
|
||||
|
@ -34,7 +34,7 @@ namespace Intents {
|
|||
#elif WATCH
|
||||
if (SystemVersion.CheckwatchOS (4, 0))
|
||||
#endif
|
||||
return ConfirmationRequiredWithBillTypeToConfirm (valueToConfirm);
|
||||
return ConfirmationRequiredWithBillTypeToConfirm (valueToConfirm);
|
||||
else
|
||||
return ConfirmationRequiredWithValueToConfirm (valueToConfirm);
|
||||
}
|
||||
|
|
|
@ -24,7 +24,7 @@ namespace Intents {
|
|||
#elif MONOMAC
|
||||
if (SystemVersion.CheckmacOS (10, 13))
|
||||
#endif
|
||||
return SuccessWithResolvedCallRecordType (resolvedValue);
|
||||
return SuccessWithResolvedCallRecordType (resolvedValue);
|
||||
else
|
||||
return SuccessWithResolvedValue (resolvedValue);
|
||||
}
|
||||
|
@ -38,7 +38,7 @@ namespace Intents {
|
|||
#elif MONOMAC
|
||||
if (SystemVersion.CheckmacOS (10, 13))
|
||||
#endif
|
||||
return ConfirmationRequiredWithCallRecordTypeToConfirm (valueToConfirm);
|
||||
return ConfirmationRequiredWithCallRecordTypeToConfirm (valueToConfirm);
|
||||
else
|
||||
return ConfirmationRequiredWithValueToConfirm (valueToConfirm);
|
||||
}
|
||||
|
|
|
@ -22,7 +22,7 @@ namespace Intents {
|
|||
#elif WATCH
|
||||
if (SystemVersion.CheckwatchOS (4, 0))
|
||||
#endif
|
||||
return SuccessWithResolvedCarSignalOptions (resolvedValue);
|
||||
return SuccessWithResolvedCarSignalOptions (resolvedValue);
|
||||
else
|
||||
return SuccessWithResolvedValue (resolvedValue);
|
||||
}
|
||||
|
@ -34,7 +34,7 @@ namespace Intents {
|
|||
#elif WATCH
|
||||
if (SystemVersion.CheckwatchOS (4, 0))
|
||||
#endif
|
||||
return ConfirmationRequiredWithCarSignalOptionsToConfirm (valueToConfirm);
|
||||
return ConfirmationRequiredWithCarSignalOptionsToConfirm (valueToConfirm);
|
||||
else
|
||||
return ConfirmationRequiredWithValueToConfirm (valueToConfirm);
|
||||
}
|
||||
|
|
|
@ -26,12 +26,11 @@ namespace Intents {
|
|||
[iOS (10, 0)]
|
||||
[Mac (10, 12, 0, PlatformArchitecture.Arch64)]
|
||||
[Watch (3, 2)]
|
||||
[TV (14,0)]
|
||||
[TV (14, 0)]
|
||||
#endif
|
||||
[Register ("INIntentResolutionResult", SkipRegistration = true)]
|
||||
public sealed partial class INIntentResolutionResult<ObjectType> : INIntentResolutionResult
|
||||
where ObjectType : class, INativeObject
|
||||
{
|
||||
where ObjectType : class, INativeObject {
|
||||
internal INIntentResolutionResult (NativeHandle handle) : base (handle)
|
||||
{
|
||||
}
|
||||
|
@ -63,9 +62,9 @@ namespace Intents {
|
|||
[SupportedOSPlatform ("tvos14.0")]
|
||||
[SupportedOSPlatform ("maccatalyst")]
|
||||
#else
|
||||
[Watch (6,0)]
|
||||
[iOS (13,0)]
|
||||
[Mac (11,0)]
|
||||
[Watch (6, 0)]
|
||||
[iOS (13, 0)]
|
||||
[Mac (11, 0)]
|
||||
#endif
|
||||
public static INIntentResolutionResult GetUnsupported (nint reason) => throw new NotImplementedException ("All subclasses of INIntentResolutionResult must re-implement this method");
|
||||
|
||||
|
@ -75,9 +74,9 @@ namespace Intents {
|
|||
[SupportedOSPlatform ("tvos14.0")]
|
||||
[SupportedOSPlatform ("maccatalyst")]
|
||||
#else
|
||||
[Watch (6,0)]
|
||||
[iOS (13,0)]
|
||||
[Mac (11,0)]
|
||||
[Watch (6, 0)]
|
||||
[iOS (13, 0)]
|
||||
[Mac (11, 0)]
|
||||
#endif
|
||||
public static INIntentResolutionResult GetConfirmationRequired (NSObject itemToConfirm, nint reason) => throw new NotImplementedException ("All subclasses of INIntentResolutionResult must re-implement this method");
|
||||
|
||||
|
|
|
@ -25,7 +25,7 @@ namespace Intents {
|
|||
#elif MONOMAC
|
||||
if (SystemVersion.CheckmacOS (10, 13))
|
||||
#endif
|
||||
return SuccessWithResolvedMessageAttributeOptions (resolvedValue);
|
||||
return SuccessWithResolvedMessageAttributeOptions (resolvedValue);
|
||||
else
|
||||
return SuccessWithResolvedValue (resolvedValue);
|
||||
}
|
||||
|
@ -39,7 +39,7 @@ namespace Intents {
|
|||
#elif MONOMAC
|
||||
if (SystemVersion.CheckmacOS (10, 13))
|
||||
#endif
|
||||
return ConfirmationRequiredWithMessageAttributeOptionsToConfirm (valueToConfirm);
|
||||
return ConfirmationRequiredWithMessageAttributeOptionsToConfirm (valueToConfirm);
|
||||
else
|
||||
return ConfirmationRequiredWithValueToConfirm (valueToConfirm);
|
||||
}
|
||||
|
|
|
@ -25,7 +25,7 @@ namespace Intents {
|
|||
#elif MONOMAC
|
||||
if (SystemVersion.CheckmacOS (10, 13))
|
||||
#endif
|
||||
return SuccessWithResolvedMessageAttribute (resolvedValue);
|
||||
return SuccessWithResolvedMessageAttribute (resolvedValue);
|
||||
else
|
||||
return SuccessWithResolvedValue (resolvedValue);
|
||||
}
|
||||
|
@ -39,7 +39,7 @@ namespace Intents {
|
|||
#elif MONOMAC
|
||||
if (SystemVersion.CheckmacOS (10, 13))
|
||||
#endif
|
||||
return ConfirmationRequiredWithMessageAttributeToConfirm (valueToConfirm);
|
||||
return ConfirmationRequiredWithMessageAttributeToConfirm (valueToConfirm);
|
||||
else
|
||||
return ConfirmationRequiredWithValueToConfirm (valueToConfirm);
|
||||
}
|
||||
|
|
|
@ -22,7 +22,7 @@ namespace Intents {
|
|||
#elif WATCH
|
||||
if (SystemVersion.CheckwatchOS (4, 0))
|
||||
#endif
|
||||
return SuccessWithResolvedPaymentStatus (resolvedValue);
|
||||
return SuccessWithResolvedPaymentStatus (resolvedValue);
|
||||
else
|
||||
return SuccessWithResolvedValue (resolvedValue);
|
||||
}
|
||||
|
@ -34,7 +34,7 @@ namespace Intents {
|
|||
#elif WATCH
|
||||
if (SystemVersion.CheckwatchOS (4, 0))
|
||||
#endif
|
||||
return ConfirmationRequiredWithPaymentStatusToConfirm (valueToConfirm);
|
||||
return ConfirmationRequiredWithPaymentStatusToConfirm (valueToConfirm);
|
||||
else
|
||||
return ConfirmationRequiredWithValueToConfirm (valueToConfirm);
|
||||
}
|
||||
|
|
|
@ -5,12 +5,10 @@ using ObjCRuntime;
|
|||
|
||||
#nullable enable
|
||||
|
||||
namespace Intents
|
||||
{
|
||||
namespace Intents {
|
||||
|
||||
#if !TVOS
|
||||
public partial class INPerson
|
||||
{
|
||||
public partial class INPerson {
|
||||
|
||||
#if NET
|
||||
[SupportedOSPlatform ("ios15.0")]
|
||||
|
@ -18,9 +16,9 @@ namespace Intents
|
|||
[SupportedOSPlatform ("maccatalyst")]
|
||||
[UnsupportedOSPlatform ("tvos")]
|
||||
#else
|
||||
[Introduced (PlatformName.iOS, 15,0)]
|
||||
[Introduced (PlatformName.MacOSX, 12,0)]
|
||||
[Introduced (PlatformName.WatchOS, 8,0)]
|
||||
[Introduced (PlatformName.iOS, 15, 0)]
|
||||
[Introduced (PlatformName.MacOSX, 12, 0)]
|
||||
[Introduced (PlatformName.WatchOS, 8, 0)]
|
||||
#endif
|
||||
public enum INPersonType {
|
||||
Me = 0,
|
||||
|
@ -33,9 +31,9 @@ namespace Intents
|
|||
[SupportedOSPlatform ("maccatalyst")]
|
||||
[UnsupportedOSPlatform ("tvos")]
|
||||
#else
|
||||
[Introduced (PlatformName.iOS, 15,0)]
|
||||
[Introduced (PlatformName.MacOSX, 12,0)]
|
||||
[Introduced (PlatformName.WatchOS, 8,0)]
|
||||
[Introduced (PlatformName.iOS, 15, 0)]
|
||||
[Introduced (PlatformName.MacOSX, 12, 0)]
|
||||
[Introduced (PlatformName.WatchOS, 8, 0)]
|
||||
#endif
|
||||
public INPerson (INPersonHandle personHandle, NSPersonNameComponents? nameComponents, string? displayName, INImage? image, string? contactIdentifier, string? customIdentifier, bool isMe, INPersonSuggestionType suggestionType) :
|
||||
this (personHandle, nameComponents, displayName, image, contactIdentifier, customIdentifier, isMe, suggestionType, INPersonType.Me)
|
||||
|
@ -48,9 +46,9 @@ namespace Intents
|
|||
[SupportedOSPlatform ("maccatalyst")]
|
||||
[UnsupportedOSPlatform ("tvos")]
|
||||
#else
|
||||
[Introduced (PlatformName.iOS, 15,0)]
|
||||
[Introduced (PlatformName.MacOSX, 12,0)]
|
||||
[Introduced (PlatformName.WatchOS, 8,0)]
|
||||
[Introduced (PlatformName.iOS, 15, 0)]
|
||||
[Introduced (PlatformName.MacOSX, 12, 0)]
|
||||
[Introduced (PlatformName.WatchOS, 8, 0)]
|
||||
#endif
|
||||
public INPerson (INPersonHandle personHandle, NSPersonNameComponents? nameComponents, string? displayName, INImage? image, string? contactIdentifier, string? customIdentifier, bool isMe, INPersonSuggestionType suggestionType, INPersonType personType) : base (NSObjectFlag.Empty)
|
||||
{
|
||||
|
|
|
@ -23,7 +23,7 @@ namespace Intents {
|
|||
#elif MONOMAC
|
||||
if (SystemVersion.CheckmacOS (10, 13))
|
||||
#endif
|
||||
InitializeHandle (InitWithVocabularyIdentifier (identifier, spokenPhrase, pronunciationHint));
|
||||
InitializeHandle (InitWithVocabularyIdentifier (identifier, spokenPhrase, pronunciationHint));
|
||||
#if !TVOS
|
||||
else
|
||||
InitializeHandle (InitWithIdentifier (identifier, spokenPhrase, pronunciationHint));
|
||||
|
|
|
@ -22,7 +22,7 @@ namespace Intents {
|
|||
#elif WATCH
|
||||
if (SystemVersion.CheckwatchOS (4, 0))
|
||||
#endif
|
||||
return SuccessWithResolvedWorkoutGoalUnitType (resolvedValue);
|
||||
return SuccessWithResolvedWorkoutGoalUnitType (resolvedValue);
|
||||
else
|
||||
return SuccessWithResolvedValue (resolvedValue);
|
||||
}
|
||||
|
@ -34,7 +34,7 @@ namespace Intents {
|
|||
#elif WATCH
|
||||
if (SystemVersion.CheckwatchOS (4, 0))
|
||||
#endif
|
||||
return ConfirmationRequiredWithWorkoutGoalUnitTypeToConfirm (valueToConfirm);
|
||||
return ConfirmationRequiredWithWorkoutGoalUnitTypeToConfirm (valueToConfirm);
|
||||
else
|
||||
return ConfirmationRequiredWithValueToConfirm (valueToConfirm);
|
||||
}
|
||||
|
|
|
@ -22,7 +22,7 @@ namespace Intents {
|
|||
#elif WATCH
|
||||
if (SystemVersion.CheckwatchOS (4, 0))
|
||||
#endif
|
||||
return SuccessWithResolvedWorkoutLocationType (resolvedValue);
|
||||
return SuccessWithResolvedWorkoutLocationType (resolvedValue);
|
||||
else
|
||||
return SuccessWithResolvedValue (resolvedValue);
|
||||
}
|
||||
|
@ -34,7 +34,7 @@ namespace Intents {
|
|||
#elif WATCH
|
||||
if (SystemVersion.CheckwatchOS (4, 0))
|
||||
#endif
|
||||
return ConfirmationRequiredWithWorkoutLocationTypeToConfirm (valueToConfirm);
|
||||
return ConfirmationRequiredWithWorkoutLocationTypeToConfirm (valueToConfirm);
|
||||
else
|
||||
return ConfirmationRequiredWithValueToConfirm (valueToConfirm);
|
||||
}
|
||||
|
|
|
@ -19,7 +19,8 @@ namespace JavaScriptCore {
|
|||
Number,
|
||||
String,
|
||||
Object,
|
||||
[iOS (13,0)][Mac (10,15)]
|
||||
[iOS (13, 0)]
|
||||
[Mac (10, 15)]
|
||||
Symbol,
|
||||
}
|
||||
|
||||
|
|
|
@ -15,7 +15,7 @@ namespace JavaScriptCore {
|
|||
|
||||
public partial class JSContext {
|
||||
|
||||
public JSValue this[NSObject key] {
|
||||
public JSValue this [NSObject key] {
|
||||
get { return _GetObject (key); }
|
||||
set { _SetObject (value, key); }
|
||||
}
|
||||
|
@ -31,16 +31,16 @@ namespace JavaScriptCore {
|
|||
static public JSValue From (string value, JSContext context)
|
||||
{
|
||||
using (var str = new NSString (value)) {
|
||||
return From ((NSObject)str, context);
|
||||
return From ((NSObject) str, context);
|
||||
}
|
||||
}
|
||||
|
||||
public JSValue this[nuint index] {
|
||||
public JSValue this [nuint index] {
|
||||
get { return _ObjectAtIndexedSubscript (index); }
|
||||
set { _SetObject (value, index); }
|
||||
}
|
||||
|
||||
public JSValue this[NSObject key] {
|
||||
public JSValue this [NSObject key] {
|
||||
get { return _ObjectForKeyedSubscript (key); }
|
||||
set { _SetObject (value, key); }
|
||||
}
|
||||
|
|
|
@ -4,26 +4,32 @@ using Foundation;
|
|||
|
||||
namespace LocalAuthentication {
|
||||
|
||||
[iOS (8,0)]
|
||||
[iOS (8, 0)]
|
||||
[Mac (10, 10)]
|
||||
[NoTV]
|
||||
[Native]
|
||||
public enum LAPolicy : long {
|
||||
[Mac (10,12,2), NoWatch]
|
||||
[Mac (10, 12, 2), NoWatch]
|
||||
DeviceOwnerAuthenticationWithBiometrics = 1,
|
||||
DeviceOwnerAuthentication = 2,
|
||||
[NoiOS][Mac (10,15)][NoWatch]
|
||||
[NoiOS]
|
||||
[Mac (10, 15)]
|
||||
[NoWatch]
|
||||
DeviceOwnerAuthenticationWithWatch = 3,
|
||||
[NoiOS][Mac (10,15)][NoWatch]
|
||||
[NoiOS]
|
||||
[Mac (10, 15)]
|
||||
[NoWatch]
|
||||
DeviceOwnerAuthenticationWithBiometricsOrWatch = 4,
|
||||
[Obsolete ("Use DeviceOwnerAuthenticationWithBiometricsOrWatch enum value instead.")]
|
||||
[NoiOS][Mac (10,15)][NoWatch]
|
||||
[NoiOS]
|
||||
[Mac (10, 15)]
|
||||
[NoWatch]
|
||||
OwnerAuthenticationWithBiometricsOrWatch = DeviceOwnerAuthenticationWithBiometricsOrWatch,
|
||||
[NoMac, NoiOS, NoMacCatalyst, Watch (9,0)]
|
||||
[NoMac, NoiOS, NoMacCatalyst, Watch (9, 0)]
|
||||
DeviceOwnerAuthenticationWithWristDetection = 5,
|
||||
}
|
||||
|
||||
[iOS (8,0)]
|
||||
[iOS (8, 0)]
|
||||
[Mac (10, 10)]
|
||||
[NoTV]
|
||||
[Native ("LAError")]
|
||||
|
@ -33,58 +39,58 @@ namespace LocalAuthentication {
|
|||
/// Authentication was not successful, because user failed to provide valid credentials.
|
||||
AuthenticationFailed = -1,
|
||||
/// Authentication was canceled by user (e.g. tapped Cancel button).
|
||||
UserCancel = -2,
|
||||
UserCancel = -2,
|
||||
/// Authentication was canceled, because the user tapped the fallback button (Enter Password).
|
||||
UserFallback = -3,
|
||||
UserFallback = -3,
|
||||
/// Authentication was canceled by system (e.g. another application went to foreground).
|
||||
SystemCancel = -4,
|
||||
SystemCancel = -4,
|
||||
/// Authentication could not start, because passcode is not set on the device.
|
||||
PasscodeNotSet = -5,
|
||||
PasscodeNotSet = -5,
|
||||
|
||||
#if !NET
|
||||
/// Authentication could not start, because Touch ID is not available on the device.
|
||||
[Deprecated (PlatformName.iOS, 11,0, message: "Use 'BiometryNotAvailable' instead.")]
|
||||
[Deprecated (PlatformName.MacOSX, 10,13, message: "Use 'BiometryNotAvailable' instead.")]
|
||||
TouchIDNotAvailable = BiometryNotAvailable,
|
||||
[Deprecated (PlatformName.iOS, 11, 0, message: "Use 'BiometryNotAvailable' instead.")]
|
||||
[Deprecated (PlatformName.MacOSX, 10, 13, message: "Use 'BiometryNotAvailable' instead.")]
|
||||
TouchIDNotAvailable = BiometryNotAvailable,
|
||||
|
||||
/// Authentication could not start, because Touch ID has no enrolled fingers.
|
||||
[Deprecated (PlatformName.iOS, 11,0, message: "Use 'BiometryNotEnrolled' instead.")]
|
||||
[Deprecated (PlatformName.MacOSX, 10,13, message: "Use 'BiometryNotEnrolled' instead.")]
|
||||
TouchIDNotEnrolled = BiometryNotEnrolled,
|
||||
[Deprecated (PlatformName.iOS, 11, 0, message: "Use 'BiometryNotEnrolled' instead.")]
|
||||
[Deprecated (PlatformName.MacOSX, 10, 13, message: "Use 'BiometryNotEnrolled' instead.")]
|
||||
TouchIDNotEnrolled = BiometryNotEnrolled,
|
||||
|
||||
[Deprecated (PlatformName.iOS, 11,0, message: "Use 'BiometryLockout' instead.")]
|
||||
[Deprecated (PlatformName.MacOSX, 10,13, message: "Use 'BiometryLockout' instead.")]
|
||||
TouchIDLockout = BiometryLockout,
|
||||
[Deprecated (PlatformName.iOS, 11, 0, message: "Use 'BiometryLockout' instead.")]
|
||||
[Deprecated (PlatformName.MacOSX, 10, 13, message: "Use 'BiometryLockout' instead.")]
|
||||
TouchIDLockout = BiometryLockout,
|
||||
#endif
|
||||
AppCancel = -9,
|
||||
InvalidContext = -10,
|
||||
AppCancel = -9,
|
||||
InvalidContext = -10,
|
||||
[NoiOS, NoWatch, NoMacCatalyst]
|
||||
WatchNotAvailable = -11,
|
||||
WatchNotAvailable = -11,
|
||||
[NoiOS, NoWatch, NoMacCatalyst]
|
||||
BiometryNotPaired = -12,
|
||||
BiometryNotPaired = -12,
|
||||
[NoiOS, NoWatch, NoMacCatalyst]
|
||||
BiometryDisconnected = -13,
|
||||
[NoiOS, NoWatch, NoMacCatalyst]
|
||||
InvalidDimension = -14,
|
||||
InvalidDimension = -14,
|
||||
[NoWatch]
|
||||
BiometryNotAvailable = -6,
|
||||
[NoWatch]
|
||||
BiometryNotEnrolled = -7,
|
||||
[NoWatch]
|
||||
BiometryLockout = -8,
|
||||
NotInteractive = -1004,
|
||||
NotInteractive = -1004,
|
||||
}
|
||||
|
||||
[iOS (9,0), Mac (10,11), Watch (3,0), NoTV]
|
||||
[iOS (9, 0), Mac (10, 11), Watch (3, 0), NoTV]
|
||||
[Native]
|
||||
public enum LACredentialType : long {
|
||||
ApplicationPassword = 0,
|
||||
[iOS (13,4), Mac (10,15,4), NoWatch, NoTV]
|
||||
[iOS (13, 4), Mac (10, 15, 4), NoWatch, NoTV]
|
||||
SmartCardPin = -3,
|
||||
}
|
||||
|
||||
[iOS (9,0)]
|
||||
[Mac (10,11)]
|
||||
[iOS (9, 0)]
|
||||
[Mac (10, 11)]
|
||||
[NoTV]
|
||||
[Native]
|
||||
public enum LAAccessControlOperation : long {
|
||||
|
@ -92,16 +98,17 @@ namespace LocalAuthentication {
|
|||
UseItem,
|
||||
CreateKey,
|
||||
UseKeySign,
|
||||
[iOS (10,0)][Mac (10,12)]
|
||||
[iOS (10, 0)]
|
||||
[Mac (10, 12)]
|
||||
UseKeyDecrypt,
|
||||
[iOS (10,0)][Mac (10,12)]
|
||||
[iOS (10, 0)]
|
||||
[Mac (10, 12)]
|
||||
UseKeyKeyExchange,
|
||||
}
|
||||
|
||||
[Mac (13,0), iOS (16,0), MacCatalyst (16,0), NoWatch, NoTV]
|
||||
[Mac (13, 0), iOS (16, 0), MacCatalyst (16, 0), NoWatch, NoTV]
|
||||
[Native]
|
||||
public enum LARightState : long
|
||||
{
|
||||
public enum LARightState : long {
|
||||
Unknown = 0,
|
||||
Authorizing = 1,
|
||||
Authorized = 2,
|
||||
|
|
|
@ -15,9 +15,9 @@ namespace MLCompute {
|
|||
[SupportedOSPlatform ("macos11.0")]
|
||||
[SupportedOSPlatform ("maccatalyst")]
|
||||
#else
|
||||
[iOS (14,0)]
|
||||
[TV (14,0)]
|
||||
[Mac (11,0)]
|
||||
[iOS (14, 0)]
|
||||
[TV (14, 0)]
|
||||
[Mac (11, 0)]
|
||||
[NoWatch]
|
||||
#endif
|
||||
public static class MLCActivationTypeExtensions {
|
||||
|
@ -37,9 +37,9 @@ namespace MLCompute {
|
|||
[SupportedOSPlatform ("macos11.0")]
|
||||
[SupportedOSPlatform ("maccatalyst")]
|
||||
#else
|
||||
[iOS (14,0)]
|
||||
[TV (14,0)]
|
||||
[Mac (11,0)]
|
||||
[iOS (14, 0)]
|
||||
[TV (14, 0)]
|
||||
[Mac (11, 0)]
|
||||
[NoWatch]
|
||||
#endif
|
||||
public static class MLCArithmeticOperationExtensions {
|
||||
|
@ -59,9 +59,9 @@ namespace MLCompute {
|
|||
[SupportedOSPlatform ("macos11.0")]
|
||||
[SupportedOSPlatform ("maccatalyst")]
|
||||
#else
|
||||
[iOS (14,0)]
|
||||
[TV (14,0)]
|
||||
[Mac (11,0)]
|
||||
[iOS (14, 0)]
|
||||
[TV (14, 0)]
|
||||
[Mac (11, 0)]
|
||||
[NoWatch]
|
||||
#endif
|
||||
public static class MLCPaddingPolicyExtensions {
|
||||
|
@ -81,9 +81,9 @@ namespace MLCompute {
|
|||
[SupportedOSPlatform ("macos11.0")]
|
||||
[SupportedOSPlatform ("maccatalyst")]
|
||||
#else
|
||||
[iOS (14,0)]
|
||||
[TV (14,0)]
|
||||
[Mac (11,0)]
|
||||
[iOS (14, 0)]
|
||||
[TV (14, 0)]
|
||||
[Mac (11, 0)]
|
||||
[NoWatch]
|
||||
#endif
|
||||
public static class MLCLossTypeExtensions {
|
||||
|
@ -103,9 +103,9 @@ namespace MLCompute {
|
|||
[SupportedOSPlatform ("macos11.0")]
|
||||
[SupportedOSPlatform ("maccatalyst")]
|
||||
#else
|
||||
[iOS (14,0)]
|
||||
[TV (14,0)]
|
||||
[Mac (11,0)]
|
||||
[iOS (14, 0)]
|
||||
[TV (14, 0)]
|
||||
[Mac (11, 0)]
|
||||
[NoWatch]
|
||||
#endif
|
||||
public static class MLCReductionTypeExtensions {
|
||||
|
@ -125,9 +125,9 @@ namespace MLCompute {
|
|||
[SupportedOSPlatform ("macos11.0")]
|
||||
[SupportedOSPlatform ("maccatalyst")]
|
||||
#else
|
||||
[iOS (14,0)]
|
||||
[TV (14,0)]
|
||||
[Mac (11,0)]
|
||||
[iOS (14, 0)]
|
||||
[TV (14, 0)]
|
||||
[Mac (11, 0)]
|
||||
[NoWatch]
|
||||
#endif
|
||||
public static class MLCPaddingTypeExtensions {
|
||||
|
@ -147,9 +147,9 @@ namespace MLCompute {
|
|||
[SupportedOSPlatform ("macos11.0")]
|
||||
[SupportedOSPlatform ("maccatalyst")]
|
||||
#else
|
||||
[iOS (14,0)]
|
||||
[TV (14,0)]
|
||||
[Mac (11,0)]
|
||||
[iOS (14, 0)]
|
||||
[TV (14, 0)]
|
||||
[Mac (11, 0)]
|
||||
[NoWatch]
|
||||
#endif
|
||||
public static class MLCConvolutionTypeExtensions {
|
||||
|
@ -169,9 +169,9 @@ namespace MLCompute {
|
|||
[SupportedOSPlatform ("macos11.0")]
|
||||
[SupportedOSPlatform ("maccatalyst")]
|
||||
#else
|
||||
[iOS (14,0)]
|
||||
[TV (14,0)]
|
||||
[Mac (11,0)]
|
||||
[iOS (14, 0)]
|
||||
[TV (14, 0)]
|
||||
[Mac (11, 0)]
|
||||
[NoWatch]
|
||||
#endif
|
||||
public static class MLCPoolingTypeExtensions {
|
||||
|
@ -191,9 +191,9 @@ namespace MLCompute {
|
|||
[SupportedOSPlatform ("macos11.0")]
|
||||
[SupportedOSPlatform ("maccatalyst")]
|
||||
#else
|
||||
[iOS (14,0)]
|
||||
[TV (14,0)]
|
||||
[Mac (11,0)]
|
||||
[iOS (14, 0)]
|
||||
[TV (14, 0)]
|
||||
[Mac (11, 0)]
|
||||
[NoWatch]
|
||||
#endif
|
||||
public static class MLCSoftmaxOperationExtensions {
|
||||
|
@ -213,9 +213,9 @@ namespace MLCompute {
|
|||
[SupportedOSPlatform ("macos11.0")]
|
||||
[SupportedOSPlatform ("maccatalyst")]
|
||||
#else
|
||||
[iOS (14,0)]
|
||||
[TV (14,0)]
|
||||
[Mac (11,0)]
|
||||
[iOS (14, 0)]
|
||||
[TV (14, 0)]
|
||||
[Mac (11, 0)]
|
||||
[NoWatch]
|
||||
#endif
|
||||
public static class MLCSampleModeExtensions {
|
||||
|
@ -235,9 +235,9 @@ namespace MLCompute {
|
|||
[SupportedOSPlatform ("macos11.0")]
|
||||
[SupportedOSPlatform ("maccatalyst")]
|
||||
#else
|
||||
[iOS (14,0)]
|
||||
[TV (14,0)]
|
||||
[Mac (11,0)]
|
||||
[iOS (14, 0)]
|
||||
[TV (14, 0)]
|
||||
[Mac (11, 0)]
|
||||
[NoWatch]
|
||||
#endif
|
||||
public static class MLCLstmResultModeExtensions {
|
||||
|
@ -257,9 +257,9 @@ namespace MLCompute {
|
|||
[SupportedOSPlatform ("ios14.5")]
|
||||
[SupportedOSPlatform ("maccatalyst")]
|
||||
#else
|
||||
[TV (14,5)]
|
||||
[Mac (11,3)]
|
||||
[iOS (14,5)]
|
||||
[TV (14, 5)]
|
||||
[Mac (11, 3)]
|
||||
[iOS (14, 5)]
|
||||
[NoWatch]
|
||||
#endif
|
||||
public static class MLCComparisonOperationExtensions {
|
||||
|
@ -280,10 +280,10 @@ namespace MLCompute {
|
|||
[SupportedOSPlatform ("maccatalyst15.0")]
|
||||
#else
|
||||
[NoWatch]
|
||||
[TV (15,0)]
|
||||
[Mac (12,0)]
|
||||
[iOS (15,0)]
|
||||
[MacCatalyst (15,0)]
|
||||
[TV (15, 0)]
|
||||
[Mac (12, 0)]
|
||||
[iOS (15, 0)]
|
||||
[MacCatalyst (15, 0)]
|
||||
#endif
|
||||
public static class MLCGradientClippingTypeExtensions {
|
||||
|
||||
|
|
|
@ -22,17 +22,17 @@ namespace MapKit {
|
|||
// NSUInteger -> MKDirectionsTypes.h
|
||||
[NoWatch]
|
||||
[Native]
|
||||
[TV (9,2)]
|
||||
[iOS (7,0)]
|
||||
[TV (9, 2)]
|
||||
[iOS (7, 0)]
|
||||
public enum MKDirectionsTransportType : ulong {
|
||||
Automobile = 1 << 0,
|
||||
Walking = 1 << 1,
|
||||
Transit = 1 << 2,
|
||||
Any = 0x0FFFFFFF,
|
||||
Walking = 1 << 1,
|
||||
Transit = 1 << 2,
|
||||
Any = 0x0FFFFFFF,
|
||||
}
|
||||
|
||||
// NSUInteger -> MKTypes.h
|
||||
[TV (9,2)]
|
||||
[TV (9, 2)]
|
||||
[NoWatch]
|
||||
[Native]
|
||||
public enum MKMapType : ulong {
|
||||
|
@ -41,14 +41,16 @@ namespace MapKit {
|
|||
Hybrid,
|
||||
SatelliteFlyover,
|
||||
HybridFlyover,
|
||||
[iOS (11,0)][TV (11,0)][Mac (10,13)]
|
||||
[iOS (11, 0)]
|
||||
[TV (11, 0)]
|
||||
[Mac (10, 13)]
|
||||
MutedStandard,
|
||||
}
|
||||
|
||||
// NSUInteger -> MKDistanceFormatter.h
|
||||
[Native]
|
||||
[TV (9,2)]
|
||||
[iOS (7,0)]
|
||||
[TV (9, 2)]
|
||||
[iOS (7, 0)]
|
||||
public enum MKDistanceFormatterUnits : ulong {
|
||||
Default,
|
||||
Metric,
|
||||
|
@ -58,8 +60,8 @@ namespace MapKit {
|
|||
|
||||
// NSUInteger -> MKDistanceFormatter.h
|
||||
[Native]
|
||||
[TV (9,2)]
|
||||
[iOS (7,0)]
|
||||
[TV (9, 2)]
|
||||
[iOS (7, 0)]
|
||||
public enum MKDistanceFormatterUnitStyle : ulong {
|
||||
Default = 0,
|
||||
Abbreviated,
|
||||
|
@ -67,17 +69,17 @@ namespace MapKit {
|
|||
}
|
||||
|
||||
// NSInteger -> MKMapView.h
|
||||
[TV (9,2)]
|
||||
[TV (9, 2)]
|
||||
[NoWatch]
|
||||
[Native]
|
||||
[iOS (7,0)]
|
||||
[iOS (7, 0)]
|
||||
public enum MKOverlayLevel : long {
|
||||
AboveRoads = 0,
|
||||
AboveLabels,
|
||||
}
|
||||
|
||||
// NSUInteger -> MKTypes.h
|
||||
[TV (9,2)]
|
||||
[TV (9, 2)]
|
||||
[NoWatch]
|
||||
[Native]
|
||||
[ErrorDomain ("MKErrorDomain")]
|
||||
|
@ -102,13 +104,13 @@ namespace MapKit {
|
|||
[NoTV]
|
||||
[NoWatch]
|
||||
[Native]
|
||||
[Deprecated (PlatformName.iOS, 9, 0, message : "Use 'MKPinAnnotationView.PinTintColor' instead.")]
|
||||
[Deprecated (PlatformName.iOS, 9, 0, message: "Use 'MKPinAnnotationView.PinTintColor' instead.")]
|
||||
public enum MKPinAnnotationColor : ulong {
|
||||
Red, Green, Purple
|
||||
}
|
||||
|
||||
// NSUInteger -> MKTypes.h
|
||||
[TV (9,2)]
|
||||
[TV (9, 2)]
|
||||
[NoWatch]
|
||||
[Native]
|
||||
public enum MKUserTrackingMode : ulong {
|
||||
|
@ -122,7 +124,9 @@ namespace MapKit {
|
|||
#endif
|
||||
}
|
||||
|
||||
[TV (9,2)][NoWatch][iOS (9,3)]
|
||||
[TV (9, 2)]
|
||||
[NoWatch]
|
||||
[iOS (9, 3)]
|
||||
[Native]
|
||||
[Deprecated (PlatformName.iOS, 13, 0, message: "Use 'MKLocalSearchCompleterResultType' instead.")]
|
||||
[Deprecated (PlatformName.MacOSX, 10, 15, message: "Use 'MKLocalSearchCompleterResultType' instead.")]
|
||||
|
@ -132,23 +136,34 @@ namespace MapKit {
|
|||
Only
|
||||
}
|
||||
|
||||
[TV (11,0)][NoWatch][iOS (11,0)][Mac (10,13)]
|
||||
[TV (11, 0)]
|
||||
[NoWatch]
|
||||
[iOS (11, 0)]
|
||||
[Mac (10, 13)]
|
||||
[Native]
|
||||
public enum MKAnnotationViewCollisionMode : long {
|
||||
Rectangle,
|
||||
Circle,
|
||||
[TV (14,0)][iOS (14,0)][Mac (11,0)]
|
||||
[TV (14, 0)]
|
||||
[iOS (14, 0)]
|
||||
[Mac (11, 0)]
|
||||
None,
|
||||
}
|
||||
|
||||
[TV (11,0)][NoWatch][iOS (11,0)][NoMac]
|
||||
[TV (11, 0)]
|
||||
[NoWatch]
|
||||
[iOS (11, 0)]
|
||||
[NoMac]
|
||||
[Native]
|
||||
public enum MKScaleViewAlignment : long {
|
||||
Leading,
|
||||
Trailing,
|
||||
}
|
||||
|
||||
[TV (11,0)][NoWatch][iOS (11,0)][Mac (10,13)]
|
||||
[TV (11, 0)]
|
||||
[NoWatch]
|
||||
[iOS (11, 0)]
|
||||
[Mac (10, 13)]
|
||||
[Native]
|
||||
public enum MKFeatureVisibility : long {
|
||||
Adaptive,
|
||||
|
@ -157,72 +172,64 @@ namespace MapKit {
|
|||
}
|
||||
|
||||
[Flags]
|
||||
[TV (13,0), NoWatch, Mac (10,15), iOS (13,0)]
|
||||
[TV (13, 0), NoWatch, Mac (10, 15), iOS (13, 0)]
|
||||
[Native]
|
||||
public enum MKLocalSearchCompleterResultType : ulong
|
||||
{
|
||||
public enum MKLocalSearchCompleterResultType : ulong {
|
||||
Address = 1 << 0,
|
||||
PointOfInterest = 1 << 1,
|
||||
Query = 1 << 2,
|
||||
}
|
||||
|
||||
[Flags]
|
||||
[TV (13,0), NoWatch, Mac (10,15), iOS (13,0)]
|
||||
[TV (13, 0), NoWatch, Mac (10, 15), iOS (13, 0)]
|
||||
[Native]
|
||||
public enum MKLocalSearchResultType : ulong
|
||||
{
|
||||
public enum MKLocalSearchResultType : ulong {
|
||||
Address = 1 << 0,
|
||||
PointOfInterest = 1 << 1,
|
||||
}
|
||||
|
||||
[Mac (13,0), iOS (16,0), MacCatalyst (16,0), NoWatch, TV (16,0)]
|
||||
[Mac (13, 0), iOS (16, 0), MacCatalyst (16, 0), NoWatch, TV (16, 0)]
|
||||
[Native]
|
||||
public enum MKDirectionsRoutePreference : long
|
||||
{
|
||||
public enum MKDirectionsRoutePreference : long {
|
||||
Any = 0,
|
||||
Avoid,
|
||||
}
|
||||
|
||||
[Flags]
|
||||
[NoMac, iOS (16,0), MacCatalyst (16,0), NoWatch, NoTV]
|
||||
[NoMac, iOS (16, 0), MacCatalyst (16, 0), NoWatch, NoTV]
|
||||
[Native]
|
||||
public enum MKMapFeatureOptions : long
|
||||
{
|
||||
PointsOfInterest = 1 << (int)MKMapFeatureType.PointOfInterest,
|
||||
Territories = 1 << (int)MKMapFeatureType.Territory,
|
||||
PhysicalFeatures = 1 << (int)MKMapFeatureType.PhysicalFeature,
|
||||
public enum MKMapFeatureOptions : long {
|
||||
PointsOfInterest = 1 << (int) MKMapFeatureType.PointOfInterest,
|
||||
Territories = 1 << (int) MKMapFeatureType.Territory,
|
||||
PhysicalFeatures = 1 << (int) MKMapFeatureType.PhysicalFeature,
|
||||
}
|
||||
|
||||
[Mac (13,0), iOS (16,0), MacCatalyst (16,0), NoWatch, NoTV]
|
||||
[Mac (13, 0), iOS (16, 0), MacCatalyst (16, 0), NoWatch, NoTV]
|
||||
[Native]
|
||||
public enum MKLookAroundBadgePosition : long
|
||||
{
|
||||
public enum MKLookAroundBadgePosition : long {
|
||||
TopLeading = 0,
|
||||
TopTrailing,
|
||||
BottomTrailing,
|
||||
}
|
||||
|
||||
[Mac (13,0), iOS (16,0), MacCatalyst (16,0), NoWatch, TV (16,0)]
|
||||
[Mac (13, 0), iOS (16, 0), MacCatalyst (16, 0), NoWatch, TV (16, 0)]
|
||||
[Native]
|
||||
public enum MKMapElevationStyle : long
|
||||
{
|
||||
public enum MKMapElevationStyle : long {
|
||||
Flat = 0,
|
||||
Realistic,
|
||||
}
|
||||
|
||||
[NoMac, iOS (16,0), MacCatalyst (16,0), NoWatch, NoTV]
|
||||
[NoMac, iOS (16, 0), MacCatalyst (16, 0), NoWatch, NoTV]
|
||||
[Native]
|
||||
public enum MKMapFeatureType : long
|
||||
{
|
||||
public enum MKMapFeatureType : long {
|
||||
PointOfInterest = 0,
|
||||
Territory,
|
||||
PhysicalFeature,
|
||||
}
|
||||
|
||||
[Mac (13,0), iOS (16,0), MacCatalyst (16,0), NoWatch, TV (16,0)]
|
||||
[Mac (13, 0), iOS (16, 0), MacCatalyst (16, 0), NoWatch, TV (16, 0)]
|
||||
[Native]
|
||||
public enum MKStandardMapEmphasisStyle : long
|
||||
{
|
||||
public enum MKStandardMapEmphasisStyle : long {
|
||||
Default = 0,
|
||||
Muted,
|
||||
}
|
||||
|
|
|
@ -13,10 +13,10 @@ namespace MapKit {
|
|||
[SupportedOSPlatform ("macos10.13")]
|
||||
[SupportedOSPlatform ("maccatalyst")]
|
||||
#else
|
||||
[TV (11,0)]
|
||||
[TV (11, 0)]
|
||||
[NoWatch]
|
||||
[iOS (11,0)]
|
||||
[Mac (10,13)]
|
||||
[iOS (11, 0)]
|
||||
[Mac (10, 13)]
|
||||
#endif
|
||||
#if WATCH && !NET
|
||||
[Obsolete ("This API is not available on this platform.")]
|
||||
|
|
|
@ -44,7 +44,7 @@ namespace MapKit {
|
|||
if (points.Length == 0)
|
||||
return PolylineWithPoints (IntPtr.Zero, 0);
|
||||
|
||||
fixed (MKMapPoint *first = &points [0]){
|
||||
fixed (MKMapPoint* first = &points [0]) {
|
||||
return PolylineWithPoints ((IntPtr) first, points.Length);
|
||||
}
|
||||
}
|
||||
|
@ -56,7 +56,7 @@ namespace MapKit {
|
|||
if (coords.Length == 0)
|
||||
return PolylineWithCoordinates (IntPtr.Zero, 0);
|
||||
|
||||
fixed (CLLocationCoordinate2D *first = &coords [0]){
|
||||
fixed (CLLocationCoordinate2D* first = &coords [0]) {
|
||||
return PolylineWithCoordinates ((IntPtr) first, coords.Length);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -45,13 +45,13 @@ namespace MapKit {
|
|||
tcs.SetCanceled ();
|
||||
} else {
|
||||
var tcr = token.Register (() => { this.Cancel (); tcs.TrySetCanceled (); });
|
||||
Start((response, error) => {
|
||||
Start ((response, error) => {
|
||||
tcr.Dispose ();
|
||||
if (token.IsCancellationRequested) {
|
||||
tcs.TrySetCanceled ();
|
||||
} else {
|
||||
if (error is not null)
|
||||
tcs.SetException (new NSErrorException(error));
|
||||
tcs.SetException (new NSErrorException (error));
|
||||
else
|
||||
tcs.SetResult (response);
|
||||
}
|
||||
|
|
|
@ -26,10 +26,10 @@ namespace MapKit {
|
|||
[SupportedOSPlatform ("maccatalyst")]
|
||||
[UnsupportedOSPlatform ("tvos")]
|
||||
#else
|
||||
[iOS (10,0)]
|
||||
[iOS (10, 0)]
|
||||
[NoTV]
|
||||
[Watch (3,0)]
|
||||
[Mac (10,12)]
|
||||
[Watch (3, 0)]
|
||||
[Mac (10, 12)]
|
||||
#endif
|
||||
Default
|
||||
}
|
||||
|
@ -39,8 +39,7 @@ namespace MapKit {
|
|||
[SupportedOSPlatform ("maccatalyst")]
|
||||
[SupportedOSPlatform ("macos")]
|
||||
#endif
|
||||
public class MKLaunchOptions
|
||||
{
|
||||
public class MKLaunchOptions {
|
||||
public MKDirectionsMode? DirectionsMode { get; set; }
|
||||
#if !WATCH // MapType: __WATCHOS_PROHIBITED
|
||||
public MKMapType? MapType { get; set; }
|
||||
|
@ -58,7 +57,7 @@ namespace MapKit {
|
|||
[SupportedOSPlatform ("maccatalyst")]
|
||||
[SupportedOSPlatform ("macos")]
|
||||
#else
|
||||
[iOS (7,0)]
|
||||
[iOS (7, 0)]
|
||||
#endif
|
||||
public MKMapCamera? Camera { get; set; }
|
||||
#endif
|
||||
|
@ -82,10 +81,10 @@ namespace MapKit {
|
|||
var keys = new NSObject [n];
|
||||
var values = new NSObject [n];
|
||||
int i = 0;
|
||||
if (DirectionsMode.HasValue){
|
||||
if (DirectionsMode.HasValue) {
|
||||
keys [i] = MKMapItem.MKLaunchOptionsDirectionsModeKey;
|
||||
NSString v = MKMapItem.MKLaunchOptionsDirectionsModeDriving;
|
||||
switch (DirectionsMode.Value){
|
||||
switch (DirectionsMode.Value) {
|
||||
case MKDirectionsMode.Driving:
|
||||
v = MKMapItem.MKLaunchOptionsDirectionsModeDriving;
|
||||
break;
|
||||
|
@ -105,21 +104,21 @@ namespace MapKit {
|
|||
}
|
||||
|
||||
#if !WATCH // MapType: __WATCHOS_PROHIBITED
|
||||
if (MapType.HasValue){
|
||||
if (MapType.HasValue) {
|
||||
keys [i] = MKMapItem.MKLaunchOptionsMapTypeKey;
|
||||
values [i++] = new NSNumber ((int) MapType.Value);
|
||||
}
|
||||
#endif
|
||||
if (MapCenter.HasValue){
|
||||
if (MapCenter.HasValue) {
|
||||
keys [i] = MKMapItem.MKLaunchOptionsMapCenterKey;
|
||||
values [i++] = NSValue.FromMKCoordinate (MapCenter.Value);
|
||||
}
|
||||
if (MapSpan.HasValue){
|
||||
if (MapSpan.HasValue) {
|
||||
keys [i] = MKMapItem.MKLaunchOptionsMapSpanKey;
|
||||
values [i++] = NSValue.FromMKCoordinateSpan (MapSpan.Value);
|
||||
}
|
||||
#if !WATCH // ShowsTraffic: __WATCHOS_PROHIBITED
|
||||
if (ShowTraffic.HasValue){
|
||||
if (ShowTraffic.HasValue) {
|
||||
keys [i] = MKMapItem.MKLaunchOptionsShowsTrafficKey;
|
||||
values [i++] = new NSNumber (ShowTraffic.Value);
|
||||
}
|
||||
|
|
|
@ -12,7 +12,7 @@ namespace MapKit {
|
|||
public partial class MKMultiPoint {
|
||||
public unsafe MKMapPoint [] Points {
|
||||
get {
|
||||
var source = (MKMapPoint *) _Points;
|
||||
var source = (MKMapPoint*) _Points;
|
||||
nint n = PointCount;
|
||||
var result = new MKMapPoint [n];
|
||||
for (int i = 0; i < n; i++)
|
||||
|
@ -26,7 +26,7 @@ namespace MapKit {
|
|||
{
|
||||
var range = new NSRange (first, count);
|
||||
var target = new CLLocationCoordinate2D [count];
|
||||
fixed (CLLocationCoordinate2D *firstE = &target [0]){
|
||||
fixed (CLLocationCoordinate2D* firstE = &target [0]) {
|
||||
GetCoords ((IntPtr) firstE, range);
|
||||
}
|
||||
return target;
|
||||
|
|
|
@ -23,8 +23,8 @@ namespace MapKit {
|
|||
[UnsupportedOSPlatform ("ios7.0")]
|
||||
[ObsoletedOSPlatform ("ios7.0", "Use 'MKOverlayRenderer' instead.")]
|
||||
#else
|
||||
[TV (9,2)]
|
||||
[Mac (10,9)]
|
||||
[TV (9, 2)]
|
||||
[Mac (10, 9)]
|
||||
#endif
|
||||
[DllImport (Constants.MapKitLibrary)]
|
||||
public static extern nfloat MKRoadWidthAtZoomScale (/* MKZoomScale */ nfloat zoomScale);
|
||||
|
|
|
@ -7,17 +7,17 @@ using ObjCRuntime;
|
|||
|
||||
namespace MapKit {
|
||||
|
||||
public enum MKPointOfInterestFilterType {
|
||||
public enum MKPointOfInterestFilterType {
|
||||
Including,
|
||||
Excluding,
|
||||
}
|
||||
|
||||
public partial class MKPointOfInterestFilter {
|
||||
public MKPointOfInterestFilter (MKPointOfInterestCategory[] categories) : this (categories, MKPointOfInterestFilterType.Including)
|
||||
public MKPointOfInterestFilter (MKPointOfInterestCategory [] categories) : this (categories, MKPointOfInterestFilterType.Including)
|
||||
{
|
||||
}
|
||||
|
||||
public MKPointOfInterestFilter (MKPointOfInterestCategory[] categories, MKPointOfInterestFilterType type)
|
||||
public MKPointOfInterestFilter (MKPointOfInterestCategory [] categories, MKPointOfInterestFilterType type)
|
||||
{
|
||||
// two different `init*` would share the same C# signature
|
||||
switch (type) {
|
||||
|
|
|
@ -18,7 +18,7 @@ namespace MapKit {
|
|||
if (points.Length == 0)
|
||||
return _FromPoints (IntPtr.Zero, 0);
|
||||
|
||||
fixed (MKMapPoint *first = &points [0]){
|
||||
fixed (MKMapPoint* first = &points [0]) {
|
||||
return _FromPoints ((IntPtr) first, points.Length);
|
||||
}
|
||||
}
|
||||
|
@ -30,7 +30,7 @@ namespace MapKit {
|
|||
if (points.Length == 0)
|
||||
return _FromPoints (IntPtr.Zero, 0);
|
||||
|
||||
fixed (MKMapPoint *first = &points [0]){
|
||||
fixed (MKMapPoint* first = &points [0]) {
|
||||
return _FromPoints ((IntPtr) first, points.Length, interiorPolygons);
|
||||
}
|
||||
}
|
||||
|
@ -42,7 +42,7 @@ namespace MapKit {
|
|||
if (coords.Length == 0)
|
||||
return _FromCoordinates (IntPtr.Zero, 0);
|
||||
|
||||
fixed (CLLocationCoordinate2D *first = &coords [0]){
|
||||
fixed (CLLocationCoordinate2D* first = &coords [0]) {
|
||||
return _FromCoordinates ((IntPtr) first, coords.Length);
|
||||
}
|
||||
}
|
||||
|
@ -54,7 +54,7 @@ namespace MapKit {
|
|||
if (coords.Length == 0)
|
||||
return _FromCoordinates (IntPtr.Zero, 0);
|
||||
|
||||
fixed (CLLocationCoordinate2D *first = &coords [0]){
|
||||
fixed (CLLocationCoordinate2D* first = &coords [0]) {
|
||||
return _FromCoordinates ((IntPtr) first, coords.Length, interiorPolygons);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -18,7 +18,7 @@ namespace MapKit {
|
|||
if (points.Length == 0)
|
||||
return _FromPoints (IntPtr.Zero, 0);
|
||||
|
||||
fixed (MKMapPoint *first = &points [0]){
|
||||
fixed (MKMapPoint* first = &points [0]) {
|
||||
return _FromPoints ((IntPtr) first, points.Length);
|
||||
}
|
||||
}
|
||||
|
@ -30,7 +30,7 @@ namespace MapKit {
|
|||
if (coords.Length == 0)
|
||||
return _FromCoordinates (IntPtr.Zero, 0);
|
||||
|
||||
fixed (CLLocationCoordinate2D *first = &coords [0]){
|
||||
fixed (CLLocationCoordinate2D* first = &coords [0]) {
|
||||
return _FromCoordinates ((IntPtr) first, coords.Length);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -28,8 +28,7 @@ namespace MapKit {
|
|||
[SupportedOSPlatform ("tvos")]
|
||||
#endif
|
||||
[StructLayout (LayoutKind.Sequential)]
|
||||
public struct MKTileOverlayPath
|
||||
{
|
||||
public struct MKTileOverlayPath {
|
||||
public /* NSInteger */ nint X;
|
||||
public /* NSInteger */ nint Y;
|
||||
public /* NSInteger */ nint Z;
|
||||
|
@ -70,7 +69,7 @@ namespace MapKit {
|
|||
[SupportedOSPlatform ("maccatalyst")]
|
||||
[SupportedOSPlatform ("tvos")]
|
||||
#else
|
||||
[Mac (10,9)]
|
||||
[Mac (10, 9)]
|
||||
#endif
|
||||
[StructLayout (LayoutKind.Sequential)]
|
||||
public struct MKCoordinateRegion {
|
||||
|
@ -85,10 +84,10 @@ namespace MapKit {
|
|||
}
|
||||
|
||||
// note: CLLocationDistance is double - see CLLocation.h
|
||||
[DllImport (Constants.MapKitLibrary, EntryPoint="MKCoordinateRegionMakeWithDistance")]
|
||||
[DllImport (Constants.MapKitLibrary, EntryPoint = "MKCoordinateRegionMakeWithDistance")]
|
||||
extern static public MKCoordinateRegion FromDistance (CLLocationCoordinate2D center, /* CLLocationDistance */ double latitudinalMeters, /* CLLocationDistance */ double longitudinalMeters);
|
||||
|
||||
[DllImport (Constants.MapKitLibrary, EntryPoint="MKCoordinateRegionForMapRect")]
|
||||
[DllImport (Constants.MapKitLibrary, EntryPoint = "MKCoordinateRegionForMapRect")]
|
||||
extern static public MKCoordinateRegion FromMapRect (MKMapRect rect);
|
||||
|
||||
public override string ToString ()
|
||||
|
@ -104,16 +103,16 @@ namespace MapKit {
|
|||
[SupportedOSPlatform ("maccatalyst")]
|
||||
[SupportedOSPlatform ("tvos")]
|
||||
#else
|
||||
[Mac (10,9)]
|
||||
[Mac (10, 9)]
|
||||
#endif
|
||||
[StructLayout (LayoutKind.Sequential)]
|
||||
public struct MKMapPoint {
|
||||
public double X, Y;
|
||||
|
||||
[DllImport (Constants.MapKitLibrary, EntryPoint="MKMapPointForCoordinate")]
|
||||
[DllImport (Constants.MapKitLibrary, EntryPoint = "MKMapPointForCoordinate")]
|
||||
public extern static MKMapPoint FromCoordinate (CLLocationCoordinate2D coordinate);
|
||||
|
||||
[DllImport (Constants.MapKitLibrary, EntryPoint="MKCoordinateForMapPoint")]
|
||||
[DllImport (Constants.MapKitLibrary, EntryPoint = "MKCoordinateForMapPoint")]
|
||||
public extern static CLLocationCoordinate2D ToCoordinate (MKMapPoint mapPoint);
|
||||
|
||||
// MKMapPointMake
|
||||
|
@ -136,7 +135,7 @@ namespace MapKit {
|
|||
|
||||
public override bool Equals (object? other)
|
||||
{
|
||||
if (other is MKMapPoint){
|
||||
if (other is MKMapPoint) {
|
||||
var omap = (MKMapPoint) other;
|
||||
|
||||
return omap.X == X && omap.Y == Y;
|
||||
|
@ -180,9 +179,9 @@ namespace MapKit {
|
|||
[SupportedOSPlatform ("maccatalyst")]
|
||||
[SupportedOSPlatform ("macos")]
|
||||
#else
|
||||
[TV (9,2)]
|
||||
[TV (9, 2)]
|
||||
#endif
|
||||
public static MKMapSize World { get { return new MKMapSize (0x10000000, 0x10000000); }}
|
||||
public static MKMapSize World { get { return new MKMapSize (0x10000000, 0x10000000); } }
|
||||
|
||||
// MKMapSizeEqualToSize
|
||||
public static bool operator == (MKMapSize a, MKMapSize b)
|
||||
|
@ -224,7 +223,7 @@ namespace MapKit {
|
|||
[SupportedOSPlatform ("maccatalyst")]
|
||||
[SupportedOSPlatform ("tvos")]
|
||||
#else
|
||||
[Mac (10,9)]
|
||||
[Mac (10, 9)]
|
||||
#endif
|
||||
[StructLayout (LayoutKind.Sequential)]
|
||||
public struct MKMapRect {
|
||||
|
@ -234,7 +233,7 @@ namespace MapKit {
|
|||
[SupportedOSPlatform ("ios")]
|
||||
[SupportedOSPlatform ("maccatalyst")]
|
||||
#else
|
||||
[TV (9,2)]
|
||||
[TV (9, 2)]
|
||||
#endif
|
||||
public static readonly MKMapRect Null = new MKMapRect (double.PositiveInfinity, double.PositiveInfinity, 0, 0);
|
||||
|
||||
|
@ -332,7 +331,7 @@ namespace MapKit {
|
|||
[SupportedOSPlatform ("ios")]
|
||||
[SupportedOSPlatform ("maccatalyst")]
|
||||
#else
|
||||
[TV (9,2)]
|
||||
[TV (9, 2)]
|
||||
#endif
|
||||
public MKMapRect World {
|
||||
get {
|
||||
|
@ -372,16 +371,16 @@ namespace MapKit {
|
|||
return string.Format ("{{{0}, {1}}}", Origin, Size);
|
||||
}
|
||||
|
||||
[DllImport (Constants.MapKitLibrary, EntryPoint="MKMapRectContainsPoint")]
|
||||
[DllImport (Constants.MapKitLibrary, EntryPoint = "MKMapRectContainsPoint")]
|
||||
[return: MarshalAs (UnmanagedType.I1)]
|
||||
static extern bool MKMapRectContainsPoint (MKMapRect rect, MKMapPoint point);
|
||||
static extern bool MKMapRectContainsPoint (MKMapRect rect, MKMapPoint point);
|
||||
|
||||
public bool Contains (MKMapPoint point)
|
||||
{
|
||||
return MKMapRectContainsPoint (this, point);
|
||||
}
|
||||
|
||||
[DllImport (Constants.MapKitLibrary, EntryPoint="MKMapRectContainsRect")]
|
||||
[DllImport (Constants.MapKitLibrary, EntryPoint = "MKMapRectContainsRect")]
|
||||
[return: MarshalAs (UnmanagedType.I1)]
|
||||
static extern bool MKMapRectContainsRect (MKMapRect rect1, MKMapRect rect2);
|
||||
|
||||
|
@ -390,17 +389,17 @@ namespace MapKit {
|
|||
return MKMapRectContainsRect (this, rect);
|
||||
}
|
||||
|
||||
[DllImport (Constants.MapKitLibrary, EntryPoint="MKMapRectUnion")]
|
||||
[DllImport (Constants.MapKitLibrary, EntryPoint = "MKMapRectUnion")]
|
||||
static public extern MKMapRect Union (MKMapRect rect1, MKMapRect rect2);
|
||||
|
||||
[DllImport (Constants.MapKitLibrary, EntryPoint="MKMapRectIntersection")]
|
||||
[DllImport (Constants.MapKitLibrary, EntryPoint = "MKMapRectIntersection")]
|
||||
static public extern MKMapRect Intersection (MKMapRect rect1, MKMapRect rect2);
|
||||
|
||||
[DllImport (Constants.MapKitLibrary, EntryPoint="MKMapRectIntersectsRect")]
|
||||
[DllImport (Constants.MapKitLibrary, EntryPoint = "MKMapRectIntersectsRect")]
|
||||
[return: MarshalAs (UnmanagedType.I1)]
|
||||
static public extern bool Intersects (MKMapRect rect1, MKMapRect rect2);
|
||||
|
||||
[DllImport (Constants.MapKitLibrary, EntryPoint="MKMapRectInset")]
|
||||
[DllImport (Constants.MapKitLibrary, EntryPoint = "MKMapRectInset")]
|
||||
static extern MKMapRect MKMapRectInset (MKMapRect rect, double dx, double dy);
|
||||
|
||||
public MKMapRect Inset (double dx, double dy)
|
||||
|
@ -408,7 +407,7 @@ namespace MapKit {
|
|||
return MKMapRectInset (this, dx, dy);
|
||||
}
|
||||
|
||||
[DllImport (Constants.MapKitLibrary, EntryPoint="MKMapRectOffset")]
|
||||
[DllImport (Constants.MapKitLibrary, EntryPoint = "MKMapRectOffset")]
|
||||
static extern MKMapRect MKMapRectOffset (MKMapRect rect, double dx, double dy);
|
||||
|
||||
public MKMapRect Offset (double dx, double dy)
|
||||
|
@ -416,7 +415,7 @@ namespace MapKit {
|
|||
return MKMapRectOffset (this, dx, dy);
|
||||
}
|
||||
|
||||
[DllImport (Constants.MapKitLibrary, EntryPoint="MKMapRectDivide")]
|
||||
[DllImport (Constants.MapKitLibrary, EntryPoint = "MKMapRectDivide")]
|
||||
static extern void MKMapRectDivide (MKMapRect rect, out MKMapRect slice, out MKMapRect remainder, double amount, CGRectEdge edge);
|
||||
|
||||
public MKMapRect Divide (double amount, CGRectEdge edge, out MKMapRect remainder)
|
||||
|
@ -426,7 +425,7 @@ namespace MapKit {
|
|||
return slice;
|
||||
}
|
||||
|
||||
[DllImport (Constants.MapKitLibrary, EntryPoint="MKMapRectSpans180thMeridian")]
|
||||
[DllImport (Constants.MapKitLibrary, EntryPoint = "MKMapRectSpans180thMeridian")]
|
||||
[return: MarshalAs (UnmanagedType.I1)]
|
||||
static extern bool MKMapRectSpans180thMeridian (MKMapRect rect);
|
||||
|
||||
|
@ -434,7 +433,7 @@ namespace MapKit {
|
|||
get { return MKMapRectSpans180thMeridian (this); }
|
||||
}
|
||||
|
||||
[DllImport (Constants.MapKitLibrary, EntryPoint="MKMapRectRemainder")]
|
||||
[DllImport (Constants.MapKitLibrary, EntryPoint = "MKMapRectRemainder")]
|
||||
static extern MKMapRect MKMapRectRemainder (MKMapRect rect);
|
||||
|
||||
public MKMapRect Remainder ()
|
||||
|
@ -450,17 +449,17 @@ namespace MapKit {
|
|||
[SupportedOSPlatform ("maccatalyst")]
|
||||
[SupportedOSPlatform ("tvos")]
|
||||
#else
|
||||
[Mac (10,9)]
|
||||
[Mac (10, 9)]
|
||||
#endif
|
||||
public static class MKGeometry {
|
||||
|
||||
[DllImport (Constants.MapKitLibrary, EntryPoint="MKMapPointsPerMeterAtLatitude")]
|
||||
[DllImport (Constants.MapKitLibrary, EntryPoint = "MKMapPointsPerMeterAtLatitude")]
|
||||
static extern public double MapPointsPerMeterAtLatitude (/* CLLocationDegrees */ double latitude);
|
||||
|
||||
[DllImport (Constants.MapKitLibrary, EntryPoint="MKMetersPerMapPointAtLatitude")]
|
||||
[DllImport (Constants.MapKitLibrary, EntryPoint = "MKMetersPerMapPointAtLatitude")]
|
||||
static extern public /* CLLocationDistance */ double MetersPerMapPointAtLatitude (/* CLLocationDegrees */ double latitude);
|
||||
|
||||
[DllImport (Constants.MapKitLibrary, EntryPoint="MKMetersBetweenMapPoints")]
|
||||
[DllImport (Constants.MapKitLibrary, EntryPoint = "MKMetersBetweenMapPoints")]
|
||||
static extern public /* CLLocationDistance */ double MetersBetweenMapPoints (MKMapPoint a, MKMapPoint b);
|
||||
}
|
||||
|
||||
|
|
|
@ -18,14 +18,16 @@ using Foundation;
|
|||
namespace MediaAccessibility {
|
||||
|
||||
[Native]
|
||||
[iOS (7,0)][Mac (10,9)]
|
||||
[iOS (7, 0)]
|
||||
[Mac (10, 9)]
|
||||
public enum MACaptionAppearanceDomain : long {
|
||||
Default = 0,
|
||||
User = 1,
|
||||
}
|
||||
|
||||
[Native]
|
||||
[iOS (7,0)][Mac (10,9)]
|
||||
[iOS (7, 0)]
|
||||
[Mac (10, 9)]
|
||||
public enum MACaptionAppearanceDisplayType : long {
|
||||
ForcedOnly = 0,
|
||||
Automatic = 1,
|
||||
|
@ -33,14 +35,16 @@ namespace MediaAccessibility {
|
|||
}
|
||||
|
||||
[Native]
|
||||
[iOS (7,0)][Mac (10,9)]
|
||||
[iOS (7, 0)]
|
||||
[Mac (10, 9)]
|
||||
public enum MACaptionAppearanceBehavior : long {
|
||||
UseValue = 0,
|
||||
UseContentIfAvailable = 1,
|
||||
}
|
||||
|
||||
[Native]
|
||||
[iOS (7,0)][Mac (10,9)]
|
||||
[iOS (7, 0)]
|
||||
[Mac (10, 9)]
|
||||
public enum MACaptionAppearanceFontStyle : long {
|
||||
Default = 0,
|
||||
MonospacedWithSerif = 1,
|
||||
|
@ -53,7 +57,8 @@ namespace MediaAccessibility {
|
|||
}
|
||||
|
||||
[Native]
|
||||
[iOS (7,0)][Mac (10,9)]
|
||||
[iOS (7, 0)]
|
||||
[Mac (10, 9)]
|
||||
public enum MACaptionAppearanceTextEdgeStyle : long {
|
||||
Undefined = 0,
|
||||
None = 1,
|
||||
|
|
|
@ -17,9 +17,9 @@ namespace MediaAccessibility {
|
|||
[SupportedOSPlatform ("ios13.0")]
|
||||
[SupportedOSPlatform ("maccatalyst")]
|
||||
#else
|
||||
[TV (13,0)]
|
||||
[Mac (10,15)]
|
||||
[iOS (13,0)]
|
||||
[TV (13, 0)]
|
||||
[Mac (10, 15)]
|
||||
[iOS (13, 0)]
|
||||
#endif
|
||||
public static partial class MAImageCaptioning {
|
||||
|
||||
|
|
|
@ -25,8 +25,8 @@ namespace MediaAccessibility {
|
|||
[SupportedOSPlatform ("maccatalyst")]
|
||||
[SupportedOSPlatform ("tvos")]
|
||||
#else
|
||||
[iOS (7,0)]
|
||||
[Mac (10,9)]
|
||||
[iOS (7, 0)]
|
||||
[Mac (10, 9)]
|
||||
#endif
|
||||
public static partial class MACaptionAppearance {
|
||||
|
||||
|
@ -54,7 +54,7 @@ namespace MediaAccessibility {
|
|||
|
||||
[DllImport (Constants.MediaAccessibilityLibrary)]
|
||||
[return: MarshalAs (UnmanagedType.I1)]
|
||||
static extern bool MACaptionAppearanceAddSelectedLanguage (nint domain,
|
||||
static extern bool MACaptionAppearanceAddSelectedLanguage (nint domain,
|
||||
/* CFStringRef __nonnull */ IntPtr language);
|
||||
|
||||
public static bool AddSelectedLanguage (MACaptionAppearanceDomain domain, string language)
|
||||
|
@ -73,7 +73,7 @@ namespace MediaAccessibility {
|
|||
using (var langs = new CFArray (MACaptionAppearanceCopySelectedLanguages ((int) domain), owns: true)) {
|
||||
var languages = new string? [langs.Count];
|
||||
for (int i = 0; i < langs.Count; i++) {
|
||||
languages[i] = CFString.FromHandle (langs.GetValue (i));
|
||||
languages [i] = CFString.FromHandle (langs.GetValue (i));
|
||||
}
|
||||
return languages;
|
||||
}
|
||||
|
@ -103,7 +103,7 @@ namespace MediaAccessibility {
|
|||
using (var chars = new CFArray (MACaptionAppearanceCopyPreferredCaptioningMediaCharacteristics ((int) domain), owns: true)) {
|
||||
NSString [] characteristics = new NSString [chars.Count];
|
||||
for (int i = 0; i < chars.Count; i++) {
|
||||
characteristics[i] = new NSString (chars.GetValue (i));
|
||||
characteristics [i] = new NSString (chars.GetValue (i));
|
||||
}
|
||||
return characteristics;
|
||||
}
|
||||
|
@ -234,9 +234,9 @@ namespace MediaAccessibility {
|
|||
[SupportedOSPlatform ("ios13.0")]
|
||||
[SupportedOSPlatform ("maccatalyst")]
|
||||
#else
|
||||
[TV (13,0)]
|
||||
[Mac (10,15)]
|
||||
[iOS (13,0)]
|
||||
[TV (13, 0)]
|
||||
[Mac (10, 15)]
|
||||
[iOS (13, 0)]
|
||||
#endif
|
||||
[DllImport (Constants.MediaAccessibilityLibrary)]
|
||||
static extern void MACaptionAppearanceDidDisplayCaptions (IntPtr /* CFArratRef */ strings);
|
||||
|
@ -247,11 +247,11 @@ namespace MediaAccessibility {
|
|||
[SupportedOSPlatform ("ios13.0")]
|
||||
[SupportedOSPlatform ("maccatalyst")]
|
||||
#else
|
||||
[TV (13,0)]
|
||||
[Mac (10,15)]
|
||||
[iOS (13,0)]
|
||||
[TV (13, 0)]
|
||||
[Mac (10, 15)]
|
||||
[iOS (13, 0)]
|
||||
#endif
|
||||
public static void DidDisplayCaptions (string[] strings)
|
||||
public static void DidDisplayCaptions (string [] strings)
|
||||
{
|
||||
if ((strings is null) || (strings.Length == 0))
|
||||
MACaptionAppearanceDidDisplayCaptions (IntPtr.Zero);
|
||||
|
@ -267,11 +267,11 @@ namespace MediaAccessibility {
|
|||
[SupportedOSPlatform ("ios13.0")]
|
||||
[SupportedOSPlatform ("maccatalyst")]
|
||||
#else
|
||||
[TV (13,0)]
|
||||
[Mac (10,15)]
|
||||
[iOS (13,0)]
|
||||
[TV (13, 0)]
|
||||
[Mac (10, 15)]
|
||||
[iOS (13, 0)]
|
||||
#endif
|
||||
public static void DidDisplayCaptions (NSAttributedString[] strings)
|
||||
public static void DidDisplayCaptions (NSAttributedString [] strings)
|
||||
{
|
||||
// CFAttributedString is “toll-free bridged” with its Foundation counterpart, NSAttributedString.
|
||||
// https://developer.apple.com/documentation/corefoundation/cfattributedstring?language=objc
|
||||
|
@ -297,15 +297,15 @@ namespace MediaAccessibility {
|
|||
[SupportedOSPlatform ("maccatalyst")]
|
||||
[SupportedOSPlatform ("tvos")]
|
||||
#else
|
||||
[iOS (8,0)]
|
||||
[Mac (10,10)]
|
||||
[iOS (8, 0)]
|
||||
[Mac (10, 10)]
|
||||
#endif
|
||||
[DllImport (Constants.MediaAccessibilityLibrary)]
|
||||
static extern unsafe IntPtr /* CFArrayRef __nonnull */ MAAudibleMediaCopyPreferredCharacteristics ();
|
||||
|
||||
// according to webkit source code (the only use I could find) this is an array of CFString
|
||||
// https://github.com/WebKit/webkit/blob/master/Source/WebCore/page/CaptionUserPreferencesMediaAF.cpp
|
||||
static public string?[]? GetPreferredCharacteristics ()
|
||||
static public string? []? GetPreferredCharacteristics ()
|
||||
{
|
||||
var handle = MAAudibleMediaCopyPreferredCharacteristics ();
|
||||
if (handle == IntPtr.Zero)
|
||||
|
|
|
@ -25,16 +25,14 @@ using ObjCRuntime;
|
|||
|
||||
namespace MediaLibrary {
|
||||
[Native]
|
||||
public enum MLMediaSourceType : ulong
|
||||
{
|
||||
public enum MLMediaSourceType : ulong {
|
||||
Audio = 1 << 0,
|
||||
Image = 1 << 1,
|
||||
Movie = 1 << 2
|
||||
}
|
||||
|
||||
[Native]
|
||||
public enum MLMediaType : ulong
|
||||
{
|
||||
public enum MLMediaType : ulong {
|
||||
Audio = 1 << 0,
|
||||
Image = 1 << 1,
|
||||
Movie = 1 << 2
|
||||
|
|
|
@ -271,7 +271,7 @@ namespace MediaPlayer {
|
|||
[SupportedOSPlatform ("maccatalyst")]
|
||||
[SupportedOSPlatform ("tvos")]
|
||||
#else
|
||||
[iOS (9,2)]
|
||||
[iOS (9, 2)]
|
||||
#endif
|
||||
public bool HasProtectedAsset {
|
||||
get {
|
||||
|
@ -285,7 +285,7 @@ namespace MediaPlayer {
|
|||
[SupportedOSPlatform ("maccatalyst")]
|
||||
[SupportedOSPlatform ("tvos")]
|
||||
#else
|
||||
[iOS (10,0)]
|
||||
[iOS (10, 0)]
|
||||
#endif
|
||||
public bool IsExplicitItem {
|
||||
get {
|
||||
|
@ -299,7 +299,7 @@ namespace MediaPlayer {
|
|||
[SupportedOSPlatform ("maccatalyst")]
|
||||
[SupportedOSPlatform ("tvos")]
|
||||
#else
|
||||
[iOS (10,0)]
|
||||
[iOS (10, 0)]
|
||||
#endif
|
||||
public NSDate? DateAdded {
|
||||
get {
|
||||
|
@ -313,7 +313,7 @@ namespace MediaPlayer {
|
|||
[SupportedOSPlatform ("maccatalyst")]
|
||||
[SupportedOSPlatform ("tvos")]
|
||||
#else
|
||||
[iOS (10,3)]
|
||||
[iOS (10, 3)]
|
||||
#endif
|
||||
public NSString? PlaybackStoreID {
|
||||
get {
|
||||
|
@ -327,10 +327,10 @@ namespace MediaPlayer {
|
|||
[SupportedOSPlatform ("ios14.5")]
|
||||
[SupportedOSPlatform ("maccatalyst")]
|
||||
#else
|
||||
[Watch (7,4)]
|
||||
[TV (14,5)]
|
||||
[Mac (11,3)]
|
||||
[iOS (14,5)]
|
||||
[Watch (7, 4)]
|
||||
[TV (14, 5)]
|
||||
[Mac (11, 3)]
|
||||
[iOS (14, 5)]
|
||||
#endif
|
||||
public bool IsPreorder {
|
||||
get {
|
||||
|
|
|
@ -19,8 +19,7 @@ using ObjCRuntime;
|
|||
|
||||
namespace MediaPlayer {
|
||||
|
||||
public partial class MPMediaQuery
|
||||
{
|
||||
public partial class MPMediaQuery {
|
||||
public MPMediaItem GetItem (nuint index)
|
||||
{
|
||||
using (var array = new NSArray (Messaging.IntPtr_objc_msgSend (Handle, Selector.GetHandle ("items"))))
|
||||
|
|
|
@ -22,7 +22,7 @@ namespace MediaPlayer {
|
|||
[SupportedOSPlatform ("maccatalyst")]
|
||||
[SupportedOSPlatform ("tvos")]
|
||||
#else
|
||||
[Mac (10,12,2)]
|
||||
[Mac (10, 12, 2)]
|
||||
#endif
|
||||
public class MPNowPlayingInfo {
|
||||
public MPNowPlayingInfo ()
|
||||
|
@ -47,7 +47,7 @@ namespace MediaPlayer {
|
|||
[SupportedOSPlatform ("maccatalyst")]
|
||||
[SupportedOSPlatform ("tvos")]
|
||||
#else
|
||||
[iOS (8,0)]
|
||||
[iOS (8, 0)]
|
||||
#endif
|
||||
public double? DefaultPlaybackRate;
|
||||
|
||||
|
@ -57,25 +57,25 @@ namespace MediaPlayer {
|
|||
[SupportedOSPlatform ("maccatalyst")]
|
||||
[SupportedOSPlatform ("tvos")]
|
||||
#else
|
||||
[iOS (9,0)]
|
||||
[iOS (9, 0)]
|
||||
#endif
|
||||
public MPNowPlayingInfoLanguageOptionGroup[]? AvailableLanguageOptions { get; set; }
|
||||
public MPNowPlayingInfoLanguageOptionGroup []? AvailableLanguageOptions { get; set; }
|
||||
#if NET
|
||||
[SupportedOSPlatform ("ios9.0")]
|
||||
[SupportedOSPlatform ("macos10.12.2")]
|
||||
[SupportedOSPlatform ("maccatalyst")]
|
||||
[SupportedOSPlatform ("tvos")]
|
||||
#else
|
||||
[iOS (9,0)]
|
||||
[iOS (9, 0)]
|
||||
#endif
|
||||
public MPNowPlayingInfoLanguageOption[]? CurrentLanguageOptions { get; set; }
|
||||
public MPNowPlayingInfoLanguageOption []? CurrentLanguageOptions { get; set; }
|
||||
#if NET
|
||||
[SupportedOSPlatform ("ios10.0")]
|
||||
[SupportedOSPlatform ("macos10.12.2")]
|
||||
[SupportedOSPlatform ("maccatalyst")]
|
||||
[SupportedOSPlatform ("tvos")]
|
||||
#else
|
||||
[iOS (10,0)]
|
||||
[iOS (10, 0)]
|
||||
#endif
|
||||
public string? CollectionIdentifier { get; set; }
|
||||
#if NET
|
||||
|
@ -84,7 +84,7 @@ namespace MediaPlayer {
|
|||
[SupportedOSPlatform ("maccatalyst")]
|
||||
[SupportedOSPlatform ("tvos")]
|
||||
#else
|
||||
[iOS (10,0)]
|
||||
[iOS (10, 0)]
|
||||
#endif
|
||||
public string? ExternalContentIdentifier { get; set; }
|
||||
#if NET
|
||||
|
@ -93,7 +93,7 @@ namespace MediaPlayer {
|
|||
[SupportedOSPlatform ("maccatalyst")]
|
||||
[SupportedOSPlatform ("tvos")]
|
||||
#else
|
||||
[iOS (10,0)]
|
||||
[iOS (10, 0)]
|
||||
#endif
|
||||
public string? ExternalUserProfileIdentifier { get; set; }
|
||||
#if NET
|
||||
|
@ -102,7 +102,7 @@ namespace MediaPlayer {
|
|||
[SupportedOSPlatform ("maccatalyst")]
|
||||
[SupportedOSPlatform ("tvos")]
|
||||
#else
|
||||
[iOS (10,0)]
|
||||
[iOS (10, 0)]
|
||||
#endif
|
||||
public float? PlaybackProgress { get; set; }
|
||||
#if NET
|
||||
|
@ -111,7 +111,7 @@ namespace MediaPlayer {
|
|||
[SupportedOSPlatform ("maccatalyst")]
|
||||
[SupportedOSPlatform ("tvos")]
|
||||
#else
|
||||
[iOS (10,0)]
|
||||
[iOS (10, 0)]
|
||||
#endif
|
||||
public MPNowPlayingInfoMediaType? MediaType { get; set; }
|
||||
#if NET
|
||||
|
@ -120,7 +120,7 @@ namespace MediaPlayer {
|
|||
[SupportedOSPlatform ("maccatalyst")]
|
||||
[SupportedOSPlatform ("tvos")]
|
||||
#else
|
||||
[iOS (10,0)]
|
||||
[iOS (10, 0)]
|
||||
#endif
|
||||
public bool? IsLiveStream { get; set; }
|
||||
#if NET
|
||||
|
@ -129,7 +129,7 @@ namespace MediaPlayer {
|
|||
[SupportedOSPlatform ("maccatalyst")]
|
||||
[SupportedOSPlatform ("tvos")]
|
||||
#else
|
||||
[iOS (10,3)]
|
||||
[iOS (10, 3)]
|
||||
#endif
|
||||
public NSUrl? AssetUrl { get; set; }
|
||||
#if NET
|
||||
|
@ -138,9 +138,9 @@ namespace MediaPlayer {
|
|||
[SupportedOSPlatform ("macos10.13.1")]
|
||||
[SupportedOSPlatform ("maccatalyst")]
|
||||
#else
|
||||
[iOS (11,1)]
|
||||
[TV (11,1)]
|
||||
[Mac (10,13,1)]
|
||||
[iOS (11, 1)]
|
||||
[TV (11, 1)]
|
||||
[Mac (10, 13, 1)]
|
||||
#endif
|
||||
public NSDate? CurrentPlaybackDate { get; set; }
|
||||
|
||||
|
@ -183,7 +183,7 @@ namespace MediaPlayer {
|
|||
if (PlaybackProgress.HasValue)
|
||||
Add (dict, MPNowPlayingInfoCenter.PropertyPlaybackProgress, new NSNumber (PlaybackProgress.Value));
|
||||
if (MediaType.HasValue)
|
||||
Add (dict, MPNowPlayingInfoCenter.PropertyMediaType, new NSNumber ((int)MediaType.Value));
|
||||
Add (dict, MPNowPlayingInfoCenter.PropertyMediaType, new NSNumber ((int) MediaType.Value));
|
||||
if (IsLiveStream.HasValue)
|
||||
Add (dict, MPNowPlayingInfoCenter.PropertyIsLiveStream, new NSNumber (IsLiveStream.Value));
|
||||
if (AssetUrl is not null)
|
||||
|
|
|
@ -15,13 +15,13 @@ using ObjCRuntime;
|
|||
|
||||
namespace MediaPlayer {
|
||||
public partial class MPSkipIntervalCommand {
|
||||
public double[]? PreferredIntervals {
|
||||
public double []? PreferredIntervals {
|
||||
get {
|
||||
NSArray a = _PreferredIntervals;
|
||||
if ((a is null) || (a.Count == 0))
|
||||
return null;
|
||||
|
||||
return NSArray.ArrayFromHandle<double> (a.Handle, input => {
|
||||
return NSArray.ArrayFromHandle<double> (a.Handle, input => {
|
||||
return new NSNumber (input).DoubleValue;
|
||||
});
|
||||
}
|
||||
|
|
|
@ -25,9 +25,9 @@ namespace MediaPlayer {
|
|||
[UnsupportedOSPlatform ("ios11.3")]
|
||||
[ObsoletedOSPlatform ("ios11.3", "Use 'MPVolumeView' to present volume controls.")]
|
||||
#else
|
||||
[Deprecated (PlatformName.iOS, 11,3, message: "Use 'MPVolumeView' to present volume controls.")]
|
||||
[Deprecated (PlatformName.iOS, 11, 3, message: "Use 'MPVolumeView' to present volume controls.")]
|
||||
#endif
|
||||
[DllImport (Constants.MediaPlayerLibrary, EntryPoint="MPVolumeSettingsAlertShow")]
|
||||
[DllImport (Constants.MediaPlayerLibrary, EntryPoint = "MPVolumeSettingsAlertShow")]
|
||||
public extern static void AlertShow ();
|
||||
|
||||
#if NET
|
||||
|
@ -36,9 +36,9 @@ namespace MediaPlayer {
|
|||
[UnsupportedOSPlatform ("ios11.3")]
|
||||
[ObsoletedOSPlatform ("ios11.3", "Use 'MPVolumeView' to present volume controls.")]
|
||||
#else
|
||||
[Deprecated (PlatformName.iOS, 11,3, message: "Use 'MPVolumeView' to present volume controls.")]
|
||||
[Deprecated (PlatformName.iOS, 11, 3, message: "Use 'MPVolumeView' to present volume controls.")]
|
||||
#endif
|
||||
[DllImport (Constants.MediaPlayerLibrary, EntryPoint="MPVolumeSettingsAlertHide")]
|
||||
[DllImport (Constants.MediaPlayerLibrary, EntryPoint = "MPVolumeSettingsAlertHide")]
|
||||
public extern static void AlertHide ();
|
||||
|
||||
// note: sizeof (BOOL) is 1 like C, i.e. it's not a Win32 BOOL (4 bytes)
|
||||
|
@ -48,9 +48,9 @@ namespace MediaPlayer {
|
|||
[UnsupportedOSPlatform ("ios11.3")]
|
||||
[ObsoletedOSPlatform ("ios11.3", "Use 'MPVolumeView' to present volume controls.")]
|
||||
#else
|
||||
[Deprecated (PlatformName.iOS, 11,3, message: "Use 'MPVolumeView' to present volume controls.")]
|
||||
[Deprecated (PlatformName.iOS, 11, 3, message: "Use 'MPVolumeView' to present volume controls.")]
|
||||
#endif
|
||||
[DllImport (Constants.MediaPlayerLibrary, EntryPoint="MPVolumeSettingsAlertIsVisible")]
|
||||
[DllImport (Constants.MediaPlayerLibrary, EntryPoint = "MPVolumeSettingsAlertIsVisible")]
|
||||
[return: MarshalAs (UnmanagedType.I1)]
|
||||
public extern static /* BOOL */ bool AlertIsVisible ();
|
||||
}
|
||||
|
|
|
@ -37,10 +37,10 @@ namespace MediaPlayer {
|
|||
[Deprecated (PlatformName.iOS, 9, 0)]
|
||||
[Native]
|
||||
public enum MPMovieLoadState : long {
|
||||
Unknown = 0,
|
||||
Playable = 1 << 0,
|
||||
PlaythroughOK = 1 << 1,
|
||||
Stalled = 1 << 2,
|
||||
Unknown = 0,
|
||||
Playable = 1 << 0,
|
||||
PlaythroughOK = 1 << 1,
|
||||
Stalled = 1 << 2,
|
||||
}
|
||||
|
||||
// NSInteger -> MPMoviePlayerController.h
|
||||
|
@ -108,32 +108,32 @@ namespace MediaPlayer {
|
|||
}
|
||||
|
||||
// NSUInteger -> MPMediaItem.h
|
||||
[Watch (7,0)]
|
||||
[Watch (7, 0)]
|
||||
[Native]
|
||||
[Flags]
|
||||
public enum MPMediaType : ulong {
|
||||
Music = 1 << 0,
|
||||
Podcast = 1 << 1,
|
||||
AudioBook = 1 << 2,
|
||||
Music = 1 << 0,
|
||||
Podcast = 1 << 1,
|
||||
AudioBook = 1 << 2,
|
||||
AudioITunesU = 1 << 3,
|
||||
AnyAudio = 0x00ff,
|
||||
AnyAudio = 0x00ff,
|
||||
|
||||
[Mac (10,12,2)]
|
||||
[Mac (10, 12, 2)]
|
||||
Movie = 1 << 8,
|
||||
[Mac (10,12,2)]
|
||||
[Mac (10, 12, 2)]
|
||||
TVShow = 1 << 9,
|
||||
[Mac (10,12,2)]
|
||||
[Mac (10, 12, 2)]
|
||||
VideoPodcast = 1 << 10,
|
||||
[Mac (10,12,2)]
|
||||
[Mac (10, 12, 2)]
|
||||
MusicVideo = 1 << 11,
|
||||
[Mac (10,12,2)]
|
||||
[Mac (10, 12, 2)]
|
||||
VideoITunesU = 1 << 12,
|
||||
[iOS (7,0)]
|
||||
[Mac (10,12,2)]
|
||||
[iOS (7, 0)]
|
||||
[Mac (10, 12, 2)]
|
||||
HomeVideo = 1 << 13,
|
||||
[Mac (10,12,2)]
|
||||
[Mac (10, 12, 2)]
|
||||
TypeAnyVideo = 0xff00,
|
||||
Any = 0xFFFFFFFFFFFFFFFF
|
||||
Any = 0xFFFFFFFFFFFFFFFF
|
||||
}
|
||||
|
||||
// NSInteger -> MPMediaPlaylist.h
|
||||
|
@ -143,10 +143,10 @@ namespace MediaPlayer {
|
|||
[Native]
|
||||
[Flags]
|
||||
public enum MPMediaPlaylistAttribute : long {
|
||||
None = 0,
|
||||
None = 0,
|
||||
OnTheGo = (1 << 0), // if set, the playlist was created on a device rather than synced from iTunes
|
||||
Smart = (1 << 1),
|
||||
Genius = (1 << 2)
|
||||
Smart = (1 << 1),
|
||||
Genius = (1 << 2)
|
||||
};
|
||||
|
||||
// NSInteger -> MPMediaQuery.h
|
||||
|
@ -199,7 +199,7 @@ namespace MediaPlayer {
|
|||
// NSInteger -> /MPMusicPlayerController.h
|
||||
[NoMac]
|
||||
[NoWatch]
|
||||
[TV (14,0)]
|
||||
[TV (14, 0)]
|
||||
[Native]
|
||||
public enum MPMusicPlaybackState : long {
|
||||
Stopped,
|
||||
|
@ -213,7 +213,7 @@ namespace MediaPlayer {
|
|||
// NSInteger -> /MPMusicPlayerController.h
|
||||
[NoMac]
|
||||
[NoWatch]
|
||||
[TV (14,0)]
|
||||
[TV (14, 0)]
|
||||
[Native]
|
||||
public enum MPMusicRepeatMode : long {
|
||||
Default,
|
||||
|
@ -225,7 +225,7 @@ namespace MediaPlayer {
|
|||
// NSInteger -> /MPMusicPlayerController.h
|
||||
[NoMac]
|
||||
[NoWatch]
|
||||
[TV (14,0)]
|
||||
[TV (14, 0)]
|
||||
[Native]
|
||||
public enum MPMusicShuffleMode : long {
|
||||
Default,
|
||||
|
@ -236,76 +236,73 @@ namespace MediaPlayer {
|
|||
|
||||
public delegate void MPMediaItemEnumerator (string property, NSObject value, ref bool stop);
|
||||
|
||||
[Mac (10,12,2)]
|
||||
[Watch (5,0)]
|
||||
[Mac (10, 12, 2)]
|
||||
[Watch (5, 0)]
|
||||
[Native]
|
||||
public enum MPShuffleType : long
|
||||
{
|
||||
public enum MPShuffleType : long {
|
||||
Off,
|
||||
Items,
|
||||
Collections
|
||||
}
|
||||
|
||||
[Mac (10,12,2)]
|
||||
[Watch (5,0)]
|
||||
[Mac (10, 12, 2)]
|
||||
[Watch (5, 0)]
|
||||
[Native]
|
||||
public enum MPRepeatType : long
|
||||
{
|
||||
public enum MPRepeatType : long {
|
||||
Off,
|
||||
One,
|
||||
All
|
||||
}
|
||||
|
||||
[Mac (10,12,2)]
|
||||
[iOS (10,0)]
|
||||
[Watch (5,0)]
|
||||
[Mac (10, 12, 2)]
|
||||
[iOS (10, 0)]
|
||||
[Watch (5, 0)]
|
||||
[Native]
|
||||
public enum MPChangeLanguageOptionSetting : long
|
||||
{
|
||||
public enum MPChangeLanguageOptionSetting : long {
|
||||
None,
|
||||
NowPlayingItemOnly,
|
||||
Permanent
|
||||
}
|
||||
|
||||
// NSInteger -> MPRemoteCommand.h
|
||||
[Mac (10,12,2)]
|
||||
[iOS (7,1)]
|
||||
[Watch (5,0)]
|
||||
[Mac (10, 12, 2)]
|
||||
[iOS (7, 1)]
|
||||
[Watch (5, 0)]
|
||||
[Native]
|
||||
public enum MPRemoteCommandHandlerStatus : long {
|
||||
Success = 0,
|
||||
NoSuchContent = 100,
|
||||
[iOS (9,1)]
|
||||
[iOS (9, 1)]
|
||||
NoActionableNowPlayingItem = 110,
|
||||
[iOS (11,0)]
|
||||
[TV (11,0)]
|
||||
[Mac (10,13)]
|
||||
[iOS (11, 0)]
|
||||
[TV (11, 0)]
|
||||
[Mac (10, 13)]
|
||||
DeviceNotFound = 120,
|
||||
CommandFailed = 200
|
||||
}
|
||||
|
||||
// NSUInteger -> MPRemoteCommandEvent.h
|
||||
[Mac (10,12,2)]
|
||||
[iOS (7,1)]
|
||||
[Watch (5,0)]
|
||||
[Mac (10, 12, 2)]
|
||||
[iOS (7, 1)]
|
||||
[Watch (5, 0)]
|
||||
[Native]
|
||||
public enum MPSeekCommandEventType : ulong {
|
||||
BeginSeeking,
|
||||
EndSeeking
|
||||
}
|
||||
|
||||
[Mac (10,12,2)]
|
||||
[iOS (9,0)]
|
||||
[Watch (5,0)]
|
||||
[Mac (10, 12, 2)]
|
||||
[iOS (9, 0)]
|
||||
[Watch (5, 0)]
|
||||
[Native]
|
||||
public enum MPNowPlayingInfoLanguageOptionType : ulong {
|
||||
Audible,
|
||||
Legible
|
||||
}
|
||||
|
||||
[Mac (10,14,2)]
|
||||
[Watch (7,0)]
|
||||
[iOS (9,3)]
|
||||
[Mac (10, 14, 2)]
|
||||
[Watch (7, 0)]
|
||||
[iOS (9, 3)]
|
||||
[Native]
|
||||
[ErrorDomain ("MPErrorDomain")]
|
||||
public enum MPErrorCode : long {
|
||||
|
@ -322,7 +319,7 @@ namespace MediaPlayer {
|
|||
[NoMac]
|
||||
[NoTV]
|
||||
[NoWatch]
|
||||
[iOS (9,3)]
|
||||
[iOS (9, 3)]
|
||||
[Native]
|
||||
public enum MPMediaLibraryAuthorizationStatus : long {
|
||||
NotDetermined = 0,
|
||||
|
@ -331,25 +328,23 @@ namespace MediaPlayer {
|
|||
Authorized
|
||||
}
|
||||
|
||||
[Mac (10,12,2)]
|
||||
[iOS (10,0)]
|
||||
[TV (10,0)]
|
||||
[Watch (5,0)]
|
||||
[Mac (10, 12, 2)]
|
||||
[iOS (10, 0)]
|
||||
[TV (10, 0)]
|
||||
[Watch (5, 0)]
|
||||
[Native]
|
||||
public enum MPNowPlayingInfoMediaType : ulong
|
||||
{
|
||||
public enum MPNowPlayingInfoMediaType : ulong {
|
||||
None = 0,
|
||||
Audio,
|
||||
Video
|
||||
}
|
||||
|
||||
[Mac (10,12,2)]
|
||||
[Watch (5,0)]
|
||||
[Mac (10, 12, 2)]
|
||||
[Watch (5, 0)]
|
||||
[iOS (11, 0)]
|
||||
[TV (11, 0)]
|
||||
[Native]
|
||||
public enum MPNowPlayingPlaybackState : ulong
|
||||
{
|
||||
public enum MPNowPlayingPlaybackState : ulong {
|
||||
Unknown = 0,
|
||||
Playing,
|
||||
Paused,
|
||||
|
|
|
@ -24,8 +24,8 @@ namespace MediaToolbox {
|
|||
[SupportedOSPlatform ("maccatalyst")]
|
||||
[SupportedOSPlatform ("tvos")]
|
||||
#else
|
||||
[iOS (9,0)]
|
||||
[Mac (10,11)]
|
||||
[iOS (9, 0)]
|
||||
[Mac (10, 11)]
|
||||
#endif
|
||||
[DllImport (Constants.MediaToolboxLibrary)]
|
||||
static extern /* CFStringRef CM_NULLABLE */ IntPtr MTCopyLocalizedNameForMediaType (
|
||||
|
@ -37,8 +37,8 @@ namespace MediaToolbox {
|
|||
[SupportedOSPlatform ("maccatalyst")]
|
||||
[SupportedOSPlatform ("tvos")]
|
||||
#else
|
||||
[iOS (9,0)]
|
||||
[Mac (10,11)]
|
||||
[iOS (9, 0)]
|
||||
[Mac (10, 11)]
|
||||
#endif
|
||||
static public string? GetLocalizedName (this CMMediaType mediaType)
|
||||
{
|
||||
|
@ -51,8 +51,8 @@ namespace MediaToolbox {
|
|||
[SupportedOSPlatform ("maccatalyst")]
|
||||
[SupportedOSPlatform ("tvos")]
|
||||
#else
|
||||
[iOS (9,0)]
|
||||
[Mac (10,11)]
|
||||
[iOS (9, 0)]
|
||||
[Mac (10, 11)]
|
||||
#endif
|
||||
[DllImport (Constants.MediaToolboxLibrary)]
|
||||
static extern /* CFStringRef CM_NULLABLE */ IntPtr MTCopyLocalizedNameForMediaSubType (
|
||||
|
@ -64,8 +64,8 @@ namespace MediaToolbox {
|
|||
[SupportedOSPlatform ("maccatalyst")]
|
||||
[SupportedOSPlatform ("tvos")]
|
||||
#else
|
||||
[iOS (9,0)]
|
||||
[Mac (10,11)]
|
||||
[iOS (9, 0)]
|
||||
[Mac (10, 11)]
|
||||
#endif
|
||||
static public string? GetLocalizedName (this CMMediaType mediaType, uint mediaSubType)
|
||||
{
|
||||
|
|
|
@ -94,6 +94,19 @@ dotnet format whitespace --folder "$SRC_DIR/src/GameKit"
|
|||
dotnet format whitespace --folder "$SRC_DIR/src/GameplayKit"
|
||||
dotnet format whitespace --folder "$SRC_DIR/src/HealthKit"
|
||||
dotnet format whitespace --folder "$SRC_DIR/src/HomeKit"
|
||||
dotnet format whitespace --folder "$SRC_DIR/src/IOSurface"
|
||||
dotnet format whitespace --folder "$SRC_DIR/src/ImageCaptureCore"
|
||||
dotnet format whitespace --folder "$SRC_DIR/src/ImageIO"
|
||||
dotnet format whitespace --folder "$SRC_DIR/src/ImageKit"
|
||||
dotnet format whitespace --folder "$SRC_DIR/src/Intents"
|
||||
dotnet format whitespace --folder "$SRC_DIR/src/JavaScriptCore"
|
||||
dotnet format whitespace --folder "$SRC_DIR/src/LocalAuthentication"
|
||||
dotnet format whitespace --folder "$SRC_DIR/src/MLCompute"
|
||||
dotnet format whitespace --folder "$SRC_DIR/src/MapKit"
|
||||
dotnet format whitespace --folder "$SRC_DIR/src/MediaAccessibility"
|
||||
dotnet format whitespace --folder "$SRC_DIR/src/MediaLibrary"
|
||||
dotnet format whitespace --folder "$SRC_DIR/src/MediaPlayer"
|
||||
dotnet format whitespace --folder "$SRC_DIR/src/MediaToolbox"
|
||||
|
||||
# dotnet format "$SRC_DIR/[...]"
|
||||
# add more projects here...
|
||||
|
|
Загрузка…
Ссылка в новой задаче