Skip to content

Instantly share code, notes, and snippets.

@vs-mobiletools-engineering-service2
Created September 18, 2024 22:40
Show Gist options
  • Save vs-mobiletools-engineering-service2/b54c8b934c5085d9aad7a29c3039430d to your computer and use it in GitHub Desktop.
Save vs-mobiletools-engineering-service2/b54c8b934c5085d9aad7a29c3039430d to your computer and use it in GitHub Desktop.
stable-api-comparison/diff/Microsoft.MacCatalyst.md

API diff: Microsoft.MacCatalyst.dll

Microsoft.MacCatalyst.dll

Namespace AVFoundation

Type Changed: AVFoundation.AVCaptureDeviceType

Added value:

External = 11,

Namespace CoreGraphics

New Type: CoreGraphics.CGSession

public static class CGSession {
	// methods
	public static CGSessionProperties GetProperties ();
}

New Type: CoreGraphics.CGSessionKeys

public static class CGSessionKeys {
	// properties
	public static Foundation.NSString ConsoleSetKey { get; }
	public static Foundation.NSString LoginDoneKey { get; }
	public static Foundation.NSString OnConsoleKey { get; }
	public static Foundation.NSString UserIdKey { get; }
	public static Foundation.NSString UserNameKey { get; }
}

New Type: CoreGraphics.CGSessionProperties

public class CGSessionProperties : Foundation.DictionaryContainer {
	// constructors
	public CGSessionProperties ();
	public CGSessionProperties (Foundation.NSDictionary dictionary);
	// properties
	public uint? ConsoleSet { get; }
	public bool? LoginDone { get; }
	public bool? OnConsole { get; }
	public uint? UserId { get; }
	public string UserName { get; }
}

Namespace CoreMidi

Type Changed: CoreMidi.MidiDevice

Obsoleted properties:

 [Obsolete ("This API does not do anything on this platform.")]
 public string FactoryPatchNameFile { get; set; }
 [Obsolete ("This API does not do anything on this platform.")]
 public string UserPatchNameFile { get; set; }

Added property:

public MidiProtocolId ProtocolId { get; set; }

Type Changed: CoreMidi.MidiEndpoint

Added properties:

public MidiProtocolId ProtocolId { get; set; }
public ushort UmpActiveGroupBitmap { get; set; }
public bool UmpCanTransmitGroupless { get; set; }

Type Changed: CoreMidi.MidiEntity

Added properties:

public MidiProtocolId ProtocolId { get; set; }
public ushort UmpActiveGroupBitmap { get; set; }
public bool UmpCanTransmitGroupless { get; set; }

Namespace CoreVideo

Type Changed: CoreVideo.CVPixelFormatDescription

Modified base type:

-System.Object
+Foundation.DictionaryContainer

Added constructors:

public CVPixelFormatDescription ();
public CVPixelFormatDescription (Foundation.NSDictionary dictionary);

Obsoleted fields:

 [Obsolete ("Use 'CVPixelFormatKeys.BitsPerBlock' instead.")]
 public static Foundation.NSString BitsPerBlockKey;
 [Obsolete ("Use 'CVPixelFormatKeys.BlackBlock' instead.")]
 public static Foundation.NSString BlackBlockKey;
 [Obsolete ("Use 'CVPixelFormatKeys.BlockHeight' instead.")]
 public static Foundation.NSString BlockHeightKey;
 [Obsolete ("Use 'CVPixelFormatKeys.BlockHorizontalAlignment' instead.")]
 public static Foundation.NSString BlockHorizontalAlignmentKey;
 [Obsolete ("Use 'CVPixelFormatKeys.BlockVerticalAlignment' instead.")]
 public static Foundation.NSString BlockVerticalAlignmentKey;
 [Obsolete ("Use 'CVPixelFormatKeys.BlockWidth' instead.")]
 public static Foundation.NSString BlockWidthKey;
 [Obsolete ("Use 'CVPixelFormatKeys.CGBitmapContextCompatibility' instead.")]
 public static Foundation.NSString CGBitmapContextCompatibilityKey;
 [Obsolete ("Use 'CVPixelFormatKeys.CGBitmapInfo' instead.")]
 public static Foundation.NSString CGBitmapInfoKey;
 [Obsolete ("Use 'CVPixelFormatKeys.CGImageCompatibility' instead.")]
 public static Foundation.NSString CGImageCompatibilityKey;
 [Obsolete ("Use 'CVPixelFormatKeys.CodecType' instead.")]
 public static Foundation.NSString CodecTypeKey;
 [Obsolete ("Use 'CVPixelFormatComponentRangeKeys.FullRange' instead.")]
 public static Foundation.NSString ComponentRangeFullRangeKey;
 [Obsolete ("Use 'CVPixelFormatKeys.ComponentRange' instead.")]
 public static Foundation.NSString ComponentRangeKey;
 [Obsolete ("Use 'CVPixelFormatComponentRangeKeys.VideoRange' instead.")]
 public static Foundation.NSString ComponentRangeVideoRangeKey;
 [Obsolete ("Use 'CVPixelFormatComponentRangeKeys.WideRange' instead.")]
 public static Foundation.NSString ComponentRangeWideRangeKey;
 [Obsolete ("Use 'CVPixelFormatKeys.Constant' instead.")]
 public static Foundation.NSString ConstantKey;
 [Obsolete ("Use 'CVPixelFormatKeys.ContainsGrayscale' instead.")]
 public static Foundation.NSString ContainsGrayscaleKey;
 [Obsolete ("Use 'CVPixelFormatKeys.ContainsRgb' instead.")]
 public static Foundation.NSString ContainsRgb;
 [Obsolete ("Use 'CVPixelFormatKeys.ContainsSenselArray' instead.")]
 public static Foundation.NSString ContainsSenselArray;
 [Obsolete ("Use 'CVPixelFormatKeys.ContainsYCbCr' instead.")]
 public static Foundation.NSString ContainsYCbCr;
 [Obsolete ("Use 'CVPixelFormatKeys.FillExtendedPixelsCallback' instead.")]
 public static Foundation.NSString FillExtendedPixelsCallbackKey;
 [Obsolete ("Use 'CVPixelFormatKeys.FourCCKey' instead.")]
 public static Foundation.NSString FourCCKey;
 [Obsolete ("Use 'CVPixelFormatKeys.HorizontalSubsampling' instead.")]
 public static Foundation.NSString HorizontalSubsamplingKey;
 [Obsolete ("Use 'CVPixelFormatKeys.Name' instead.")]
 public static Foundation.NSString NameKey;
 [Obsolete ("Use 'CVPixelFormatKeys.OpenGLCompatibility' instead.")]
 public static Foundation.NSString OpenGLCompatibilityKey;
 [Obsolete ("Use 'CVPixelFormatKeys.OpenGLFormat' instead.")]
 public static Foundation.NSString OpenGLFormatKey;
 [Obsolete ("Use 'CVPixelFormatKeys.OpenGLInternalFormat' instead.")]
 public static Foundation.NSString OpenGLInternalFormatKey;
 [Obsolete ("Use 'CVPixelFormatKeys.OpenGLType' instead.")]
 public static Foundation.NSString OpenGLTypeKey;
 [Obsolete ("Use 'CVPixelFormatKeys.Planes' instead.")]
 public static Foundation.NSString PlanesKey;
 [Obsolete ("Use 'CVPixelFormatKeys.QDCompatibility' instead.")]
 public static Foundation.NSString QDCompatibilityKey;
 [Obsolete ("Use 'CVPixelFormatKeys.VerticalSubsampling' instead.")]
 public static Foundation.NSString VerticalSubsamplingKey;

Added properties:

public static CVPixelFormatType[] AllPixelFormatTypes { get; }
public int? BitsPerBlock { get; set; }
public Foundation.NSData BlackBlock { get; set; }
public int? BlockHeight { get; set; }
public int? BlockHorizontalAlignment { get; set; }
public int? BlockVerticalAlignment { get; set; }
public int? BlockWidth { get; set; }
public bool? CGBitmapContextCompatibility { get; set; }
public CoreGraphics.CGBitmapFlags? CGBitmapInfo { get; set; }
public bool? CGImageCompatibility { get; set; }
public Foundation.NSObject CodecType { get; set; }
public CVPixelFormatComponentRange ComponentRange { get; set; }
public CVPixelFormatType? Constant { get; set; }
public bool? ContainsAlpha { get; set; }
public bool? ContainsGrayscale { get; set; }
public Foundation.NSData FillExtendedPixelsCallback { get; set; }
public CVFillExtendedPixelsCallBackDataStruct? FillExtendedPixelsCallbackStruct { get; set; }
public bool? FormatContainsRgb { get; set; }
public bool? FormatContainsSenselArray { get; set; }
public bool? FormatContainsYCbCr { get; set; }
public int? FourCC { get; set; }
public int? HorizontalSubsampling { get; set; }
public string Name { get; set; }
public bool? OpenGLCompatibility { get; set; }
public int? OpenGLFormat { get; set; }
public int? OpenGLInternalFormat { get; set; }
public int? OpenGLType { get; set; }
public Foundation.NSObject Planes { get; set; }
public bool? QDCompatibility { get; set; }
public int? VerticalSubsampling { get; set; }

