Skip to content

Instantly share code, notes, and snippets.

@vs-mobiletools-engineering-service2
Created September 3, 2023 17:38
Show Gist options
  • Save vs-mobiletools-engineering-service2/df8220e382e81394ed89011d09d6e8be to your computer and use it in GitHub Desktop.
Save vs-mobiletools-engineering-service2/df8220e382e81394ed89011d09d6e8be to your computer and use it in GitHub Desktop.
previous-api-comparison/ios-api-diff.md
title description author ms.author ms.date ms.topic ms.assetid ms.prod
Xamarin.iOS SDK API diff
List of API changes for Xamarin.iOS.
spouliot
sepoulio
9/3/2023
article
f7934223-2a8c-d5d4-788f-79d2f8610aa7
xamarin

Xamarin.iOS SDK API diff

Namespace CoreML

Type Changed: CoreML.MLModel

Added properties:

public static IMLComputeDeviceProtocol[] AllComputeDevices { get; }
public static IMLComputeDeviceProtocol[] AvailableComputeDevices { get; }

Added methods:

public virtual void GetPrediction (IMLFeatureProvider input, System.Action<IMLFeatureProvider,Foundation.NSError> completionHandler);
public virtual void GetPrediction (IMLFeatureProvider input, MLPredictionOptions options, System.Action<IMLFeatureProvider,Foundation.NSError> completionHandler);
public virtual System.Threading.Tasks.Task<IMLFeatureProvider> GetPredictionAsync (IMLFeatureProvider input);
public virtual System.Threading.Tasks.Task<IMLFeatureProvider> GetPredictionAsync (IMLFeatureProvider input, MLPredictionOptions options);

Type Changed: CoreML.MLModelError

Added value:

PredictionCancelled = 11,

New Type: CoreML.IMLComputeDeviceProtocol

public interface IMLComputeDeviceProtocol : ObjCRuntime.INativeObject, System.IDisposable {
}

New Type: CoreML.MLCpuComputeDevice

public class MLCpuComputeDevice : Foundation.NSObject, IMLComputeDeviceProtocol, ObjCRuntime.INativeObject, System.IDisposable {
	// constructors
	protected MLCpuComputeDevice (Foundation.NSObjectFlag t);
	protected MLCpuComputeDevice (IntPtr handle);
	// properties
	public override IntPtr ClassHandle { get; }
}

New Type: CoreML.MLGpuComputeDevice

public class MLGpuComputeDevice : Foundation.NSObject, IMLComputeDeviceProtocol, ObjCRuntime.INativeObject, System.IDisposable {
	// constructors
	protected MLGpuComputeDevice (Foundation.NSObjectFlag t);
	protected MLGpuComputeDevice (IntPtr handle);
	// properties
	public override IntPtr ClassHandle { get; }
	public virtual Metal.IMTLDevice MetalDevice { get; }
}

New Type: CoreML.MLNeuralEngineComputeDevice

public class MLNeuralEngineComputeDevice : Foundation.NSObject, IMLComputeDeviceProtocol, ObjCRuntime.INativeObject, System.IDisposable {
	// constructors
	protected MLNeuralEngineComputeDevice (Foundation.NSObjectFlag t);
	protected MLNeuralEngineComputeDevice (IntPtr handle);
	// properties
	public override IntPtr ClassHandle { get; }
	public virtual nint TotalCoreCount { get; }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment