Skip to content

Instantly share code, notes, and snippets.

@vs-mobiletools-engineering-service2
Created April 22, 2021 04:14
Show Gist options
  • Save vs-mobiletools-engineering-service2/37c7e4e601994b7465c7e4facfba0603 to your computer and use it in GitHub Desktop.
Save vs-mobiletools-engineering-service2/37c7e4e601994b7465c7e4facfba0603 to your computer and use it in GitHub Desktop.
iOS API diff from stable
title description author ms.author ms.date ms.topic ms.assetid ms.prod
Xamarin.iOS SDK API diff: 14.10.0 vs 14.14.2
List of API changes between Xamarin.iOS versions 14.10.0 and 14.14.2.
spouliot
sepoulio
4/21/2021
article
9d622819-93a1-0f54-7dc9-b314086b9d4a
xamarin

Xamarin.iOS SDK API diff: 14.10.0 vs 14.14.2

Namespace CoreGraphics

Type Changed: CoreGraphics.CGPoint

Added method:

public void Deconstruct (out nfloat x, out nfloat y);

Type Changed: CoreGraphics.CGRect

Added methods:

public void Deconstruct (out CGPoint location, out CGSize size);
public void Deconstruct (out nfloat x, out nfloat y, out nfloat width, out nfloat height);

Type Changed: CoreGraphics.CGSize

Added method:

public void Deconstruct (out nfloat width, out nfloat height);

Namespace Foundation

Type Changed: Foundation.NSFileCoordinator

Obsoleted methods:

 [Obsolete ("Use 'CoordinateBatch' instead.")]
 public virtual void CoordinateBatc (NSUrl[] readingURLs, NSFileCoordinatorReadingOptions readingOptions, NSUrl[] writingURLs, NSFileCoordinatorWritingOptions writingOptions, out NSError error, System.Action batchHandler);

Added method:

public virtual void CoordinateBatch (NSUrl[] readingURLs, NSFileCoordinatorReadingOptions readingOptions, NSUrl[] writingURLs, NSFileCoordinatorWritingOptions writingOptions, out NSError error, System.Action batchHandler);

Namespace MediaPlayer

New Type: MediaPlayer.MPNowPlayingPlaybackState

[Serializable]
public enum MPNowPlayingPlaybackState {
	Interrupted = 4,
	Paused = 2,
	Playing = 1,
	Stopped = 3,
	Unknown = 0,
}

Namespace ObjCRuntime

Type Changed: ObjCRuntime.Constants

Modified fields:

-public const string Version = "14.10.0";
+public const string Version = "14.14.2";

Added fields:

public static const string AccelerateLibrary = "/System/Library/Frameworks/Accelerate.framework/Accelerate";
public static const string CoreAudioLibrary = "/System/Library/Frameworks/CoreAudio.framework/CoreAudio";
public static const string GSSLibrary = "/System/Library/Frameworks/GSS.framework/GSS";
public static const string NotificationCenterLibrary = "/System/Library/Frameworks/NotificationCenter.framework/NotificationCenter";
public static const string TwitterLibrary = "/System/Library/Frameworks/Twitter.framework/Twitter";

New Type: ObjCRuntime.MacCatalystAttribute

public sealed class MacCatalystAttribute : ObjCRuntime.IntroducedAttribute {
	// constructors
	public MacCatalystAttribute (byte major, byte minor);
	public MacCatalystAttribute (byte major, byte minor, byte subminor);
}

New Type: ObjCRuntime.NativeObjectExtensions

public static class NativeObjectExtensions {
	// methods
	public static IntPtr GetHandle (this INativeObject self);
	public static IntPtr GetNonNullHandle (this INativeObject self, string argumentName);
}

New Type: ObjCRuntime.NoMacCatalystAttribute

public sealed class NoMacCatalystAttribute : ObjCRuntime.UnavailableAttribute {
	// constructors
	public NoMacCatalystAttribute ();
}

New Type: ObjCRuntime.ThrowHelper

public static class ThrowHelper {
	// methods
	public static void ThrowArgumentException (string argumentName);
	public static void ThrowArgumentException (string argumentName, string message);
	public static void ThrowArgumentNullException (string argumentName);
	public static void ThrowObjectDisposedException (object o);
}

Namespace UIKit

Type Changed: UIKit.NSMutableParagraphStyle

Modified properties:

-public virtual NSLineBreakStrategy LineBreakStrategy { get; set; }
+public override NSLineBreakStrategy LineBreakStrategy { get; set; }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment