Skip to content

Instantly share code, notes, and snippets.

@vs-mobiletools-engineering-service2
Created July 18, 2022 05:10
Show Gist options
  • Save vs-mobiletools-engineering-service2/8668fec3ed8f9483eae85e1019a9783c to your computer and use it in GitHub Desktop.
Save vs-mobiletools-engineering-service2/8668fec3ed8f9483eae85e1019a9783c to your computer and use it in GitHub Desktop.
previous-api-comparison/mac-api-diff.md
title description author ms.author ms.date ms.topic ms.assetid ms.prod
Xamarin.Mac SDK API diff
List of API changes for Xamarin.Mac.
spouliot
sepoulio
7/18/2022
article
f833f3cb-eea7-c1b8-a706-dfbb597746ea
xamarin

Xamarin.Mac SDK API diff

Namespace CoreML

Type Changed: CoreML.MLComputeUnits

Added value:

CPUAndNeuralEngine = 3,

Type Changed: CoreML.MLModel

Added methods:

public static void CompileModel (Foundation.NSUrl modelUrl, System.Action<Foundation.NSUrl,Foundation.NSError> handler);
public static System.Threading.Tasks.Task<Foundation.NSUrl> CompileModelAsync (Foundation.NSUrl modelUrl);
public static void Load (MLModelAsset asset, MLModelConfiguration configuration, System.Action<MLModel,Foundation.NSError> handler);
public static System.Threading.Tasks.Task<MLModel> LoadAsync (MLModelAsset asset, MLModelConfiguration configuration);

Type Changed: CoreML.MLModelConfiguration

Added property:

public virtual string ModelDisplayName { get; set; }

Type Changed: CoreML.MLMultiArray

Added methods:

public virtual void GetBytes (System.Action<System.IntPtr,System.nint> handler);
public virtual System.Threading.Tasks.Task<MLMultiArrayDataPointer> GetBytesAsync ();
public virtual void GetMutableBytes (System.Action<System.IntPtr,System.nint,Foundation.NSArray<Foundation.NSNumber>> handler);
public virtual System.Threading.Tasks.Task<MLMultiArrayMutableDataPointer> GetMutableBytesAsync ();

New Type: CoreML.MLModelAsset

public class MLModelAsset : Foundation.NSObject {
	// constructors
	protected MLModelAsset (Foundation.NSObjectFlag t);
	protected MLModelAsset (IntPtr handle);
	// properties
	public override IntPtr ClassHandle { get; }
	// methods
	public static MLModelAsset Create (Foundation.NSData specificationData, out Foundation.NSError error);
}

New Type: CoreML.MLModelCompilationLoadResult

public class MLModelCompilationLoadResult {
	// constructors
	public MLModelCompilationLoadResult (MLModel arg1);
	// properties
	public MLModel Arg1 { get; set; }
}

New Type: CoreML.MLModelCompilationResult

public class MLModelCompilationResult {
	// constructors
	public MLModelCompilationResult (Foundation.NSUrl arg1);
	// properties
	public Foundation.NSUrl Arg1 { get; set; }
}

New Type: CoreML.MLMultiArrayDataPointer

public class MLMultiArrayDataPointer {
	// constructors
	public MLMultiArrayDataPointer (IntPtr arg1, nint arg2);
	// properties
	public IntPtr Arg1 { get; set; }
	public nint Arg2 { get; set; }
}

New Type: CoreML.MLMultiArrayMutableDataPointer

public class MLMultiArrayMutableDataPointer {
	// constructors
	public MLMultiArrayMutableDataPointer (IntPtr arg1, nint arg2, Foundation.NSArray<Foundation.NSNumber> arg3);
	// properties
	public IntPtr Arg1 { get; set; }
	public nint Arg2 { get; set; }
	public Foundation.NSArray<Foundation.NSNumber> Arg3 { get; set; }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment