Skip to content

Instantly share code, notes, and snippets.

@vs-mobiletools-engineering-service2
Created September 4, 2024 19:02
Show Gist options
  • Save vs-mobiletools-engineering-service2/2d928d85ea2dff3722ceb133b22d183a to your computer and use it in GitHub Desktop.
Save vs-mobiletools-engineering-service2/2d928d85ea2dff3722ceb133b22d183a to your computer and use it in GitHub Desktop.
previous-api-comparison/diff/dotnet/Microsoft.tvOS.Ref/ref/net8.0/Microsoft.tvOS.md

API diff: Microsoft.tvOS.dll

Microsoft.tvOS.dll

Namespace CoreML

Type Changed: CoreML.MLFeatureDescription

Added property:

public virtual MLStateConstraint StateConstraint { get; }

Type Changed: CoreML.MLFeatureType

Added value:

State = 8,

Type Changed: CoreML.MLModelAsset

Added methods:

public static MLModelAsset Create (Foundation.NSUrl compiledModelUrl, out Foundation.NSError error);
public static MLModelAsset Create (Foundation.NSData specificationData, Foundation.NSDictionary<Foundation.NSUrl,Foundation.NSData> blobMapping, out Foundation.NSError error);
public virtual void GetFunctionNames (MLModelAssetGetFunctionNamesCompletionHandler handler);
public virtual void GetModelDescription (MLModelAssetGetModelDescriptionCompletionHandler handler);
public virtual void GetModelDescription (string functionName, MLModelAssetGetModelDescriptionCompletionHandler handler);

Type Changed: CoreML.MLModelConfiguration

Added property:

public virtual string FunctionName { get; set; }

Type Changed: CoreML.MLModelDescription

Added property:

public virtual Foundation.NSDictionary<Foundation.NSString,CoreML.MLFeatureDescription> StateDescriptionsByName { get; }

Type Changed: CoreML.MLMultiArray

Added constructor:

public MLMultiArray (Foundation.NSNumber[] shape, MLMultiArrayDataType dataType, Foundation.NSNumber[] strides);

Added method:

public virtual void TransferToMultiArray (MLMultiArray destinationMultiArray);

Type Changed: CoreML.MLMultiArrayDataType

Added value:

Float16 = 65552,

Type Changed: CoreML.MLOptimizationHints

Added property:

public virtual MLSpecializationStrategy SpecializationStrategy { get; set; }

New Type: CoreML.MLModelAssetGetFunctionNamesCompletionHandler

public sealed delegate MLModelAssetGetFunctionNamesCompletionHandler : System.MulticastDelegate {
	// constructors
	public MLModelAssetGetFunctionNamesCompletionHandler (object object, IntPtr method);
	// methods
	public virtual System.IAsyncResult BeginInvoke (string[] functionNames, Foundation.NSError error, System.AsyncCallback callback, object object);
	public virtual void EndInvoke (System.IAsyncResult result);
	public virtual void Invoke (string[] functionNames, Foundation.NSError error);
}

New Type: CoreML.MLModelAssetGetModelDescriptionCompletionHandler

public sealed delegate MLModelAssetGetModelDescriptionCompletionHandler : System.MulticastDelegate {
	// constructors
	public MLModelAssetGetModelDescriptionCompletionHandler (object object, IntPtr method);
	// methods
	public virtual System.IAsyncResult BeginInvoke (MLModelDescription modelDescription, Foundation.NSError error, System.AsyncCallback callback, object object);
	public virtual void EndInvoke (System.IAsyncResult result);
	public virtual void Invoke (MLModelDescription modelDescription, Foundation.NSError error);
}

New Type: CoreML.MLModel_MLState

public static class MLModel_MLState {
	// methods
	public static MLState CreateNewState (this MLModel This);
	public static IMLFeatureProvider GetPrediction (this MLModel This, IMLFeatureProvider inputFeatures, MLState state, out Foundation.NSError error);
	public static IMLFeatureProvider GetPrediction (this MLModel This, IMLFeatureProvider inputFeatures, MLState state, MLPredictionOptions options, MLStateGetPredictionCompletionHandler completionHandler);
	public static IMLFeatureProvider GetPrediction (this MLModel This, IMLFeatureProvider inputFeatures, MLState state, MLPredictionOptions options, out Foundation.NSError error);
}

New Type: CoreML.MLSpecializationStrategy

[Serializable]
public enum MLSpecializationStrategy {
	Default = 0,
	FastPrediction = 1,
}

New Type: CoreML.MLState

public class MLState : Foundation.NSObject {
	// constructors
	protected MLState (Foundation.NSObjectFlag t);
	protected MLState (ObjCRuntime.NativeHandle handle);
	// properties
	public override ObjCRuntime.NativeHandle ClassHandle { get; }
	// methods
	public virtual void GetMultiArrayForState (string stateName, MLStateGetMultiArrayForStateHandler handler);
}

New Type: CoreML.MLStateConstraint

public class MLStateConstraint : Foundation.NSObject, Foundation.INSCoding, Foundation.INSSecureCoding, ObjCRuntime.INativeObject, System.IDisposable {
	// constructors
	public MLStateConstraint (Foundation.NSCoder coder);
	protected MLStateConstraint (Foundation.NSObjectFlag t);
	protected MLStateConstraint (ObjCRuntime.NativeHandle handle);
	// properties
	public virtual Foundation.NSNumber[] BufferShape { get; }
	public override ObjCRuntime.NativeHandle ClassHandle { get; }
	public virtual MLMultiArrayDataType DataType { get; }
	// methods
	public virtual void EncodeTo (Foundation.NSCoder encoder);
}

New Type: CoreML.MLStateGetMultiArrayForStateHandler

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

New Type: CoreML.MLStateGetPredictionCompletionHandler

public sealed delegate MLStateGetPredictionCompletionHandler : System.MulticastDelegate {
	// constructors
	public MLStateGetPredictionCompletionHandler (object object, IntPtr method);
	// methods
	public virtual System.IAsyncResult BeginInvoke (IMLFeatureProvider output, Foundation.NSError error, System.AsyncCallback callback, object object);
	public virtual void EndInvoke (System.IAsyncResult result);
	public virtual void Invoke (IMLFeatureProvider output, Foundation.NSError error);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment