Skip to content

Instantly share code, notes, and snippets.

@vs-mobiletools-engineering-service2
Created November 22, 2024 12:42
Show Gist options
  • Save vs-mobiletools-engineering-service2/1f295a5e5250eb69261a78f1f2d644c5 to your computer and use it in GitHub Desktop.
Save vs-mobiletools-engineering-service2/1f295a5e5250eb69261a78f1f2d644c5 to your computer and use it in GitHub Desktop.
stable-api-comparison/diff/Microsoft.tvOS.md

API diff: Microsoft.tvOS.dll

Microsoft.tvOS.dll

Assembly Version Changed: 18.0.0.0 -> 18.1.0.0

Namespace AVFoundation

New Type: AVFoundation.AVCaptureReactionType

[Serializable]
public enum AVCaptureReactionType {
	Balloons = 2,
	Confetti = 6,
	Fireworks = 4,
	Heart = 3,
	Lasers = 7,
	Rain = 5,
	ThumbsDown = 1,
	ThumbsUp = 0,
}

New Type: AVFoundation.AVCaptureReactionTypeExtensions

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

Namespace CoreImage

New Type: CoreImage.CIDistanceGradientFromRedMask

public class CIDistanceGradientFromRedMask : CoreImage.CIFilter, ICIFilterProtocol, ObjCRuntime.INativeObject, System.IDisposable {
	// constructors
	public CIDistanceGradientFromRedMask ();
	public CIDistanceGradientFromRedMask (Foundation.NSCoder coder);
	protected CIDistanceGradientFromRedMask (Foundation.NSObjectFlag t);
	protected CIDistanceGradientFromRedMask (ObjCRuntime.NativeHandle handle);
	// properties
	public CIImage InputImage { get; set; }
	public int MaximumDistance { get; set; }
	public virtual CIImage OutputImage { get; }
}

Namespace CoreLocation

Type Changed: CoreLocation.CLLocation

Obsoleted properties:

 [Obsolete ("Use 'AccuracyBestForNavigation' instead.")]
 public static double AccurracyBestForNavigation { get; }

Added property:

public static double AccuracyBestForNavigation { get; }

Namespace NetworkExtension

Type Changed: NetworkExtension.NEProviderStopReason

Added value:

InternalError = 17,

Namespace ObjCRuntime

Type Changed: ObjCRuntime.Constants

Modified fields:

-public const string SdkVersion = "18.0";
+public const string SdkVersion = "18.1";
-public const string Version = "17.99.0";
+public const string Version = "18.1.9169";

Namespace TVServices

Type Changed: TVServices.TVUserActivityType

Added property:

public static Foundation.NSString BrowsingEntertainmentContent { get; }

Namespace UIKit

Type Changed: UIKit.UIMenuIdentifier

Added value:

Open = 48,

Type Changed: UIKit.UIPressType

Added values:

TVRemoteFourColors = 33,
TVRemoteOneTwoThree = 32,

Type Changed: UIKit.UITraitCollection

Obsoleted methods:

 [Obsolete ("Use the overload that takes a 'UITraitMutations' parameter instead.")]
 public virtual UITraitCollection GetTraitCollectionByModifyingTraits (System.Func<IUIMutableTraits> mutations);
 [Obsolete ("Use the overload that takes a 'UITraitMutations' parameter instead.")]
 public static UITraitCollection GetTraitCollectionWithTraits (System.Func<IUIMutableTraits> mutations);

Added methods:

public virtual UITraitCollection GetTraitCollectionByModifyingTraits (UITraitMutations mutations);
public static UITraitCollection GetTraitCollectionWithTraits (UITraitMutations mutations);

New Type: UIKit.UITraitMutations

public sealed delegate UITraitMutations : System.MulticastDelegate {
	// constructors
	public UITraitMutations (object object, IntPtr method);
	// methods
	public virtual System.IAsyncResult BeginInvoke (IUIMutableTraits mutableTraits, System.AsyncCallback callback, object object);
	public virtual void EndInvoke (System.IAsyncResult result);
	public virtual void Invoke (IUIMutableTraits mutableTraits);
}

Namespace Vision

Type Changed: Vision.VNCircle

Added constructor:

public VNCircle (VNPoint center, double radiusOrDiameter, VNCircleInitializationOption option);

Type Changed: Vision.VNUtils

Added property:

public static double VisionVersionNumber { get; }

Type Changed: Vision.VNVector

Added constructor:

public VNVector (System.ValueTuple<System.Double,System.Double> polarCoordinates);

New Type: Vision.VNCircleInitializationOption

[Serializable]
public enum VNCircleInitializationOption {
	Diameter = 1,
	Radius = 0,
}

New Namespace ObjCBindings

New Type: ObjCBindings.BindingTypeAttribute

public class BindingTypeAttribute : System.Attribute {
	// constructors
	public BindingTypeAttribute ();
	// properties
	public string Name { get; set; }
}

New Type: ObjCBindings.EnumValue

[Serializable]
[Flags]
public enum EnumValue {
	None = 0,
}

New Type: ObjCBindings.Field

[Serializable]
[Flags]
public enum Field {
	None = 0,
}

New Type: ObjCBindings.FieldAttribute`1

public class FieldAttribute`1 : System.Attribute {
	// constructors
	public FieldAttribute`1 (string symbolName);
	public FieldAttribute`1 (string symbolName, string libraryName);
	public FieldAttribute`1 (string symbolName, T flags);
	public FieldAttribute`1 (string symbolName, string libraryName, T flags);
	// properties
	public T Flags { get; set; }
	public string LibraryName { get; set; }
	public string SymbolName { get; set; }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment