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/56438d29046008948bd11430a73262db to your computer and use it in GitHub Desktop.
Save vs-mobiletools-engineering-service2/56438d29046008948bd11430a73262db to your computer and use it in GitHub Desktop.
tvOS API diff from stable
title description author ms.author ms.date ms.topic ms.assetid ms.prod
Xamarin.TVOS SDK API diff: 14.10.0 vs 14.14.2
List of API changes between Xamarin.TVOS versions 14.10.0 and 14.14.2.
spouliot
sepoulio
4/21/2021
article
b5b5a83e-78a5-c0ab-bb92-84c75320f690
xamarin

Xamarin.TVOS 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 AdSupportLibrary = "/System/Library/Frameworks/AdSupport.framework/AdSupport";
public static const string CoreAudioLibrary = "/System/Library/Frameworks/CoreAudio.framework/CoreAudio";
public static const string CoreServicesLibrary = "/System/Library/Frameworks/MobileCoreServices.framework/MobileCoreServices";
public static const string PhotosUILibrary = "/System/Library/Frameworks/PhotosUI.framework/PhotosUI";
public static const string SystemLibrary = "/usr/lib/libSystem.dylib";
public static const string TVUIKitLibrary = "/System/Library/Frameworks/TVUIKit.framework/TVUIKit";

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