Skip to content

Instantly share code, notes, and snippets.

@vs-mobiletools-engineering-service2
Created February 24, 2021 01:34
Show Gist options
  • Save vs-mobiletools-engineering-service2/c0a1a386feb07637dcfeec2bf65da767 to your computer and use it in GitHub Desktop.
Save vs-mobiletools-engineering-service2/c0a1a386feb07637dcfeec2bf65da767 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.8.0 vs 14.17.0
List of API changes between Xamarin.TVOS versions 14.8.0 and 14.17.0.
spouliot
sepoulio
2/23/2021
article
d0ff89e0-7f33-3048-688c-2938949d62c7
xamarin

Xamarin.TVOS SDK API diff: 14.8.0 vs 14.17.0

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 CoreVideo

New Type: CoreVideo.CVImageBufferAlphaChannelModeExtensions

public static class CVImageBufferAlphaChannelModeExtensions {
	// methods
	public static Foundation.NSString GetConstant (this CVImageBufferAlphaChannelMode self);
	public static CVImageBufferAlphaChannelMode GetValue (Foundation.NSString constant);
}

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.8.0";
+public const string Version = "14.17.0";

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";

Type Changed: ObjCRuntime.PlatformName

Obsoleted fields:

 [Obsolete ("Use 'MacCatalyst' instead.")]
 UIKitForMac = 5,

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; }

Type Changed: UIKit.UIWindowSceneSessionRole

Removed value:

CarTemplateApplication = 2,

Namespace VideoToolbox

New Type: VideoToolbox.HdrMetadataInsertionModeExtensions

public static class HdrMetadataInsertionModeExtensions {
	// methods
	public static Foundation.NSString GetConstant (this HdrMetadataInsertionMode self);
	public static HdrMetadataInsertionMode GetValue (Foundation.NSString constant);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment