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

API diff: Microsoft.tvOS.dll

Microsoft.tvOS.dll

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 constructor:

public MLMultiArray (CoreVideo.CVPixelBuffer pixelBuffer, Foundation.NSNumber[] shape);

Added property:

public virtual CoreVideo.CVPixelBuffer PixelBuffer { get; }

Added methods:

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

Type Changed: CoreML.MLPredictionOptions

Added property:

public virtual Foundation.NSDictionary OutputBackings { get; set; }

New Type: CoreML.MLModelAsset

public class MLModelAsset : Foundation.NSObject {
	// constructors
	protected MLModelAsset (Foundation.NSObjectFlag t);
	protected MLModelAsset (ObjCRuntime.NativeHandle handle);
	// properties
	public override ObjCRuntime.NativeHandle 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 (nint arg1, nint arg2);
	// properties
	public nint Arg1 { get; set; }
	public nint Arg2 { get; set; }
}

New Type: CoreML.MLMultiArrayMutableDataPointer

public class MLMultiArrayMutableDataPointer {
	// constructors
	public MLMultiArrayMutableDataPointer (nint arg1, nint arg2, Foundation.NSArray<Foundation.NSNumber> arg3);
	// properties
	public nint 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