Added methods:

public static CVPixelFormatDescription CreatePixelFormat (CVPixelFormatType pixelFormat);
public static bool IsPixelFormatAvailable (CVPixelFormatType pixelFormat);
public static void Register (CVPixelFormatDescription description, CVPixelFormatType pixelFormat);

New Type: CoreVideo.CVFillExtendedPixelsCallBackDataStruct

public struct CVFillExtendedPixelsCallBackDataStruct {
	// fields
	public method System.Byte *(System.IntPtr,System.IntPtr) FillCallBack;
	public IntPtr UserInfo;
	public IntPtr Version;
	// methods
	public bool CallFillCallback (CVPixelBuffer buffer);
}

New Type: CoreVideo.CVPixelFormatComponentRange

public class CVPixelFormatComponentRange : Foundation.DictionaryContainer {
	// constructors
	public CVPixelFormatComponentRange ();
	public CVPixelFormatComponentRange (Foundation.NSDictionary dictionary);
	// properties
	public Foundation.NSObject FullRange { get; set; }
	public Foundation.NSObject VideoRange { get; set; }
	public Foundation.NSObject WideRange { get; set; }
}

New Type: CoreVideo.CVPixelFormatComponentRangeKeys

public class CVPixelFormatComponentRangeKeys {
	// constructors
	public CVPixelFormatComponentRangeKeys ();
	// properties
	public static Foundation.NSString FullRange { get; }
	public static Foundation.NSString VideoRange { get; }
	public static Foundation.NSString WideRange { get; }
}

New Type: CoreVideo.CVPixelFormatKeys

public class CVPixelFormatKeys {
	// constructors
	public CVPixelFormatKeys ();
	// properties
	public static Foundation.NSString BitsPerBlock { get; }
	public static Foundation.NSString BlackBlock { get; }
	public static Foundation.NSString BlockHeight { get; }
	public static Foundation.NSString BlockHorizontalAlignment { get; }
	public static Foundation.NSString BlockVerticalAlignment { get; }
	public static Foundation.NSString BlockWidth { get; }
	public static Foundation.NSString CGBitmapContextCompatibility { get; }
	public static Foundation.NSString CGBitmapInfo { get; }
	public static Foundation.NSString CGImageCompatibility { get; }
	public static Foundation.NSString CodecType { get; }
	public static Foundation.NSString ComponentRange { get; }
	public static Foundation.NSString Constant { get; }
	public static Foundation.NSString ContainsAlpha { get; }
	public static Foundation.NSString ContainsGrayscale { get; }
	public static Foundation.NSString ContainsRgb { get; }
	public static Foundation.NSString ContainsSenselArray { get; }
	public static Foundation.NSString ContainsYCbCr { get; }
	public static Foundation.NSString FillExtendedPixelsCallback { get; }
	public static Foundation.NSString FourCC { get; }
	public static Foundation.NSString HorizontalSubsampling { get; }
	public static Foundation.NSString Name { get; }
	public static Foundation.NSString OpenGLCompatibility { get; }
	public static Foundation.NSString OpenGLFormat { get; }
	public static Foundation.NSString OpenGLInternalFormat { get; }
	public static Foundation.NSString OpenGLType { get; }
	public static Foundation.NSString Planes { get; }
	public static Foundation.NSString QDCompatibility { get; }
	public static Foundation.NSString VerticalSubsampling { get; }
}

Namespace Foundation

Type Changed: Foundation.NSNumber

Added methods:

public bool IsEqualTo (NSNumber number);
public virtual bool IsEqualTo (IntPtr number);

Namespace Network

Type Changed: Network.NWConnection

Obsoleted methods:

 [Obsolete ("Use 'SetViabilityChangeHandler' instead.")]
 public void SetBooleanChangeHandler (System.Action<bool> callback);

Added method:

public void SetViabilityChangeHandler (System.Action<bool> callback);

Namespace ObjCRuntime

Type Changed: ObjCRuntime.Dlfcn

Added methods:

public static byte GetByte (IntPtr handle, string symbol);
public static short GetInt16 (IntPtr handle, string symbol);
public static sbyte GetSByte (IntPtr handle, string symbol);
public static ushort GetUInt16 (IntPtr handle, string symbol);
public static void SetByte (IntPtr handle, string symbol, byte value);
public static void SetInt16 (IntPtr handle, string symbol, short value);
public static void SetObject (IntPtr handle, string symbol, Foundation.NSObject value);
public static void SetSByte (IntPtr handle, string symbol, sbyte value);
public static void SetUInt16 (IntPtr handle, string symbol, ushort value);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment