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/cf2c8f755a462f09e20ab87c133b6e46 to your computer and use it in GitHub Desktop.
Save vs-mobiletools-engineering-service2/cf2c8f755a462f09e20ab87c133b6e46 to your computer and use it in GitHub Desktop.
previous-api-comparison/diff/dotnet/Microsoft.iOS.Ref/ref/net8.0/Microsoft.iOS.md

API diff: Microsoft.iOS.dll

Microsoft.iOS.dll

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 (ObjCRuntime.NativeHandle handle);
	// properties
	public override ObjCRuntime.NativeHandle ClassHandle { get; }
}

New Type: CoreML.MLGpuComputeDevice

public class MLGpuComputeDevice : Foundation.NSObject, IMLComputeDeviceProtocol, ObjCRuntime.INativeObject, System.IDisposable {
	// constructors
	protected MLGpuComputeDevice (Foundation.NSObjectFlag t);
	protected MLGpuComputeDevice (ObjCRuntime.NativeHandle handle);
	// properties
	public override ObjCRuntime.NativeHandle 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 (ObjCRuntime.NativeHandle handle);
	// properties
	public override ObjCRuntime.NativeHandle ClassHandle { get; }
	public virtual IntPtr TotalCoreCount { get; }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment