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/4a66821312517e9bee5d9be4d6ec9d38 to your computer and use it in GitHub Desktop.
Save vs-mobiletools-engineering-service2/4a66821312517e9bee5d9be4d6ec9d38 to your computer and use it in GitHub Desktop.
generator-diff/generator.diff
diff --git a/old/dotnet/IDE/obj/common/bgen/bgen.AssemblyInfo.cs b/new/dotnet/IDE/obj/common/bgen/bgen.AssemblyInfo.cs
index c080b47..ded0187 100644
--- a/old/dotnet/IDE/obj/common/bgen/bgen.AssemblyInfo.cs
+++ b/new/dotnet/IDE/obj/common/bgen/bgen.AssemblyInfo.cs
@@ -13,7 +13,7 @@ using System.Reflection;
[assembly: System.Reflection.AssemblyCompanyAttribute("bgen")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
-[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+515d0ce8f7e1a72ea00f875f442d032d3f0e3969")]
+[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+9a8964f0264b00e9e7b961cbc4fb8a1d009ec09a")]
[assembly: System.Reflection.AssemblyProductAttribute("bgen")]
[assembly: System.Reflection.AssemblyTitleAttribute("bgen")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
diff --git a/old/dotnet/IDE/obj/common/bgen/bgen.sourcelink.json b/new/dotnet/IDE/obj/common/bgen/bgen.sourcelink.json
index 6a5432a..cadd4fa 100644
--- a/old/dotnet/IDE/obj/common/bgen/bgen.sourcelink.json
+++ b/new/dotnet/IDE/obj/common/bgen/bgen.sourcelink.json
@@ -1 +1 @@
-{"documents":{"/Users/builder/azdo/_work/4/a/change-detection/tmp/src/xamarin-macios/*":"https://raw.githubusercontent.com/xamarin/xamarin-macios/515d0ce8f7e1a72ea00f875f442d032d3f0e3969/*","/Users/builder/azdo/_work/4/a/change-detection/tmp/src/xamarin-macios/external/api-tools/*":"https://raw.githubusercontent.com/xamarin/api-tools/1fbbe003a141231439c08b23989d3dc910bd6182/*","/Users/builder/azdo/_work/4/a/change-detection/tmp/src/xamarin-macios/external/macios-binaries/*":"https://raw.githubusercontent.com/xamarin/macios-binaries/7813391e75d7373ee073ef2d5716e3c607c8636a/*","/Users/builder/azdo/_work/4/a/change-detection/tmp/src/xamarin-macios/external/MonoTouch.Dialog/*":"https://raw.githubusercontent.com/xamarin/MonoTouch.Dialog/77b3337dbbc9e3e2f1b06dab3d37d2822488b0b3/*","/Users/builder/azdo/_work/4/a/change-detection/tmp/src/xamarin-macios/external/opentk/*":"https://raw.githubusercontent.com/mono/opentk/396bc90c7ac2e7ce442840a5e8bd91e5e79b381e/*","/Users/builder/azdo/_work/4/a/change-detection/tmp/src/xamarin-macios/external/Touch.Unit/*":"https://raw.githubusercontent.com/xamarin/Touch.Unit/92a072683b69b2f61f235a7a249c2c7f261236d4/*","/Users/builder/azdo/_work/4/a/change-detection/tmp/src/xamarin-macios/external/Xamarin.MacDev/*":"https://raw.githubusercontent.com/xamarin/Xamarin.MacDev/bd3d13362bfda48a34fa0cc419744c4a1f4dc45a/*"}}
\ No newline at end of file
+{"documents":{"/Users/builder/azdo/_work/4/s/xamarin-macios/*":"https://raw.githubusercontent.com/xamarin/xamarin-macios/9a8964f0264b00e9e7b961cbc4fb8a1d009ec09a/*","/Users/builder/azdo/_work/4/s/xamarin-macios/external/api-tools/*":"https://raw.githubusercontent.com/xamarin/api-tools/1fbbe003a141231439c08b23989d3dc910bd6182/*","/Users/builder/azdo/_work/4/s/xamarin-macios/external/macios-binaries/*":"https://raw.githubusercontent.com/xamarin/macios-binaries/7813391e75d7373ee073ef2d5716e3c607c8636a/*","/Users/builder/azdo/_work/4/s/xamarin-macios/external/MonoTouch.Dialog/*":"https://raw.githubusercontent.com/xamarin/MonoTouch.Dialog/77b3337dbbc9e3e2f1b06dab3d37d2822488b0b3/*","/Users/builder/azdo/_work/4/s/xamarin-macios/external/opentk/*":"https://raw.githubusercontent.com/mono/opentk/396bc90c7ac2e7ce442840a5e8bd91e5e79b381e/*","/Users/builder/azdo/_work/4/s/xamarin-macios/external/Touch.Unit/*":"https://raw.githubusercontent.com/xamarin/Touch.Unit/92a072683b69b2f61f235a7a249c2c7f261236d4/*","/Users/builder/azdo/_work/4/s/xamarin-macios/external/Xamarin.MacDev/*":"https://raw.githubusercontent.com/xamarin/Xamarin.MacDev/bd3d13362bfda48a34fa0cc419744c4a1f4dc45a/*"}}
\ No newline at end of file
diff --git a/old/dotnet/ios/SourceLink.json b/new/dotnet/ios/SourceLink.json
index bcad111..bf3f4eb 100644
--- a/old/dotnet/ios/SourceLink.json
+++ b/new/dotnet/ios/SourceLink.json
@@ -1,5 +1,5 @@
{
"documents": {
- "/Users/builder/azdo/_work/4/a/change-detection/tmp/src/xamarin-macios/src*": "https://raw.githubusercontent.com/xamarin/xamarin-macios/515d0ce8f7e1a72ea00f875f442d032d3f0e3969/src*"
+ "/Users/builder/azdo/_work/4/s/xamarin-macios/src*": "https://raw.githubusercontent.com/xamarin/xamarin-macios/9a8964f0264b00e9e7b961cbc4fb8a1d009ec09a/src*"
}
}
diff --git a/old/dotnet/ios/doc/Microsoft.iOS.xml b/new/dotnet/ios/doc/Microsoft.iOS.xml
index 9209387..1c5b754 100644
--- a/old/dotnet/ios/doc/Microsoft.iOS.xml
+++ b/new/dotnet/ios/doc/Microsoft.iOS.xml
@@ -132738,6 +132738,147 @@
</para>
</remarks>
</member>
+ <member name="P:CoreML.MLState.ClassHandle">
+ <summary>The Objective-C class handle for this class.</summary>
+ <value>The pointer to the Objective-C class.</value>
+ <remarks>
+ Each managed class mirrors an unmanaged Objective-C class.
+ This value contains the pointer to the Objective-C class.
+ It is similar to calling the managed <see cref="M:ObjCRuntime.Class.GetHandle(System.String)" /> or the native <see href="https://developer.apple.com/documentation/objectivec/1418952-objc_getclass">objc_getClass</see> method with the type name.
+ </remarks>
+ </member>
+ <member name="M:CoreML.MLState.#ctor(Foundation.NSObjectFlag)">
+ <summary>Constructor to call on derived classes to skip initialization and merely allocate the object.</summary>
+ <param name="t">Unused sentinel value, pass NSObjectFlag.Empty.</param>
+ <remarks>
+ <para>
+ This constructor should be called by derived classes when they completely construct the object in managed code and merely want the runtime to allocate and initialize the <see cref="T:Foundation.NSObject" />.
+ This is required to implement the two-step initialization process that Objective-C uses, the first step is to perform the object allocation, the second step is to initialize the object.
+ When developers invoke this constructor, they take advantage of a direct path that goes all the way up to <see cref="T:Foundation.NSObject" /> to merely allocate the object's memory and bind the Objective-C and C# objects together.
+ The actual initialization of the object is up to the developer.
+ </para>
+ <para>
+ This constructor is typically used by the binding generator to allocate the object, but prevent the actual initialization to take place.
+ Once the allocation has taken place, the constructor has to initialize the object.
+ With constructors generated by the binding generator this means that it manually invokes one of the "init" methods to initialize the object.
+ </para>
+ <para>It is the developer's responsibility to completely initialize the object if they chain up using this constructor chain.</para>
+ <para>
+ In general, if the developer's constructor invokes the corresponding base implementation, then it should also call an Objective-C init method.
+ If this is not the case, developers should instead chain to the proper constructor in their class.
+ </para>
+ <para>
+ The argument value is ignored and merely ensures that the only code that is executed is the construction phase is the basic <see cref="T:Foundation.NSObject" /> allocation and runtime type registration.
+ Typically the chaining would look like this:
+ </para>
+ <example>
+ <code lang="csharp lang-csharp"><![CDATA[
+ //
+ // The NSObjectFlag constructor merely allocates the object and registers the C# class with the Objective-C runtime if necessary.
+ // No actual initXxx method is invoked, that is done later in the constructor
+ //
+ // This is taken from the iOS SDK's source code for the UIView class:
+ //
+ [Export ("initWithFrame:")]
+ public UIView (System.Drawing.RectangleF frame) : base (NSObjectFlag.Empty)
+ {
+ // Invoke the init method now.
+ var initWithFrame = new Selector ("initWithFrame:").Handle;
+ if (IsDirectBinding) {
+ Handle = ObjCRuntime.Messaging.IntPtr_objc_msgSend_CGRect (this.Handle, initWithFrame, frame);
+ } else {
+ Handle = ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper_CGRect (this.SuperHandle, initWithFrame, frame);
+ }
+ }
+ ]]></code>
+ </example>
+ </remarks>
+ </member>
+ <member name="M:CoreML.MLState.#ctor(ObjCRuntime.NativeHandle)">
+ <summary>A constructor used when creating managed representations of unmanaged objects. Called by the runtime.</summary>
+ <param name="handle">Pointer (handle) to the unmanaged object.</param>
+ <remarks>
+ <para>
+ This constructor is invoked by the runtime infrastructure (<see cref="M:ObjCRuntime.Runtime.GetNSObject(System.IntPtr)" />) to create a new managed representation for a pointer to an unmanaged Objective-C object.
+ Developers should not invoke this method directly, instead they should call <see cref="M:ObjCRuntime.Runtime.GetNSObject(System.IntPtr)" /> as it will prevent two instances of a managed object pointing to the same native object.
+ </para>
+ </remarks>
+ </member>
+ <member name="P:CoreML.MLStateConstraint.ClassHandle">
+ <summary>The Objective-C class handle for this class.</summary>
+ <value>The pointer to the Objective-C class.</value>
+ <remarks>
+ Each managed class mirrors an unmanaged Objective-C class.
+ This value contains the pointer to the Objective-C class.
+ It is similar to calling the managed <see cref="M:ObjCRuntime.Class.GetHandle(System.String)" /> or the native <see href="https://developer.apple.com/documentation/objectivec/1418952-objc_getclass">objc_getClass</see> method with the type name.
+ </remarks>
+ </member>
+ <member name="M:CoreML.MLStateConstraint.#ctor(Foundation.NSCoder)">
+ <summary>A constructor that initializes the object from the data stored in the unarchiver object.</summary>
+ <param name="coder">The unarchiver object.</param>
+ <remarks>
+ <para>This constructor is provided to allow the class to be initialized from an unarchiver (for example, during NIB deserialization). This is part of the <see cref="T:Foundation.NSCoding" /> protocol.</para>
+ <para>If developers want to create a subclass of this object and continue to support deserialization from an archive, they should implement a constructor with an identical signature: taking a single parameter of type <see cref="T:Foundation.NSCoder" /> and decorate it with the <c>[Export("initWithCoder:"]</c> attribute.</para>
+ <para>The state of this object can also be serialized by using the <see cref="M:Foundation.INSCoding.EncodeTo(Foundation.NSCoder)" /> companion method.</para>
+ </remarks>
+ </member>
+ <member name="M:CoreML.MLStateConstraint.#ctor(Foundation.NSObjectFlag)">
+ <summary>Constructor to call on derived classes to skip initialization and merely allocate the object.</summary>
+ <param name="t">Unused sentinel value, pass NSObjectFlag.Empty.</param>
+ <remarks>
+ <para>
+ This constructor should be called by derived classes when they completely construct the object in managed code and merely want the runtime to allocate and initialize the <see cref="T:Foundation.NSObject" />.
+ This is required to implement the two-step initialization process that Objective-C uses, the first step is to perform the object allocation, the second step is to initialize the object.
+ When developers invoke this constructor, they take advantage of a direct path that goes all the way up to <see cref="T:Foundation.NSObject" /> to merely allocate the object's memory and bind the Objective-C and C# objects together.
+ The actual initialization of the object is up to the developer.
+ </para>
+ <para>
+ This constructor is typically used by the binding generator to allocate the object, but prevent the actual initialization to take place.
+ Once the allocation has taken place, the constructor has to initialize the object.
+ With constructors generated by the binding generator this means that it manually invokes one of the "init" methods to initialize the object.
+ </para>
+ <para>It is the developer's responsibility to completely initialize the object if they chain up using this constructor chain.</para>
+ <para>
+ In general, if the developer's constructor invokes the corresponding base implementation, then it should also call an Objective-C init method.
+ If this is not the case, developers should instead chain to the proper constructor in their class.
+ </para>
+ <para>
+ The argument value is ignored and merely ensures that the only code that is executed is the construction phase is the basic <see cref="T:Foundation.NSObject" /> allocation and runtime type registration.
+ Typically the chaining would look like this:
+ </para>
+ <example>
+ <code lang="csharp lang-csharp"><![CDATA[
+ //
+ // The NSObjectFlag constructor merely allocates the object and registers the C# class with the Objective-C runtime if necessary.
+ // No actual initXxx method is invoked, that is done later in the constructor
+ //
+ // This is taken from the iOS SDK's source code for the UIView class:
+ //
+ [Export ("initWithFrame:")]
+ public UIView (System.Drawing.RectangleF frame) : base (NSObjectFlag.Empty)
+ {
+ // Invoke the init method now.
+ var initWithFrame = new Selector ("initWithFrame:").Handle;
+ if (IsDirectBinding) {
+ Handle = ObjCRuntime.Messaging.IntPtr_objc_msgSend_CGRect (this.Handle, initWithFrame, frame);
+ } else {
+ Handle = ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper_CGRect (this.SuperHandle, initWithFrame, frame);
+ }
+ }
+ ]]></code>
+ </example>
+ </remarks>
+ </member>
+ <member name="M:CoreML.MLStateConstraint.#ctor(ObjCRuntime.NativeHandle)">
+ <summary>A constructor used when creating managed representations of unmanaged objects. Called by the runtime.</summary>
+ <param name="handle">Pointer (handle) to the unmanaged object.</param>
+ <remarks>
+ <para>
+ This constructor is invoked by the runtime infrastructure (<see cref="M:ObjCRuntime.Runtime.GetNSObject(System.IntPtr)" />) to create a new managed representation for a pointer to an unmanaged Objective-C object.
+ Developers should not invoke this method directly, instead they should call <see cref="M:ObjCRuntime.Runtime.GetNSObject(System.IntPtr)" /> as it will prevent two instances of a managed object pointing to the same native object.
+ </para>
+ </remarks>
+ </member>
<member name="P:CoreML.MLTask.ClassHandle">
<summary>The Objective-C class handle for this class.</summary>
<value>The pointer to the Objective-C class.</value>
diff --git a/old/dotnet/ios/generated-sources/CoreML/MLFeatureDescription.g.cs b/new/dotnet/ios/generated-sources/CoreML/MLFeatureDescription.g.cs
index a3831ab..66e291e 100644
--- a/old/dotnet/ios/generated-sources/CoreML/MLFeatureDescription.g.cs
+++ b/new/dotnet/ios/generated-sources/CoreML/MLFeatureDescription.g.cs
@@ -309,6 +309,27 @@ namespace CoreML {
}
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [SupportedOSPlatform ("tvos18.0")]
+ [SupportedOSPlatform ("macos15.0")]
+ [SupportedOSPlatform ("ios18.0")]
+ [SupportedOSPlatform ("maccatalyst18.0")]
+ public virtual MLStateConstraint? StateConstraint {
+ [Export ("stateConstraint")]
+ get {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ MLStateConstraint? ret;
+ if (IsDirectBinding) {
+ ret = Runtime.GetNSObject<MLStateConstraint> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend (this.Handle, Selector.GetHandle ("stateConstraint")))!;
+ } else {
+ ret = Runtime.GetNSObject<MLStateConstraint> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSendSuper (this.SuperHandle, Selector.GetHandle ("stateConstraint")))!;
+ }
+ return ret!;
+ #endif
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public virtual MLFeatureType Type {
[Export ("type")]
get {
diff --git a/old/dotnet/ios/generated-sources/CoreML/MLFeatureType.g.cs b/new/dotnet/ios/generated-sources/CoreML/MLFeatureType.g.cs
index eeae28a..645934e 100644
--- a/old/dotnet/ios/generated-sources/CoreML/MLFeatureType.g.cs
+++ b/new/dotnet/ios/generated-sources/CoreML/MLFeatureType.g.cs
@@ -68,5 +68,10 @@ namespace CoreML {
[SupportedOSPlatform ("maccatalyst")]
[SupportedOSPlatform ("macos")]
Sequence = 7,
+ [SupportedOSPlatform ("tvos18.0")]
+ [SupportedOSPlatform ("macos15.0")]
+ [SupportedOSPlatform ("ios18.0")]
+ [SupportedOSPlatform ("maccatalyst18.0")]
+ State = 8,
}
}
diff --git a/old/dotnet/ios/generated-sources/CoreML/MLModelAsset.g.cs b/new/dotnet/ios/generated-sources/CoreML/MLModelAsset.g.cs
index 0ea032d..b392bf1 100644
--- a/old/dotnet/ios/generated-sources/CoreML/MLModelAsset.g.cs
+++ b/new/dotnet/ios/generated-sources/CoreML/MLModelAsset.g.cs
@@ -155,5 +155,114 @@ namespace CoreML {
return ret!;
#endif
}
+ [Export ("modelAssetWithURL:error:")]
+ [SupportedOSPlatform ("tvos18.0")]
+ [SupportedOSPlatform ("macos15.0")]
+ [SupportedOSPlatform ("ios18.0")]
+ [SupportedOSPlatform ("maccatalyst18.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe static MLModelAsset? Create (NSUrl compiledModelUrl, out NSError? error)
+ {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ var compiledModelUrl__handle__ = compiledModelUrl!.GetNonNullHandle (nameof (compiledModelUrl));
+ NativeHandle errorValue = IntPtr.Zero;
+ MLModelAsset? ret;
+ ret = Runtime.GetNSObject<MLModelAsset> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_ref_NativeHandle (class_ptr, Selector.GetHandle ("modelAssetWithURL:error:"), compiledModelUrl__handle__, &errorValue))!;
+ error = Runtime.GetNSObject<NSError> (errorValue)!;
+ return ret!;
+ #endif
+ }
+ [Export ("modelAssetWithSpecificationData:blobMapping:error:")]
+ [SupportedOSPlatform ("tvos18.0")]
+ [SupportedOSPlatform ("macos15.0")]
+ [SupportedOSPlatform ("ios18.0")]
+ [SupportedOSPlatform ("maccatalyst18.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe static MLModelAsset? Create (NSData specificationData, NSDictionary<NSUrl, NSData> blobMapping, out NSError? error)
+ {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ var specificationData__handle__ = specificationData!.GetNonNullHandle (nameof (specificationData));
+ var blobMapping__handle__ = blobMapping!.GetNonNullHandle (nameof (blobMapping));
+ NativeHandle errorValue = IntPtr.Zero;
+ MLModelAsset? ret;
+ ret = Runtime.GetNSObject<MLModelAsset> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_NativeHandle_ref_NativeHandle (class_ptr, Selector.GetHandle ("modelAssetWithSpecificationData:blobMapping:error:"), specificationData__handle__, blobMapping__handle__, &errorValue))!;
+ error = Runtime.GetNSObject<NSError> (errorValue)!;
+ return ret!;
+ #endif
+ }
+ [Export ("functionNamesWithCompletionHandler:")]
+ [SupportedOSPlatform ("tvos18.0")]
+ [SupportedOSPlatform ("macos15.0")]
+ [SupportedOSPlatform ("ios18.0")]
+ [SupportedOSPlatform ("maccatalyst18.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual void GetFunctionNames ([BlockProxy (typeof (ObjCRuntime.Trampolines.NIDMLModelAssetGetFunctionNamesCompletionHandler))]MLModelAssetGetFunctionNamesCompletionHandler handler)
+ {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ if (handler is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (handler));
+ using var block_handler = Trampolines.SDMLModelAssetGetFunctionNamesCompletionHandler.CreateBlock (handler);
+ BlockLiteral *block_ptr_handler = &block_handler;
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("functionNamesWithCompletionHandler:"), (IntPtr) block_ptr_handler);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_NativeHandle (this.SuperHandle, Selector.GetHandle ("functionNamesWithCompletionHandler:"), (IntPtr) block_ptr_handler);
+ }
+ #endif
+ }
+ [Export ("modelDescriptionWithCompletionHandler:")]
+ [SupportedOSPlatform ("tvos18.0")]
+ [SupportedOSPlatform ("macos15.0")]
+ [SupportedOSPlatform ("ios18.0")]
+ [SupportedOSPlatform ("maccatalyst18.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual void GetModelDescription ([BlockProxy (typeof (ObjCRuntime.Trampolines.NIDMLModelAssetGetModelDescriptionCompletionHandler))]MLModelAssetGetModelDescriptionCompletionHandler handler)
+ {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ if (handler is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (handler));
+ using var block_handler = Trampolines.SDMLModelAssetGetModelDescriptionCompletionHandler.CreateBlock (handler);
+ BlockLiteral *block_ptr_handler = &block_handler;
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("modelDescriptionWithCompletionHandler:"), (IntPtr) block_ptr_handler);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_NativeHandle (this.SuperHandle, Selector.GetHandle ("modelDescriptionWithCompletionHandler:"), (IntPtr) block_ptr_handler);
+ }
+ #endif
+ }
+ [Export ("modelDescriptionOfFunctionNamed:completionHandler:")]
+ [SupportedOSPlatform ("tvos18.0")]
+ [SupportedOSPlatform ("macos15.0")]
+ [SupportedOSPlatform ("ios18.0")]
+ [SupportedOSPlatform ("maccatalyst18.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual void GetModelDescription (string functionName, [BlockProxy (typeof (ObjCRuntime.Trampolines.NIDMLModelAssetGetModelDescriptionCompletionHandler))]MLModelAssetGetModelDescriptionCompletionHandler handler)
+ {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ if (functionName is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (functionName));
+ if (handler is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (handler));
+ var nsfunctionName = CFString.CreateNative (functionName);
+ using var block_handler = Trampolines.SDMLModelAssetGetModelDescriptionCompletionHandler.CreateBlock (handler);
+ BlockLiteral *block_ptr_handler = &block_handler;
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_NativeHandle_NativeHandle (this.Handle, Selector.GetHandle ("modelDescriptionOfFunctionNamed:completionHandler:"), nsfunctionName, (IntPtr) block_ptr_handler);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_NativeHandle_NativeHandle (this.SuperHandle, Selector.GetHandle ("modelDescriptionOfFunctionNamed:completionHandler:"), nsfunctionName, (IntPtr) block_ptr_handler);
+ }
+ CFString.ReleaseNative (nsfunctionName);
+ #endif
+ }
} /* class MLModelAsset */
}
diff --git a/old/dotnet/ios/generated-sources/CoreML/MLModelConfiguration.g.cs b/new/dotnet/ios/generated-sources/CoreML/MLModelConfiguration.g.cs
index 79c3dca..b85019f 100644
--- a/old/dotnet/ios/generated-sources/CoreML/MLModelConfiguration.g.cs
+++ b/new/dotnet/ios/generated-sources/CoreML/MLModelConfiguration.g.cs
@@ -275,6 +275,39 @@ namespace CoreML {
}
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [SupportedOSPlatform ("tvos18.0")]
+ [SupportedOSPlatform ("macos15.0")]
+ [SupportedOSPlatform ("ios18.0")]
+ [SupportedOSPlatform ("maccatalyst18.0")]
+ public virtual string? FunctionName {
+ [Export ("functionName", ArgumentSemantic.Copy)]
+ get {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ if (IsDirectBinding) {
+ return CFString.FromHandle (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend (this.Handle, Selector.GetHandle ("functionName")))!;
+ } else {
+ return CFString.FromHandle (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSendSuper (this.SuperHandle, Selector.GetHandle ("functionName")))!;
+ }
+ #endif
+ }
+ [Export ("setFunctionName:", ArgumentSemantic.Copy)]
+ set {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ var nsvalue = CFString.CreateNative (value);
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("setFunctionName:"), nsvalue);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_NativeHandle (this.SuperHandle, Selector.GetHandle ("setFunctionName:"), nsvalue);
+ }
+ CFString.ReleaseNative (nsvalue);
+ #endif
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
[SupportedOSPlatform ("tvos16.0")]
[SupportedOSPlatform ("macos13.0")]
[SupportedOSPlatform ("ios16.0")]
diff --git a/old/dotnet/ios/generated-sources/CoreML/MLModelDescription.g.cs b/new/dotnet/ios/generated-sources/CoreML/MLModelDescription.g.cs
index 1770d67..19e82a9 100644
--- a/old/dotnet/ios/generated-sources/CoreML/MLModelDescription.g.cs
+++ b/new/dotnet/ios/generated-sources/CoreML/MLModelDescription.g.cs
@@ -298,6 +298,27 @@ namespace CoreML {
}
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [SupportedOSPlatform ("tvos18.0")]
+ [SupportedOSPlatform ("macos15.0")]
+ [SupportedOSPlatform ("ios18.0")]
+ [SupportedOSPlatform ("maccatalyst18.0")]
+ public virtual NSDictionary<NSString, MLFeatureDescription> StateDescriptionsByName {
+ [Export ("stateDescriptionsByName")]
+ get {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ NSDictionary<NSString, MLFeatureDescription>? ret;
+ if (IsDirectBinding) {
+ ret = Runtime.GetNSObject<NSDictionary<NSString, MLFeatureDescription>> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend (this.Handle, Selector.GetHandle ("stateDescriptionsByName")))!;
+ } else {
+ ret = Runtime.GetNSObject<NSDictionary<NSString, MLFeatureDescription>> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSendSuper (this.SuperHandle, Selector.GetHandle ("stateDescriptionsByName")))!;
+ }
+ return ret!;
+ #endif
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
[SupportedOSPlatform ("tvos13.0")]
[SupportedOSPlatform ("ios13.0")]
[SupportedOSPlatform ("maccatalyst")]
diff --git a/new/dotnet/ios/generated-sources/CoreML/MLModel_MLState.g.cs b/new/dotnet/ios/generated-sources/CoreML/MLModel_MLState.g.cs
new file mode 100644
index 0000000..1b62368
--- /dev/null
+++ b/new/dotnet/ios/generated-sources/CoreML/MLModel_MLState.g.cs
@@ -0,0 +1,131 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Drawing;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.Versioning;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using UIKit;
+using GLKit;
+using Metal;
+using CoreML;
+using MapKit;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Contacts;
+using Security;
+using Messages;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using QuickLook;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using CoreMotion;
+using ObjCRuntime;
+using AddressBook;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using NewsstandKit;
+using FileProvider;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace CoreML {
+ [SupportedOSPlatform ("tvos18.0")]
+ [SupportedOSPlatform ("macos15.0")]
+ [SupportedOSPlatform ("ios18.0")]
+ [SupportedOSPlatform ("maccatalyst18.0")]
+ public unsafe static partial class MLModel_MLState {
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ #if ARCH_32
+ #pragma warning disable 169
+ static readonly NativeHandle class_ptr;
+ #pragma warning restore 169
+ #else
+ static readonly NativeHandle class_ptr = Class.GetHandle ("MLModel");
+ #endif
+ [Export ("newState")]
+ [return: ReleaseAttribute ()]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public static MLState CreateNewState (this MLModel This)
+ {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ MLState? ret;
+ ret = Runtime.GetNSObject<MLState> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend (This.Handle, Selector.GetHandle ("newState")))!;
+ if (ret is not null)
+ global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release"));
+ return ret!;
+ #endif
+ }
+ [Export ("predictionFromFeatures:usingState:error:")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe static IMLFeatureProvider? GetPrediction (this MLModel This, IMLFeatureProvider inputFeatures, MLState state, out NSError error)
+ {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ var inputFeatures__handle__ = inputFeatures!.GetNonNullHandle (nameof (inputFeatures));
+ var state__handle__ = state!.GetNonNullHandle (nameof (state));
+ NativeHandle errorValue = IntPtr.Zero;
+ IMLFeatureProvider? ret;
+ ret = Runtime.GetINativeObject<IMLFeatureProvider> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_NativeHandle_ref_NativeHandle (This.Handle, Selector.GetHandle ("predictionFromFeatures:usingState:error:"), inputFeatures__handle__, state__handle__, &errorValue), false)!;
+ error = Runtime.GetNSObject<NSError> (errorValue)!;
+ return ret!;
+ #endif
+ }
+ [Export ("predictionFromFeatures:usingState:options:error:")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe static IMLFeatureProvider? GetPrediction (this MLModel This, IMLFeatureProvider inputFeatures, MLState state, MLPredictionOptions options, out NSError error)
+ {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ var inputFeatures__handle__ = inputFeatures!.GetNonNullHandle (nameof (inputFeatures));
+ var state__handle__ = state!.GetNonNullHandle (nameof (state));
+ var options__handle__ = options!.GetNonNullHandle (nameof (options));
+ NativeHandle errorValue = IntPtr.Zero;
+ IMLFeatureProvider? ret;
+ ret = Runtime.GetINativeObject<IMLFeatureProvider> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_NativeHandle_NativeHandle_ref_NativeHandle (This.Handle, Selector.GetHandle ("predictionFromFeatures:usingState:options:error:"), inputFeatures__handle__, state__handle__, options__handle__, &errorValue), false)!;
+ error = Runtime.GetNSObject<NSError> (errorValue)!;
+ return ret!;
+ #endif
+ }
+ [Export ("predictionFromFeatures:usingState:options:completionHandler:")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe static IMLFeatureProvider? GetPrediction (this MLModel This, IMLFeatureProvider inputFeatures, MLState state, MLPredictionOptions options, [BlockProxy (typeof (ObjCRuntime.Trampolines.NIDMLStateGetPredictionCompletionHandler))]MLStateGetPredictionCompletionHandler completionHandler)
+ {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ var inputFeatures__handle__ = inputFeatures!.GetNonNullHandle (nameof (inputFeatures));
+ var state__handle__ = state!.GetNonNullHandle (nameof (state));
+ var options__handle__ = options!.GetNonNullHandle (nameof (options));
+ if (completionHandler is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (completionHandler));
+ using var block_completionHandler = Trampolines.SDMLStateGetPredictionCompletionHandler.CreateBlock (completionHandler);
+ BlockLiteral *block_ptr_completionHandler = &block_completionHandler;
+ return Runtime.GetINativeObject<IMLFeatureProvider> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_NativeHandle_NativeHandle_NativeHandle (This.Handle, Selector.GetHandle ("predictionFromFeatures:usingState:options:completionHandler:"), inputFeatures__handle__, state__handle__, options__handle__, (IntPtr) block_ptr_completionHandler), false)!;
+ #endif
+ }
+ } /* class MLModel_MLState */
+}
diff --git a/old/dotnet/ios/generated-sources/CoreML/MLMultiArray.g.cs b/new/dotnet/ios/generated-sources/CoreML/MLMultiArray.g.cs
index c73ef34..5add1ee 100644
--- a/old/dotnet/ios/generated-sources/CoreML/MLMultiArray.g.cs
+++ b/new/dotnet/ios/generated-sources/CoreML/MLMultiArray.g.cs
@@ -168,6 +168,33 @@ namespace CoreML {
nsa_shape.Dispose ();
error = Runtime.GetNSObject<NSError> (errorValue)!;
}
+ [Export ("initWithShape:dataType:strides:")]
+ [SupportedOSPlatform ("ios18.0")]
+ [SupportedOSPlatform ("tvos18.0")]
+ [SupportedOSPlatform ("maccatalyst18.0")]
+ [SupportedOSPlatform ("macos15.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public MLMultiArray (NSNumber[] shape, MLMultiArrayDataType dataType, NSNumber[] strides)
+ : base (NSObjectFlag.Empty)
+ {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ if (shape is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (shape));
+ if (strides is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (strides));
+ var nsa_shape = NSArray.FromNSObjects (shape);
+ var nsa_strides = NSArray.FromNSObjects (strides);
+ if (IsDirectBinding) {
+ InitializeHandle (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_IntPtr_NativeHandle (this.Handle, Selector.GetHandle ("initWithShape:dataType:strides:"), nsa_shape.Handle, (IntPtr) (long) dataType, nsa_strides.Handle), "initWithShape:dataType:strides:");
+ } else {
+ InitializeHandle (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSendSuper_NativeHandle_IntPtr_NativeHandle (this.SuperHandle, Selector.GetHandle ("initWithShape:dataType:strides:"), nsa_shape.Handle, (IntPtr) (long) dataType, nsa_strides.Handle), "initWithShape:dataType:strides:");
+ }
+ nsa_shape.Dispose ();
+ nsa_strides.Dispose ();
+ #endif
+ }
[Export ("initWithDataPointer:shape:dataType:strides:deallocator:error:")]
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public unsafe MLMultiArray (nint dataPointer, NSNumber[] shape, MLMultiArrayDataType dataType, NSNumber[] strides, [BlockProxy (typeof (ObjCRuntime.Trampolines.NIDActionArity1V45))]global::System.Action<nint>? deallocator, out NSError error)
@@ -385,6 +412,25 @@ namespace CoreML {
var obj__handle__ = obj!.GetNonNullHandle (nameof (obj));
global::ObjCRuntime.Messaging.void_objc_msgSend_NativeHandle_IntPtr (this.Handle, Selector.GetHandle ("setObject:forKeyedSubscript:"), obj__handle__, key);
}
+ [Export ("transferToMultiArray:")]
+ [SupportedOSPlatform ("ios18.0")]
+ [SupportedOSPlatform ("tvos18.0")]
+ [SupportedOSPlatform ("maccatalyst18.0")]
+ [SupportedOSPlatform ("macos15.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual void TransferToMultiArray (MLMultiArray destinationMultiArray)
+ {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ var destinationMultiArray__handle__ = destinationMultiArray!.GetNonNullHandle (nameof (destinationMultiArray));
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("transferToMultiArray:"), destinationMultiArray__handle__);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_NativeHandle (this.SuperHandle, Selector.GetHandle ("transferToMultiArray:"), destinationMultiArray__handle__);
+ }
+ #endif
+ }
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public virtual nint Count {
[Export ("count")]
diff --git a/old/dotnet/ios/generated-sources/CoreML/MLMultiArrayDataType.g.cs b/new/dotnet/ios/generated-sources/CoreML/MLMultiArrayDataType.g.cs
index b7ef38c..e19035d 100644
--- a/old/dotnet/ios/generated-sources/CoreML/MLMultiArrayDataType.g.cs
+++ b/new/dotnet/ios/generated-sources/CoreML/MLMultiArrayDataType.g.cs
@@ -59,6 +59,11 @@ namespace CoreML {
Double = 65600,
Float64 = 65600,
Float32 = 65568,
+ [SupportedOSPlatform ("macos12.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ [SupportedOSPlatform ("tvos16.0")]
+ Float16 = 65552,
Float = 65568,
Int32 = 131104,
}
diff --git a/old/dotnet/ios/generated-sources/CoreML/MLOptimizationHints.g.cs b/new/dotnet/ios/generated-sources/CoreML/MLOptimizationHints.g.cs
index 92d0d51..8622de4 100644
--- a/old/dotnet/ios/generated-sources/CoreML/MLOptimizationHints.g.cs
+++ b/new/dotnet/ios/generated-sources/CoreML/MLOptimizationHints.g.cs
@@ -241,5 +241,38 @@ namespace CoreML {
#endif
}
}
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [SupportedOSPlatform ("tvos18.0")]
+ [SupportedOSPlatform ("macos15.0")]
+ [SupportedOSPlatform ("ios18.0")]
+ [SupportedOSPlatform ("maccatalyst18.0")]
+ public virtual MLSpecializationStrategy SpecializationStrategy {
+ [Export ("specializationStrategy", ArgumentSemantic.Assign)]
+ get {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ MLSpecializationStrategy ret;
+ if (IsDirectBinding) {
+ ret = (MLSpecializationStrategy) (long) global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, Selector.GetHandle ("specializationStrategy"));
+ } else {
+ ret = (MLSpecializationStrategy) (long) global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, Selector.GetHandle ("specializationStrategy"));
+ }
+ return ret!;
+ #endif
+ }
+ [Export ("setSpecializationStrategy:", ArgumentSemantic.Assign)]
+ set {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_IntPtr (this.Handle, Selector.GetHandle ("setSpecializationStrategy:"), (IntPtr) (long) value);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr (this.SuperHandle, Selector.GetHandle ("setSpecializationStrategy:"), (IntPtr) (long) value);
+ }
+ #endif
+ }
+ }
} /* class MLOptimizationHints */
}
diff --git a/new/dotnet/ios/generated-sources/CoreML/MLSpecializationStrategy.g.cs b/new/dotnet/ios/generated-sources/CoreML/MLSpecializationStrategy.g.cs
new file mode 100644
index 0000000..4173709
--- /dev/null
+++ b/new/dotnet/ios/generated-sources/CoreML/MLSpecializationStrategy.g.cs
@@ -0,0 +1,61 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Drawing;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.Versioning;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using UIKit;
+using GLKit;
+using Metal;
+using CoreML;
+using MapKit;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Contacts;
+using Security;
+using Messages;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using QuickLook;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using CoreMotion;
+using ObjCRuntime;
+using AddressBook;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using NewsstandKit;
+using FileProvider;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace CoreML {
+ [SupportedOSPlatform ("tvos18.0")]
+ [SupportedOSPlatform ("macos15.0")]
+ [SupportedOSPlatform ("ios18.0")]
+ [SupportedOSPlatform ("maccatalyst18.0")]
+ [Native]
+ public enum MLSpecializationStrategy : long {
+ Default = 0,
+ FastPrediction = 1,
+ }
+}
diff --git a/new/dotnet/ios/generated-sources/CoreML/MLState.g.cs b/new/dotnet/ios/generated-sources/CoreML/MLState.g.cs
new file mode 100644
index 0000000..fa032c6
--- /dev/null
+++ b/new/dotnet/ios/generated-sources/CoreML/MLState.g.cs
@@ -0,0 +1,162 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Drawing;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.Versioning;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using UIKit;
+using GLKit;
+using Metal;
+using CoreML;
+using MapKit;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Contacts;
+using Security;
+using Messages;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using QuickLook;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using CoreMotion;
+using ObjCRuntime;
+using AddressBook;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using NewsstandKit;
+using FileProvider;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace CoreML {
+ [Register("MLState", true)]
+ [SupportedOSPlatform ("tvos18.0")]
+ [SupportedOSPlatform ("macos15.0")]
+ [SupportedOSPlatform ("ios18.0")]
+ [SupportedOSPlatform ("maccatalyst18.0")]
+ public unsafe partial class MLState : NSObject {
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ #if ARCH_32
+ #pragma warning disable 649
+ static readonly NativeHandle class_ptr;
+ #pragma warning restore 649
+ #else
+ static readonly NativeHandle class_ptr = Class.GetHandle ("MLState");
+ #endif
+ /// <summary>The Objective-C class handle for this class.</summary>
+ /// <value>The pointer to the Objective-C class.</value>
+ /// <remarks>
+ /// Each managed class mirrors an unmanaged Objective-C class.
+ /// This value contains the pointer to the Objective-C class.
+ /// It is similar to calling the managed <see cref="ObjCRuntime.Class.GetHandle(string)" /> or the native <see href="https://developer.apple.com/documentation/objectivec/1418952-objc_getclass">objc_getClass</see> method with the type name.
+ /// </remarks>
+ public override NativeHandle ClassHandle { get { return class_ptr; } }
+ /// <summary>Constructor to call on derived classes to skip initialization and merely allocate the object.</summary>
+ /// <param name="t">Unused sentinel value, pass NSObjectFlag.Empty.</param>
+ /// <remarks>
+ /// <para>
+ /// This constructor should be called by derived classes when they completely construct the object in managed code and merely want the runtime to allocate and initialize the <see cref="Foundation.NSObject" />.
+ /// This is required to implement the two-step initialization process that Objective-C uses, the first step is to perform the object allocation, the second step is to initialize the object.
+ /// When developers invoke this constructor, they take advantage of a direct path that goes all the way up to <see cref="Foundation.NSObject" /> to merely allocate the object's memory and bind the Objective-C and C# objects together.
+ /// The actual initialization of the object is up to the developer.
+ /// </para>
+ /// <para>
+ /// This constructor is typically used by the binding generator to allocate the object, but prevent the actual initialization to take place.
+ /// Once the allocation has taken place, the constructor has to initialize the object.
+ /// With constructors generated by the binding generator this means that it manually invokes one of the "init" methods to initialize the object.
+ /// </para>
+ /// <para>It is the developer's responsibility to completely initialize the object if they chain up using this constructor chain.</para>
+ /// <para>
+ /// In general, if the developer's constructor invokes the corresponding base implementation, then it should also call an Objective-C init method.
+ /// If this is not the case, developers should instead chain to the proper constructor in their class.
+ /// </para>
+ /// <para>
+ /// The argument value is ignored and merely ensures that the only code that is executed is the construction phase is the basic <see cref="Foundation.NSObject" /> allocation and runtime type registration.
+ /// Typically the chaining would look like this:
+ /// </para>
+ /// <example>
+ /// <code lang="csharp lang-csharp"><![CDATA[
+ /// //
+ /// // The NSObjectFlag constructor merely allocates the object and registers the C# class with the Objective-C runtime if necessary.
+ /// // No actual initXxx method is invoked, that is done later in the constructor
+ /// //
+ /// // This is taken from the iOS SDK's source code for the UIView class:
+ /// //
+ /// [Export ("initWithFrame:")]
+ /// public UIView (System.Drawing.RectangleF frame) : base (NSObjectFlag.Empty)
+ /// {
+ /// // Invoke the init method now.
+ /// var initWithFrame = new Selector ("initWithFrame:").Handle;
+ /// if (IsDirectBinding) {
+ /// Handle = ObjCRuntime.Messaging.IntPtr_objc_msgSend_CGRect (this.Handle, initWithFrame, frame);
+ /// } else {
+ /// Handle = ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper_CGRect (this.SuperHandle, initWithFrame, frame);
+ /// }
+ /// }
+ /// ]]></code>
+ /// </example>
+ /// </remarks>
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected MLState (NSObjectFlag t) : base (t)
+ {
+ }
+
+ /// <summary>A constructor used when creating managed representations of unmanaged objects. Called by the runtime.</summary>
+ /// <param name="handle">Pointer (handle) to the unmanaged object.</param>
+ /// <remarks>
+ /// <para>
+ /// This constructor is invoked by the runtime infrastructure (<see cref="ObjCRuntime.Runtime.GetNSObject(System.IntPtr)" />) to create a new managed representation for a pointer to an unmanaged Objective-C object.
+ /// Developers should not invoke this method directly, instead they should call <see cref="ObjCRuntime.Runtime.GetNSObject(System.IntPtr)" /> as it will prevent two instances of a managed object pointing to the same native object.
+ /// </para>
+ /// </remarks>
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected internal MLState (NativeHandle handle) : base (handle)
+ {
+ }
+
+ [Export ("getMultiArrayForStateNamed:handler:")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual void GetMultiArrayForState (string stateName, [BlockProxy (typeof (ObjCRuntime.Trampolines.NIDMLStateGetMultiArrayForStateHandler))]MLStateGetMultiArrayForStateHandler handler)
+ {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ if (stateName is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (stateName));
+ if (handler is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (handler));
+ var nsstateName = CFString.CreateNative (stateName);
+ using var block_handler = Trampolines.SDMLStateGetMultiArrayForStateHandler.CreateBlock (handler);
+ BlockLiteral *block_ptr_handler = &block_handler;
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_NativeHandle_NativeHandle (this.Handle, Selector.GetHandle ("getMultiArrayForStateNamed:handler:"), nsstateName, (IntPtr) block_ptr_handler);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_NativeHandle_NativeHandle (this.SuperHandle, Selector.GetHandle ("getMultiArrayForStateNamed:handler:"), nsstateName, (IntPtr) block_ptr_handler);
+ }
+ CFString.ReleaseNative (nsstateName);
+ #endif
+ }
+ } /* class MLState */
+}
diff --git a/new/dotnet/ios/generated-sources/CoreML/MLStateConstraint.g.cs b/new/dotnet/ios/generated-sources/CoreML/MLStateConstraint.g.cs
new file mode 100644
index 0000000..41a7ec3
--- /dev/null
+++ b/new/dotnet/ios/generated-sources/CoreML/MLStateConstraint.g.cs
@@ -0,0 +1,213 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Drawing;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.Versioning;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using UIKit;
+using GLKit;
+using Metal;
+using CoreML;
+using MapKit;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Contacts;
+using Security;
+using Messages;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using QuickLook;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using CoreMotion;
+using ObjCRuntime;
+using AddressBook;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using NewsstandKit;
+using FileProvider;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace CoreML {
+ [Register("MLStateConstraint", true)]
+ [SupportedOSPlatform ("tvos18.0")]
+ [SupportedOSPlatform ("macos15.0")]
+ [SupportedOSPlatform ("ios18.0")]
+ [SupportedOSPlatform ("maccatalyst18.0")]
+ public unsafe partial class MLStateConstraint : NSObject, INSCoding, INSSecureCoding {
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ #if ARCH_32
+ #pragma warning disable 649
+ static readonly NativeHandle class_ptr;
+ #pragma warning restore 649
+ #else
+ static readonly NativeHandle class_ptr = Class.GetHandle ("MLStateConstraint");
+ #endif
+ /// <summary>The Objective-C class handle for this class.</summary>
+ /// <value>The pointer to the Objective-C class.</value>
+ /// <remarks>
+ /// Each managed class mirrors an unmanaged Objective-C class.
+ /// This value contains the pointer to the Objective-C class.
+ /// It is similar to calling the managed <see cref="ObjCRuntime.Class.GetHandle(string)" /> or the native <see href="https://developer.apple.com/documentation/objectivec/1418952-objc_getclass">objc_getClass</see> method with the type name.
+ /// </remarks>
+ public override NativeHandle ClassHandle { get { return class_ptr; } }
+ /// <summary>A constructor that initializes the object from the data stored in the unarchiver object.</summary>
+ /// <param name="coder">The unarchiver object.</param>
+ /// <remarks>
+ /// <para>This constructor is provided to allow the class to be initialized from an unarchiver (for example, during NIB deserialization). This is part of the <see cref="Foundation.NSCoding" /> protocol.</para>
+ /// <para>If developers want to create a subclass of this object and continue to support deserialization from an archive, they should implement a constructor with an identical signature: taking a single parameter of type <see cref="Foundation.NSCoder" /> and decorate it with the <c>[Export("initWithCoder:"]</c> attribute.</para>
+ /// <para>The state of this object can also be serialized by using the <see cref="Foundation.INSCoding.EncodeTo" /> companion method.</para>
+ /// </remarks>
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [DesignatedInitializer]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ [Export ("initWithCoder:")]
+ public MLStateConstraint (NSCoder coder) : base (NSObjectFlag.Empty)
+ {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ if (IsDirectBinding) {
+ InitializeHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend_IntPtr (this.Handle, Selector.GetHandle ("initWithCoder:"), coder.Handle), "initWithCoder:");
+ } else {
+ InitializeHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper_IntPtr (this.SuperHandle, Selector.GetHandle ("initWithCoder:"), coder.Handle), "initWithCoder:");
+ }
+ #endif
+ }
+
+ /// <summary>Constructor to call on derived classes to skip initialization and merely allocate the object.</summary>
+ /// <param name="t">Unused sentinel value, pass NSObjectFlag.Empty.</param>
+ /// <remarks>
+ /// <para>
+ /// This constructor should be called by derived classes when they completely construct the object in managed code and merely want the runtime to allocate and initialize the <see cref="Foundation.NSObject" />.
+ /// This is required to implement the two-step initialization process that Objective-C uses, the first step is to perform the object allocation, the second step is to initialize the object.
+ /// When developers invoke this constructor, they take advantage of a direct path that goes all the way up to <see cref="Foundation.NSObject" /> to merely allocate the object's memory and bind the Objective-C and C# objects together.
+ /// The actual initialization of the object is up to the developer.
+ /// </para>
+ /// <para>
+ /// This constructor is typically used by the binding generator to allocate the object, but prevent the actual initialization to take place.
+ /// Once the allocation has taken place, the constructor has to initialize the object.
+ /// With constructors generated by the binding generator this means that it manually invokes one of the "init" methods to initialize the object.
+ /// </para>
+ /// <para>It is the developer's responsibility to completely initialize the object if they chain up using this constructor chain.</para>
+ /// <para>
+ /// In general, if the developer's constructor invokes the corresponding base implementation, then it should also call an Objective-C init method.
+ /// If this is not the case, developers should instead chain to the proper constructor in their class.
+ /// </para>
+ /// <para>
+ /// The argument value is ignored and merely ensures that the only code that is executed is the construction phase is the basic <see cref="Foundation.NSObject" /> allocation and runtime type registration.
+ /// Typically the chaining would look like this:
+ /// </para>
+ /// <example>
+ /// <code lang="csharp lang-csharp"><![CDATA[
+ /// //
+ /// // The NSObjectFlag constructor merely allocates the object and registers the C# class with the Objective-C runtime if necessary.
+ /// // No actual initXxx method is invoked, that is done later in the constructor
+ /// //
+ /// // This is taken from the iOS SDK's source code for the UIView class:
+ /// //
+ /// [Export ("initWithFrame:")]
+ /// public UIView (System.Drawing.RectangleF frame) : base (NSObjectFlag.Empty)
+ /// {
+ /// // Invoke the init method now.
+ /// var initWithFrame = new Selector ("initWithFrame:").Handle;
+ /// if (IsDirectBinding) {
+ /// Handle = ObjCRuntime.Messaging.IntPtr_objc_msgSend_CGRect (this.Handle, initWithFrame, frame);
+ /// } else {
+ /// Handle = ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper_CGRect (this.SuperHandle, initWithFrame, frame);
+ /// }
+ /// }
+ /// ]]></code>
+ /// </example>
+ /// </remarks>
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected MLStateConstraint (NSObjectFlag t) : base (t)
+ {
+ }
+
+ /// <summary>A constructor used when creating managed representations of unmanaged objects. Called by the runtime.</summary>
+ /// <param name="handle">Pointer (handle) to the unmanaged object.</param>
+ /// <remarks>
+ /// <para>
+ /// This constructor is invoked by the runtime infrastructure (<see cref="ObjCRuntime.Runtime.GetNSObject(System.IntPtr)" />) to create a new managed representation for a pointer to an unmanaged Objective-C object.
+ /// Developers should not invoke this method directly, instead they should call <see cref="ObjCRuntime.Runtime.GetNSObject(System.IntPtr)" /> as it will prevent two instances of a managed object pointing to the same native object.
+ /// </para>
+ /// </remarks>
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected internal MLStateConstraint (NativeHandle handle) : base (handle)
+ {
+ }
+
+ [Export ("encodeWithCoder:")]
+ [SupportedOSPlatform ("ios18.0")]
+ [SupportedOSPlatform ("macos15.0")]
+ [SupportedOSPlatform ("tvos18.0")]
+ [SupportedOSPlatform ("maccatalyst18.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual void EncodeTo (NSCoder encoder)
+ {
+ var encoder__handle__ = encoder!.GetNonNullHandle (nameof (encoder));
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("encodeWithCoder:"), encoder__handle__);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_NativeHandle (this.SuperHandle, Selector.GetHandle ("encodeWithCoder:"), encoder__handle__);
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual NSNumber[] BufferShape {
+ [Export ("bufferShape")]
+ get {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ NSNumber[]? ret;
+ if (IsDirectBinding) {
+ ret = CFArray.ArrayFromHandle<NSNumber>(global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend (this.Handle, Selector.GetHandle ("bufferShape")))!;
+ } else {
+ ret = CFArray.ArrayFromHandle<NSNumber>(global::ObjCRuntime.Messaging.NativeHandle_objc_msgSendSuper (this.SuperHandle, Selector.GetHandle ("bufferShape")))!;
+ }
+ return ret!;
+ #endif
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual MLMultiArrayDataType DataType {
+ [Export ("dataType")]
+ get {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ MLMultiArrayDataType ret;
+ if (IsDirectBinding) {
+ ret = (MLMultiArrayDataType) (long) global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, Selector.GetHandle ("dataType"));
+ } else {
+ ret = (MLMultiArrayDataType) (long) global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, Selector.GetHandle ("dataType"));
+ }
+ return ret!;
+ #endif
+ }
+ }
+ } /* class MLStateConstraint */
+}
diff --git a/old/dotnet/ios/generated-sources/ObjCRuntime/Trampolines.g.cs b/new/dotnet/ios/generated-sources/ObjCRuntime/Trampolines.g.cs
index 4982ce2..89c45bf 100644
--- a/old/dotnet/ios/generated-sources/ObjCRuntime/Trampolines.g.cs
+++ b/new/dotnet/ios/generated-sources/ObjCRuntime/Trampolines.g.cs
@@ -4539,6 +4539,219 @@ namespace ObjCRuntime {
}
} /* class NIDCLServiceSessionCreateHandler */
[UnmanagedFunctionPointerAttribute (CallingConvention.Cdecl)]
+ [UserDelegateType (typeof (global::CoreML.MLModelAssetGetFunctionNamesCompletionHandler))]
+ unsafe internal delegate void DMLModelAssetGetFunctionNamesCompletionHandler (IntPtr block, NativeHandle functionNames, NativeHandle error);
+ //
+ // This class bridges native block invocations that call into C#
+ //
+ static internal class SDMLModelAssetGetFunctionNamesCompletionHandler {
+ [Preserve (Conditional = true)]
+ [UnmanagedCallersOnly]
+ [UserDelegateType (typeof (global::CoreML.MLModelAssetGetFunctionNamesCompletionHandler))]
+ internal static unsafe void Invoke (IntPtr block, NativeHandle functionNames, NativeHandle error) {
+ var del = BlockLiteral.GetTarget<global::CoreML.MLModelAssetGetFunctionNamesCompletionHandler> (block);
+ if (del is not null) {
+ del (CFArray.StringArrayFromHandle (functionNames)!, Runtime.GetNSObject<NSError> (error)!);
+ }
+ }
+ internal static unsafe BlockLiteral CreateNullableBlock (global::CoreML.MLModelAssetGetFunctionNamesCompletionHandler? callback)
+ {
+ if (callback is null)
+ return default (BlockLiteral);
+ return CreateBlock (callback);
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ internal static unsafe BlockLiteral CreateBlock (global::CoreML.MLModelAssetGetFunctionNamesCompletionHandler callback)
+ {
+ delegate* unmanaged<IntPtr, NativeHandle, NativeHandle, void> trampoline = &Invoke;
+ return new BlockLiteral (trampoline, callback, typeof (SDMLModelAssetGetFunctionNamesCompletionHandler), nameof (Invoke));
+ }
+ } /* class SDMLModelAssetGetFunctionNamesCompletionHandler */
+ internal sealed class NIDMLModelAssetGetFunctionNamesCompletionHandler : TrampolineBlockBase {
+ DMLModelAssetGetFunctionNamesCompletionHandler invoker;
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe NIDMLModelAssetGetFunctionNamesCompletionHandler (BlockLiteral *block) : base (block)
+ {
+ invoker = block->GetDelegateForBlock<DMLModelAssetGetFunctionNamesCompletionHandler> ();
+ }
+ [Preserve (Conditional=true)]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe static global::CoreML.MLModelAssetGetFunctionNamesCompletionHandler? Create (IntPtr block)
+ {
+ if (block == IntPtr.Zero)
+ return null;
+ var del = (global::CoreML.MLModelAssetGetFunctionNamesCompletionHandler) GetExistingManagedDelegate (block);
+ return del ?? new NIDMLModelAssetGetFunctionNamesCompletionHandler ((BlockLiteral *) block).Invoke;
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ unsafe void Invoke (string[]? functionNames, NSError? error)
+ {
+ var error__handle__ = error.GetHandle ();
+ var nsa_functionNames = functionNames is null ? null : NSArray.FromStrings (functionNames);
+ invoker (BlockPointer, nsa_functionNames.GetHandle (), error__handle__);
+ if (nsa_functionNames is not null)
+ nsa_functionNames.Dispose ();
+ }
+ } /* class NIDMLModelAssetGetFunctionNamesCompletionHandler */
+ [UnmanagedFunctionPointerAttribute (CallingConvention.Cdecl)]
+ [UserDelegateType (typeof (global::CoreML.MLModelAssetGetModelDescriptionCompletionHandler))]
+ unsafe internal delegate void DMLModelAssetGetModelDescriptionCompletionHandler (IntPtr block, NativeHandle modelDescription, NativeHandle error);
+ //
+ // This class bridges native block invocations that call into C#
+ //
+ static internal class SDMLModelAssetGetModelDescriptionCompletionHandler {
+ [Preserve (Conditional = true)]
+ [UnmanagedCallersOnly]
+ [UserDelegateType (typeof (global::CoreML.MLModelAssetGetModelDescriptionCompletionHandler))]
+ internal static unsafe void Invoke (IntPtr block, NativeHandle modelDescription, NativeHandle error) {
+ var del = BlockLiteral.GetTarget<global::CoreML.MLModelAssetGetModelDescriptionCompletionHandler> (block);
+ if (del is not null) {
+ del ( Runtime.GetNSObject<MLModelDescription> (modelDescription)!, Runtime.GetNSObject<NSError> (error)!);
+ }
+ }
+ internal static unsafe BlockLiteral CreateNullableBlock (global::CoreML.MLModelAssetGetModelDescriptionCompletionHandler? callback)
+ {
+ if (callback is null)
+ return default (BlockLiteral);
+ return CreateBlock (callback);
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ internal static unsafe BlockLiteral CreateBlock (global::CoreML.MLModelAssetGetModelDescriptionCompletionHandler callback)
+ {
+ delegate* unmanaged<IntPtr, NativeHandle, NativeHandle, void> trampoline = &Invoke;
+ return new BlockLiteral (trampoline, callback, typeof (SDMLModelAssetGetModelDescriptionCompletionHandler), nameof (Invoke));
+ }
+ } /* class SDMLModelAssetGetModelDescriptionCompletionHandler */
+ internal sealed class NIDMLModelAssetGetModelDescriptionCompletionHandler : TrampolineBlockBase {
+ DMLModelAssetGetModelDescriptionCompletionHandler invoker;
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe NIDMLModelAssetGetModelDescriptionCompletionHandler (BlockLiteral *block) : base (block)
+ {
+ invoker = block->GetDelegateForBlock<DMLModelAssetGetModelDescriptionCompletionHandler> ();
+ }
+ [Preserve (Conditional=true)]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe static global::CoreML.MLModelAssetGetModelDescriptionCompletionHandler? Create (IntPtr block)
+ {
+ if (block == IntPtr.Zero)
+ return null;
+ var del = (global::CoreML.MLModelAssetGetModelDescriptionCompletionHandler) GetExistingManagedDelegate (block);
+ return del ?? new NIDMLModelAssetGetModelDescriptionCompletionHandler ((BlockLiteral *) block).Invoke;
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ unsafe void Invoke (global::CoreML.MLModelDescription? modelDescription, NSError? error)
+ {
+ var modelDescription__handle__ = modelDescription.GetHandle ();
+ var error__handle__ = error.GetHandle ();
+ invoker (BlockPointer, modelDescription__handle__, error__handle__);
+ }
+ } /* class NIDMLModelAssetGetModelDescriptionCompletionHandler */
+ [UnmanagedFunctionPointerAttribute (CallingConvention.Cdecl)]
+ [UserDelegateType (typeof (global::CoreML.MLStateGetMultiArrayForStateHandler))]
+ unsafe internal delegate void DMLStateGetMultiArrayForStateHandler (IntPtr block, NativeHandle buffer);
+ //
+ // This class bridges native block invocations that call into C#
+ //
+ static internal class SDMLStateGetMultiArrayForStateHandler {
+ [Preserve (Conditional = true)]
+ [UnmanagedCallersOnly]
+ [UserDelegateType (typeof (global::CoreML.MLStateGetMultiArrayForStateHandler))]
+ internal static unsafe void Invoke (IntPtr block, NativeHandle buffer) {
+ var del = BlockLiteral.GetTarget<global::CoreML.MLStateGetMultiArrayForStateHandler> (block);
+ if (del is not null) {
+ del ( Runtime.GetNSObject<MLMultiArray> (buffer)!);
+ }
+ }
+ internal static unsafe BlockLiteral CreateNullableBlock (global::CoreML.MLStateGetMultiArrayForStateHandler? callback)
+ {
+ if (callback is null)
+ return default (BlockLiteral);
+ return CreateBlock (callback);
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ internal static unsafe BlockLiteral CreateBlock (global::CoreML.MLStateGetMultiArrayForStateHandler callback)
+ {
+ delegate* unmanaged<IntPtr, NativeHandle, void> trampoline = &Invoke;
+ return new BlockLiteral (trampoline, callback, typeof (SDMLStateGetMultiArrayForStateHandler), nameof (Invoke));
+ }
+ } /* class SDMLStateGetMultiArrayForStateHandler */
+ internal sealed class NIDMLStateGetMultiArrayForStateHandler : TrampolineBlockBase {
+ DMLStateGetMultiArrayForStateHandler invoker;
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe NIDMLStateGetMultiArrayForStateHandler (BlockLiteral *block) : base (block)
+ {
+ invoker = block->GetDelegateForBlock<DMLStateGetMultiArrayForStateHandler> ();
+ }
+ [Preserve (Conditional=true)]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe static global::CoreML.MLStateGetMultiArrayForStateHandler? Create (IntPtr block)
+ {
+ if (block == IntPtr.Zero)
+ return null;
+ var del = (global::CoreML.MLStateGetMultiArrayForStateHandler) GetExistingManagedDelegate (block);
+ return del ?? new NIDMLStateGetMultiArrayForStateHandler ((BlockLiteral *) block).Invoke;
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ unsafe void Invoke (global::CoreML.MLMultiArray buffer)
+ {
+ var buffer__handle__ = buffer.GetHandle ();
+ invoker (BlockPointer, buffer__handle__);
+ }
+ } /* class NIDMLStateGetMultiArrayForStateHandler */
+ [UnmanagedFunctionPointerAttribute (CallingConvention.Cdecl)]
+ [UserDelegateType (typeof (global::CoreML.MLStateGetPredictionCompletionHandler))]
+ unsafe internal delegate void DMLStateGetPredictionCompletionHandler (IntPtr block, NativeHandle output, NativeHandle error);
+ //
+ // This class bridges native block invocations that call into C#
+ //
+ static internal class SDMLStateGetPredictionCompletionHandler {
+ [Preserve (Conditional = true)]
+ [UnmanagedCallersOnly]
+ [UserDelegateType (typeof (global::CoreML.MLStateGetPredictionCompletionHandler))]
+ internal static unsafe void Invoke (IntPtr block, NativeHandle output, NativeHandle error) {
+ var del = BlockLiteral.GetTarget<global::CoreML.MLStateGetPredictionCompletionHandler> (block);
+ if (del is not null) {
+ del ( Runtime.GetINativeObject<CoreML.IMLFeatureProvider> (output, false)!, Runtime.GetNSObject<NSError> (error)!);
+ }
+ }
+ internal static unsafe BlockLiteral CreateNullableBlock (global::CoreML.MLStateGetPredictionCompletionHandler? callback)
+ {
+ if (callback is null)
+ return default (BlockLiteral);
+ return CreateBlock (callback);
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ internal static unsafe BlockLiteral CreateBlock (global::CoreML.MLStateGetPredictionCompletionHandler callback)
+ {
+ delegate* unmanaged<IntPtr, NativeHandle, NativeHandle, void> trampoline = &Invoke;
+ return new BlockLiteral (trampoline, callback, typeof (SDMLStateGetPredictionCompletionHandler), nameof (Invoke));
+ }
+ } /* class SDMLStateGetPredictionCompletionHandler */
+ internal sealed class NIDMLStateGetPredictionCompletionHandler : TrampolineBlockBase {
+ DMLStateGetPredictionCompletionHandler invoker;
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe NIDMLStateGetPredictionCompletionHandler (BlockLiteral *block) : base (block)
+ {
+ invoker = block->GetDelegateForBlock<DMLStateGetPredictionCompletionHandler> ();
+ }
+ [Preserve (Conditional=true)]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe static global::CoreML.MLStateGetPredictionCompletionHandler? Create (IntPtr block)
+ {
+ if (block == IntPtr.Zero)
+ return null;
+ var del = (global::CoreML.MLStateGetPredictionCompletionHandler) GetExistingManagedDelegate (block);
+ return del ?? new NIDMLStateGetPredictionCompletionHandler ((BlockLiteral *) block).Invoke;
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ unsafe void Invoke (global::CoreML.IMLFeatureProvider? output, NSError error)
+ {
+ var output__handle__ = output.GetHandle ();
+ var error__handle__ = error.GetHandle ();
+ invoker (BlockPointer, output__handle__, error__handle__);
+ }
+ } /* class NIDMLStateGetPredictionCompletionHandler */
+ [UnmanagedFunctionPointerAttribute (CallingConvention.Cdecl)]
[UserDelegateType (typeof (global::CoreMidi.MidiCIDiscoveryResponseDelegate))]
unsafe internal delegate void DMidiCIDiscoveryResponseDelegate (IntPtr block, NativeHandle discoveredNodes);
//
diff --git a/old/dotnet/ios/generated-sources/SupportDelegates.g.cs b/new/dotnet/ios/generated-sources/SupportDelegates.g.cs
index 861404d..ba085f3 100644
--- a/old/dotnet/ios/generated-sources/SupportDelegates.g.cs
+++ b/new/dotnet/ios/generated-sources/SupportDelegates.g.cs
@@ -194,6 +194,13 @@ namespace CoreLocation {
public delegate bool CLLocationManagerEventArgs (CLLocationManager manager);
public delegate void CLServiceSessionCreateHandler (CLServiceSessionDiagnostic diagnostic);
}
+namespace CoreML {
+ #nullable enable
+ public delegate void MLModelAssetGetFunctionNamesCompletionHandler (String[]? functionNames, NSError? error);
+ public delegate void MLModelAssetGetModelDescriptionCompletionHandler (MLModelDescription? modelDescription, NSError? error);
+ public delegate void MLStateGetMultiArrayForStateHandler (MLMultiArray buffer);
+ public delegate void MLStateGetPredictionCompletionHandler (IMLFeatureProvider? output, NSError error);
+}
namespace CoreMidi {
#nullable enable
public delegate void MidiCIDiscoveryResponseDelegate (CoreMidi.MidiCIDiscoveredNode[] discoveredNodes);
diff --git a/old/dotnet/ios/ref/Microsoft.iOS.xml b/new/dotnet/ios/ref/Microsoft.iOS.xml
index 6c4fd9d..ed639b2 100644
--- a/old/dotnet/ios/ref/Microsoft.iOS.xml
+++ b/new/dotnet/ios/ref/Microsoft.iOS.xml
@@ -128847,6 +128847,147 @@
</para>
</remarks>
</member>
+ <member name="P:CoreML.MLState.ClassHandle">
+ <summary>The Objective-C class handle for this class.</summary>
+ <value>The pointer to the Objective-C class.</value>
+ <remarks>
+ Each managed class mirrors an unmanaged Objective-C class.
+ This value contains the pointer to the Objective-C class.
+ It is similar to calling the managed <see cref="M:ObjCRuntime.Class.GetHandle(System.String)" /> or the native <see href="https://developer.apple.com/documentation/objectivec/1418952-objc_getclass">objc_getClass</see> method with the type name.
+ </remarks>
+ </member>
+ <member name="M:CoreML.MLState.#ctor(Foundation.NSObjectFlag)">
+ <summary>Constructor to call on derived classes to skip initialization and merely allocate the object.</summary>
+ <param name="t">Unused sentinel value, pass NSObjectFlag.Empty.</param>
+ <remarks>
+ <para>
+ This constructor should be called by derived classes when they completely construct the object in managed code and merely want the runtime to allocate and initialize the <see cref="T:Foundation.NSObject" />.
+ This is required to implement the two-step initialization process that Objective-C uses, the first step is to perform the object allocation, the second step is to initialize the object.
+ When developers invoke this constructor, they take advantage of a direct path that goes all the way up to <see cref="T:Foundation.NSObject" /> to merely allocate the object's memory and bind the Objective-C and C# objects together.
+ The actual initialization of the object is up to the developer.
+ </para>
+ <para>
+ This constructor is typically used by the binding generator to allocate the object, but prevent the actual initialization to take place.
+ Once the allocation has taken place, the constructor has to initialize the object.
+ With constructors generated by the binding generator this means that it manually invokes one of the "init" methods to initialize the object.
+ </para>
+ <para>It is the developer's responsibility to completely initialize the object if they chain up using this constructor chain.</para>
+ <para>
+ In general, if the developer's constructor invokes the corresponding base implementation, then it should also call an Objective-C init method.
+ If this is not the case, developers should instead chain to the proper constructor in their class.
+ </para>
+ <para>
+ The argument value is ignored and merely ensures that the only code that is executed is the construction phase is the basic <see cref="T:Foundation.NSObject" /> allocation and runtime type registration.
+ Typically the chaining would look like this:
+ </para>
+ <example>
+ <code lang="csharp lang-csharp"><![CDATA[
+ //
+ // The NSObjectFlag constructor merely allocates the object and registers the C# class with the Objective-C runtime if necessary.
+ // No actual initXxx method is invoked, that is done later in the constructor
+ //
+ // This is taken from the iOS SDK's source code for the UIView class:
+ //
+ [Export ("initWithFrame:")]
+ public UIView (System.Drawing.RectangleF frame) : base (NSObjectFlag.Empty)
+ {
+ // Invoke the init method now.
+ var initWithFrame = new Selector ("initWithFrame:").Handle;
+ if (IsDirectBinding) {
+ Handle = ObjCRuntime.Messaging.IntPtr_objc_msgSend_CGRect (this.Handle, initWithFrame, frame);
+ } else {
+ Handle = ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper_CGRect (this.SuperHandle, initWithFrame, frame);
+ }
+ }
+ ]]></code>
+ </example>
+ </remarks>
+ </member>
+ <member name="M:CoreML.MLState.#ctor(ObjCRuntime.NativeHandle)">
+ <summary>A constructor used when creating managed representations of unmanaged objects. Called by the runtime.</summary>
+ <param name="handle">Pointer (handle) to the unmanaged object.</param>
+ <remarks>
+ <para>
+ This constructor is invoked by the runtime infrastructure (<see cref="M:ObjCRuntime.Runtime.GetNSObject(System.IntPtr)" />) to create a new managed representation for a pointer to an unmanaged Objective-C object.
+ Developers should not invoke this method directly, instead they should call <see cref="M:ObjCRuntime.Runtime.GetNSObject(System.IntPtr)" /> as it will prevent two instances of a managed object pointing to the same native object.
+ </para>
+ </remarks>
+ </member>
+ <member name="P:CoreML.MLStateConstraint.ClassHandle">
+ <summary>The Objective-C class handle for this class.</summary>
+ <value>The pointer to the Objective-C class.</value>
+ <remarks>
+ Each managed class mirrors an unmanaged Objective-C class.
+ This value contains the pointer to the Objective-C class.
+ It is similar to calling the managed <see cref="M:ObjCRuntime.Class.GetHandle(System.String)" /> or the native <see href="https://developer.apple.com/documentation/objectivec/1418952-objc_getclass">objc_getClass</see> method with the type name.
+ </remarks>
+ </member>
+ <member name="M:CoreML.MLStateConstraint.#ctor(Foundation.NSCoder)">
+ <summary>A constructor that initializes the object from the data stored in the unarchiver object.</summary>
+ <param name="coder">The unarchiver object.</param>
+ <remarks>
+ <para>This constructor is provided to allow the class to be initialized from an unarchiver (for example, during NIB deserialization). This is part of the <see cref="T:Foundation.NSCoding" /> protocol.</para>
+ <para>If developers want to create a subclass of this object and continue to support deserialization from an archive, they should implement a constructor with an identical signature: taking a single parameter of type <see cref="T:Foundation.NSCoder" /> and decorate it with the <c>[Export("initWithCoder:"]</c> attribute.</para>
+ <para>The state of this object can also be serialized by using the <see cref="M:Foundation.INSCoding.EncodeTo(Foundation.NSCoder)" /> companion method.</para>
+ </remarks>
+ </member>
+ <member name="M:CoreML.MLStateConstraint.#ctor(Foundation.NSObjectFlag)">
+ <summary>Constructor to call on derived classes to skip initialization and merely allocate the object.</summary>
+ <param name="t">Unused sentinel value, pass NSObjectFlag.Empty.</param>
+ <remarks>
+ <para>
+ This constructor should be called by derived classes when they completely construct the object in managed code and merely want the runtime to allocate and initialize the <see cref="T:Foundation.NSObject" />.
+ This is required to implement the two-step initialization process that Objective-C uses, the first step is to perform the object allocation, the second step is to initialize the object.
+ When developers invoke this constructor, they take advantage of a direct path that goes all the way up to <see cref="T:Foundation.NSObject" /> to merely allocate the object's memory and bind the Objective-C and C# objects together.
+ The actual initialization of the object is up to the developer.
+ </para>
+ <para>
+ This constructor is typically used by the binding generator to allocate the object, but prevent the actual initialization to take place.
+ Once the allocation has taken place, the constructor has to initialize the object.
+ With constructors generated by the binding generator this means that it manually invokes one of the "init" methods to initialize the object.
+ </para>
+ <para>It is the developer's responsibility to completely initialize the object if they chain up using this constructor chain.</para>
+ <para>
+ In general, if the developer's constructor invokes the corresponding base implementation, then it should also call an Objective-C init method.
+ If this is not the case, developers should instead chain to the proper constructor in their class.
+ </para>
+ <para>
+ The argument value is ignored and merely ensures that the only code that is executed is the construction phase is the basic <see cref="T:Foundation.NSObject" /> allocation and runtime type registration.
+ Typically the chaining would look like this:
+ </para>
+ <example>
+ <code lang="csharp lang-csharp"><![CDATA[
+ //
+ // The NSObjectFlag constructor merely allocates the object and registers the C# class with the Objective-C runtime if necessary.
+ // No actual initXxx method is invoked, that is done later in the constructor
+ //
+ // This is taken from the iOS SDK's source code for the UIView class:
+ //
+ [Export ("initWithFrame:")]
+ public UIView (System.Drawing.RectangleF frame) : base (NSObjectFlag.Empty)
+ {
+ // Invoke the init method now.
+ var initWithFrame = new Selector ("initWithFrame:").Handle;
+ if (IsDirectBinding) {
+ Handle = ObjCRuntime.Messaging.IntPtr_objc_msgSend_CGRect (this.Handle, initWithFrame, frame);
+ } else {
+ Handle = ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper_CGRect (this.SuperHandle, initWithFrame, frame);
+ }
+ }
+ ]]></code>
+ </example>
+ </remarks>
+ </member>
+ <member name="M:CoreML.MLStateConstraint.#ctor(ObjCRuntime.NativeHandle)">
+ <summary>A constructor used when creating managed representations of unmanaged objects. Called by the runtime.</summary>
+ <param name="handle">Pointer (handle) to the unmanaged object.</param>
+ <remarks>
+ <para>
+ This constructor is invoked by the runtime infrastructure (<see cref="M:ObjCRuntime.Runtime.GetNSObject(System.IntPtr)" />) to create a new managed representation for a pointer to an unmanaged Objective-C object.
+ Developers should not invoke this method directly, instead they should call <see cref="M:ObjCRuntime.Runtime.GetNSObject(System.IntPtr)" /> as it will prevent two instances of a managed object pointing to the same native object.
+ </para>
+ </remarks>
+ </member>
<member name="P:CoreML.MLTask.ClassHandle">
<summary>The Objective-C class handle for this class.</summary>
<value>The pointer to the Objective-C class.</value>
diff --git a/old/dotnet/maccatalyst/SourceLink.json b/new/dotnet/maccatalyst/SourceLink.json
index bcad111..bf3f4eb 100644
--- a/old/dotnet/maccatalyst/SourceLink.json
+++ b/new/dotnet/maccatalyst/SourceLink.json
@@ -1,5 +1,5 @@
{
"documents": {
- "/Users/builder/azdo/_work/4/a/change-detection/tmp/src/xamarin-macios/src*": "https://raw.githubusercontent.com/xamarin/xamarin-macios/515d0ce8f7e1a72ea00f875f442d032d3f0e3969/src*"
+ "/Users/builder/azdo/_work/4/s/xamarin-macios/src*": "https://raw.githubusercontent.com/xamarin/xamarin-macios/9a8964f0264b00e9e7b961cbc4fb8a1d009ec09a/src*"
}
}
diff --git a/old/dotnet/maccatalyst/doc/Microsoft.MacCatalyst.xml b/new/dotnet/maccatalyst/doc/Microsoft.MacCatalyst.xml
index c1d5d29..ffedb17 100644
--- a/old/dotnet/maccatalyst/doc/Microsoft.MacCatalyst.xml
+++ b/new/dotnet/maccatalyst/doc/Microsoft.MacCatalyst.xml
@@ -121807,6 +121807,147 @@
</para>
</remarks>
</member>
+ <member name="P:CoreML.MLState.ClassHandle">
+ <summary>The Objective-C class handle for this class.</summary>
+ <value>The pointer to the Objective-C class.</value>
+ <remarks>
+ Each managed class mirrors an unmanaged Objective-C class.
+ This value contains the pointer to the Objective-C class.
+ It is similar to calling the managed <see cref="M:ObjCRuntime.Class.GetHandle(System.String)" /> or the native <see href="https://developer.apple.com/documentation/objectivec/1418952-objc_getclass">objc_getClass</see> method with the type name.
+ </remarks>
+ </member>
+ <member name="M:CoreML.MLState.#ctor(Foundation.NSObjectFlag)">
+ <summary>Constructor to call on derived classes to skip initialization and merely allocate the object.</summary>
+ <param name="t">Unused sentinel value, pass NSObjectFlag.Empty.</param>
+ <remarks>
+ <para>
+ This constructor should be called by derived classes when they completely construct the object in managed code and merely want the runtime to allocate and initialize the <see cref="T:Foundation.NSObject" />.
+ This is required to implement the two-step initialization process that Objective-C uses, the first step is to perform the object allocation, the second step is to initialize the object.
+ When developers invoke this constructor, they take advantage of a direct path that goes all the way up to <see cref="T:Foundation.NSObject" /> to merely allocate the object's memory and bind the Objective-C and C# objects together.
+ The actual initialization of the object is up to the developer.
+ </para>
+ <para>
+ This constructor is typically used by the binding generator to allocate the object, but prevent the actual initialization to take place.
+ Once the allocation has taken place, the constructor has to initialize the object.
+ With constructors generated by the binding generator this means that it manually invokes one of the "init" methods to initialize the object.
+ </para>
+ <para>It is the developer's responsibility to completely initialize the object if they chain up using this constructor chain.</para>
+ <para>
+ In general, if the developer's constructor invokes the corresponding base implementation, then it should also call an Objective-C init method.
+ If this is not the case, developers should instead chain to the proper constructor in their class.
+ </para>
+ <para>
+ The argument value is ignored and merely ensures that the only code that is executed is the construction phase is the basic <see cref="T:Foundation.NSObject" /> allocation and runtime type registration.
+ Typically the chaining would look like this:
+ </para>
+ <example>
+ <code lang="csharp lang-csharp"><![CDATA[
+ //
+ // The NSObjectFlag constructor merely allocates the object and registers the C# class with the Objective-C runtime if necessary.
+ // No actual initXxx method is invoked, that is done later in the constructor
+ //
+ // This is taken from the iOS SDK's source code for the UIView class:
+ //
+ [Export ("initWithFrame:")]
+ public UIView (System.Drawing.RectangleF frame) : base (NSObjectFlag.Empty)
+ {
+ // Invoke the init method now.
+ var initWithFrame = new Selector ("initWithFrame:").Handle;
+ if (IsDirectBinding) {
+ Handle = ObjCRuntime.Messaging.IntPtr_objc_msgSend_CGRect (this.Handle, initWithFrame, frame);
+ } else {
+ Handle = ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper_CGRect (this.SuperHandle, initWithFrame, frame);
+ }
+ }
+ ]]></code>
+ </example>
+ </remarks>
+ </member>
+ <member name="M:CoreML.MLState.#ctor(ObjCRuntime.NativeHandle)">
+ <summary>A constructor used when creating managed representations of unmanaged objects. Called by the runtime.</summary>
+ <param name="handle">Pointer (handle) to the unmanaged object.</param>
+ <remarks>
+ <para>
+ This constructor is invoked by the runtime infrastructure (<see cref="M:ObjCRuntime.Runtime.GetNSObject(System.IntPtr)" />) to create a new managed representation for a pointer to an unmanaged Objective-C object.
+ Developers should not invoke this method directly, instead they should call <see cref="M:ObjCRuntime.Runtime.GetNSObject(System.IntPtr)" /> as it will prevent two instances of a managed object pointing to the same native object.
+ </para>
+ </remarks>
+ </member>
+ <member name="P:CoreML.MLStateConstraint.ClassHandle">
+ <summary>The Objective-C class handle for this class.</summary>
+ <value>The pointer to the Objective-C class.</value>
+ <remarks>
+ Each managed class mirrors an unmanaged Objective-C class.
+ This value contains the pointer to the Objective-C class.
+ It is similar to calling the managed <see cref="M:ObjCRuntime.Class.GetHandle(System.String)" /> or the native <see href="https://developer.apple.com/documentation/objectivec/1418952-objc_getclass">objc_getClass</see> method with the type name.
+ </remarks>
+ </member>
+ <member name="M:CoreML.MLStateConstraint.#ctor(Foundation.NSCoder)">
+ <summary>A constructor that initializes the object from the data stored in the unarchiver object.</summary>
+ <param name="coder">The unarchiver object.</param>
+ <remarks>
+ <para>This constructor is provided to allow the class to be initialized from an unarchiver (for example, during NIB deserialization). This is part of the <see cref="T:Foundation.NSCoding" /> protocol.</para>
+ <para>If developers want to create a subclass of this object and continue to support deserialization from an archive, they should implement a constructor with an identical signature: taking a single parameter of type <see cref="T:Foundation.NSCoder" /> and decorate it with the <c>[Export("initWithCoder:"]</c> attribute.</para>
+ <para>The state of this object can also be serialized by using the <see cref="M:Foundation.INSCoding.EncodeTo(Foundation.NSCoder)" /> companion method.</para>
+ </remarks>
+ </member>
+ <member name="M:CoreML.MLStateConstraint.#ctor(Foundation.NSObjectFlag)">
+ <summary>Constructor to call on derived classes to skip initialization and merely allocate the object.</summary>
+ <param name="t">Unused sentinel value, pass NSObjectFlag.Empty.</param>
+ <remarks>
+ <para>
+ This constructor should be called by derived classes when they completely construct the object in managed code and merely want the runtime to allocate and initialize the <see cref="T:Foundation.NSObject" />.
+ This is required to implement the two-step initialization process that Objective-C uses, the first step is to perform the object allocation, the second step is to initialize the object.
+ When developers invoke this constructor, they take advantage of a direct path that goes all the way up to <see cref="T:Foundation.NSObject" /> to merely allocate the object's memory and bind the Objective-C and C# objects together.
+ The actual initialization of the object is up to the developer.
+ </para>
+ <para>
+ This constructor is typically used by the binding generator to allocate the object, but prevent the actual initialization to take place.
+ Once the allocation has taken place, the constructor has to initialize the object.
+ With constructors generated by the binding generator this means that it manually invokes one of the "init" methods to initialize the object.
+ </para>
+ <para>It is the developer's responsibility to completely initialize the object if they chain up using this constructor chain.</para>
+ <para>
+ In general, if the developer's constructor invokes the corresponding base implementation, then it should also call an Objective-C init method.
+ If this is not the case, developers should instead chain to the proper constructor in their class.
+ </para>
+ <para>
+ The argument value is ignored and merely ensures that the only code that is executed is the construction phase is the basic <see cref="T:Foundation.NSObject" /> allocation and runtime type registration.
+ Typically the chaining would look like this:
+ </para>
+ <example>
+ <code lang="csharp lang-csharp"><![CDATA[
+ //
+ // The NSObjectFlag constructor merely allocates the object and registers the C# class with the Objective-C runtime if necessary.
+ // No actual initXxx method is invoked, that is done later in the constructor
+ //
+ // This is taken from the iOS SDK's source code for the UIView class:
+ //
+ [Export ("initWithFrame:")]
+ public UIView (System.Drawing.RectangleF frame) : base (NSObjectFlag.Empty)
+ {
+ // Invoke the init method now.
+ var initWithFrame = new Selector ("initWithFrame:").Handle;
+ if (IsDirectBinding) {
+ Handle = ObjCRuntime.Messaging.IntPtr_objc_msgSend_CGRect (this.Handle, initWithFrame, frame);
+ } else {
+ Handle = ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper_CGRect (this.SuperHandle, initWithFrame, frame);
+ }
+ }
+ ]]></code>
+ </example>
+ </remarks>
+ </member>
+ <member name="M:CoreML.MLStateConstraint.#ctor(ObjCRuntime.NativeHandle)">
+ <summary>A constructor used when creating managed representations of unmanaged objects. Called by the runtime.</summary>
+ <param name="handle">Pointer (handle) to the unmanaged object.</param>
+ <remarks>
+ <para>
+ This constructor is invoked by the runtime infrastructure (<see cref="M:ObjCRuntime.Runtime.GetNSObject(System.IntPtr)" />) to create a new managed representation for a pointer to an unmanaged Objective-C object.
+ Developers should not invoke this method directly, instead they should call <see cref="M:ObjCRuntime.Runtime.GetNSObject(System.IntPtr)" /> as it will prevent two instances of a managed object pointing to the same native object.
+ </para>
+ </remarks>
+ </member>
<member name="P:CoreML.MLTask.ClassHandle">
<summary>The Objective-C class handle for this class.</summary>
<value>The pointer to the Objective-C class.</value>
diff --git a/old/dotnet/maccatalyst/generated-sources/CoreML/MLFeatureDescription.g.cs b/new/dotnet/maccatalyst/generated-sources/CoreML/MLFeatureDescription.g.cs
index cd22e9b..15b8ebb 100644
--- a/old/dotnet/maccatalyst/generated-sources/CoreML/MLFeatureDescription.g.cs
+++ b/new/dotnet/maccatalyst/generated-sources/CoreML/MLFeatureDescription.g.cs
@@ -305,6 +305,23 @@ namespace CoreML {
}
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [SupportedOSPlatform ("tvos18.0")]
+ [SupportedOSPlatform ("macos15.0")]
+ [SupportedOSPlatform ("ios18.0")]
+ [SupportedOSPlatform ("maccatalyst18.0")]
+ public virtual MLStateConstraint? StateConstraint {
+ [Export ("stateConstraint")]
+ get {
+ MLStateConstraint? ret;
+ if (IsDirectBinding) {
+ ret = Runtime.GetNSObject<MLStateConstraint> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend (this.Handle, Selector.GetHandle ("stateConstraint")))!;
+ } else {
+ ret = Runtime.GetNSObject<MLStateConstraint> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSendSuper (this.SuperHandle, Selector.GetHandle ("stateConstraint")))!;
+ }
+ return ret!;
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public virtual MLFeatureType Type {
[Export ("type")]
get {
diff --git a/old/dotnet/maccatalyst/generated-sources/CoreML/MLFeatureType.g.cs b/new/dotnet/maccatalyst/generated-sources/CoreML/MLFeatureType.g.cs
index 3da5ced..b688284 100644
--- a/old/dotnet/maccatalyst/generated-sources/CoreML/MLFeatureType.g.cs
+++ b/new/dotnet/maccatalyst/generated-sources/CoreML/MLFeatureType.g.cs
@@ -68,5 +68,10 @@ namespace CoreML {
[SupportedOSPlatform ("maccatalyst")]
[SupportedOSPlatform ("macos")]
Sequence = 7,
+ [SupportedOSPlatform ("tvos18.0")]
+ [SupportedOSPlatform ("macos15.0")]
+ [SupportedOSPlatform ("ios18.0")]
+ [SupportedOSPlatform ("maccatalyst18.0")]
+ State = 8,
}
}
diff --git a/old/dotnet/maccatalyst/generated-sources/CoreML/MLModelAsset.g.cs b/new/dotnet/maccatalyst/generated-sources/CoreML/MLModelAsset.g.cs
index 9ff44a2..5207926 100644
--- a/old/dotnet/maccatalyst/generated-sources/CoreML/MLModelAsset.g.cs
+++ b/new/dotnet/maccatalyst/generated-sources/CoreML/MLModelAsset.g.cs
@@ -145,5 +145,94 @@ namespace CoreML {
error = Runtime.GetNSObject<NSError> (errorValue)!;
return ret!;
}
+ [Export ("modelAssetWithURL:error:")]
+ [SupportedOSPlatform ("tvos18.0")]
+ [SupportedOSPlatform ("macos15.0")]
+ [SupportedOSPlatform ("ios18.0")]
+ [SupportedOSPlatform ("maccatalyst18.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe static MLModelAsset? Create (NSUrl compiledModelUrl, out NSError? error)
+ {
+ var compiledModelUrl__handle__ = compiledModelUrl!.GetNonNullHandle (nameof (compiledModelUrl));
+ NativeHandle errorValue = IntPtr.Zero;
+ MLModelAsset? ret;
+ ret = Runtime.GetNSObject<MLModelAsset> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_ref_NativeHandle (class_ptr, Selector.GetHandle ("modelAssetWithURL:error:"), compiledModelUrl__handle__, &errorValue))!;
+ error = Runtime.GetNSObject<NSError> (errorValue)!;
+ return ret!;
+ }
+ [Export ("modelAssetWithSpecificationData:blobMapping:error:")]
+ [SupportedOSPlatform ("tvos18.0")]
+ [SupportedOSPlatform ("macos15.0")]
+ [SupportedOSPlatform ("ios18.0")]
+ [SupportedOSPlatform ("maccatalyst18.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe static MLModelAsset? Create (NSData specificationData, NSDictionary<NSUrl, NSData> blobMapping, out NSError? error)
+ {
+ var specificationData__handle__ = specificationData!.GetNonNullHandle (nameof (specificationData));
+ var blobMapping__handle__ = blobMapping!.GetNonNullHandle (nameof (blobMapping));
+ NativeHandle errorValue = IntPtr.Zero;
+ MLModelAsset? ret;
+ ret = Runtime.GetNSObject<MLModelAsset> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_NativeHandle_ref_NativeHandle (class_ptr, Selector.GetHandle ("modelAssetWithSpecificationData:blobMapping:error:"), specificationData__handle__, blobMapping__handle__, &errorValue))!;
+ error = Runtime.GetNSObject<NSError> (errorValue)!;
+ return ret!;
+ }
+ [Export ("functionNamesWithCompletionHandler:")]
+ [SupportedOSPlatform ("tvos18.0")]
+ [SupportedOSPlatform ("macos15.0")]
+ [SupportedOSPlatform ("ios18.0")]
+ [SupportedOSPlatform ("maccatalyst18.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual void GetFunctionNames ([BlockProxy (typeof (ObjCRuntime.Trampolines.NIDMLModelAssetGetFunctionNamesCompletionHandler))]MLModelAssetGetFunctionNamesCompletionHandler handler)
+ {
+ if (handler is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (handler));
+ using var block_handler = Trampolines.SDMLModelAssetGetFunctionNamesCompletionHandler.CreateBlock (handler);
+ BlockLiteral *block_ptr_handler = &block_handler;
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("functionNamesWithCompletionHandler:"), (IntPtr) block_ptr_handler);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_NativeHandle (this.SuperHandle, Selector.GetHandle ("functionNamesWithCompletionHandler:"), (IntPtr) block_ptr_handler);
+ }
+ }
+ [Export ("modelDescriptionWithCompletionHandler:")]
+ [SupportedOSPlatform ("tvos18.0")]
+ [SupportedOSPlatform ("macos15.0")]
+ [SupportedOSPlatform ("ios18.0")]
+ [SupportedOSPlatform ("maccatalyst18.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual void GetModelDescription ([BlockProxy (typeof (ObjCRuntime.Trampolines.NIDMLModelAssetGetModelDescriptionCompletionHandler))]MLModelAssetGetModelDescriptionCompletionHandler handler)
+ {
+ if (handler is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (handler));
+ using var block_handler = Trampolines.SDMLModelAssetGetModelDescriptionCompletionHandler.CreateBlock (handler);
+ BlockLiteral *block_ptr_handler = &block_handler;
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("modelDescriptionWithCompletionHandler:"), (IntPtr) block_ptr_handler);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_NativeHandle (this.SuperHandle, Selector.GetHandle ("modelDescriptionWithCompletionHandler:"), (IntPtr) block_ptr_handler);
+ }
+ }
+ [Export ("modelDescriptionOfFunctionNamed:completionHandler:")]
+ [SupportedOSPlatform ("tvos18.0")]
+ [SupportedOSPlatform ("macos15.0")]
+ [SupportedOSPlatform ("ios18.0")]
+ [SupportedOSPlatform ("maccatalyst18.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual void GetModelDescription (string functionName, [BlockProxy (typeof (ObjCRuntime.Trampolines.NIDMLModelAssetGetModelDescriptionCompletionHandler))]MLModelAssetGetModelDescriptionCompletionHandler handler)
+ {
+ if (functionName is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (functionName));
+ if (handler is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (handler));
+ var nsfunctionName = CFString.CreateNative (functionName);
+ using var block_handler = Trampolines.SDMLModelAssetGetModelDescriptionCompletionHandler.CreateBlock (handler);
+ BlockLiteral *block_ptr_handler = &block_handler;
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_NativeHandle_NativeHandle (this.Handle, Selector.GetHandle ("modelDescriptionOfFunctionNamed:completionHandler:"), nsfunctionName, (IntPtr) block_ptr_handler);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_NativeHandle_NativeHandle (this.SuperHandle, Selector.GetHandle ("modelDescriptionOfFunctionNamed:completionHandler:"), nsfunctionName, (IntPtr) block_ptr_handler);
+ }
+ CFString.ReleaseNative (nsfunctionName);
+ }
} /* class MLModelAsset */
}
diff --git a/old/dotnet/maccatalyst/generated-sources/CoreML/MLModelConfiguration.g.cs b/new/dotnet/maccatalyst/generated-sources/CoreML/MLModelConfiguration.g.cs
index 4063f24..1a78b01 100644
--- a/old/dotnet/maccatalyst/generated-sources/CoreML/MLModelConfiguration.g.cs
+++ b/new/dotnet/maccatalyst/generated-sources/CoreML/MLModelConfiguration.g.cs
@@ -245,6 +245,31 @@ namespace CoreML {
}
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [SupportedOSPlatform ("tvos18.0")]
+ [SupportedOSPlatform ("macos15.0")]
+ [SupportedOSPlatform ("ios18.0")]
+ [SupportedOSPlatform ("maccatalyst18.0")]
+ public virtual string? FunctionName {
+ [Export ("functionName", ArgumentSemantic.Copy)]
+ get {
+ if (IsDirectBinding) {
+ return CFString.FromHandle (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend (this.Handle, Selector.GetHandle ("functionName")))!;
+ } else {
+ return CFString.FromHandle (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSendSuper (this.SuperHandle, Selector.GetHandle ("functionName")))!;
+ }
+ }
+ [Export ("setFunctionName:", ArgumentSemantic.Copy)]
+ set {
+ var nsvalue = CFString.CreateNative (value);
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("setFunctionName:"), nsvalue);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_NativeHandle (this.SuperHandle, Selector.GetHandle ("setFunctionName:"), nsvalue);
+ }
+ CFString.ReleaseNative (nsvalue);
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
[SupportedOSPlatform ("tvos16.0")]
[SupportedOSPlatform ("macos13.0")]
[SupportedOSPlatform ("ios16.0")]
diff --git a/old/dotnet/maccatalyst/generated-sources/CoreML/MLModelDescription.g.cs b/new/dotnet/maccatalyst/generated-sources/CoreML/MLModelDescription.g.cs
index 3575102..d2b1689 100644
--- a/old/dotnet/maccatalyst/generated-sources/CoreML/MLModelDescription.g.cs
+++ b/new/dotnet/maccatalyst/generated-sources/CoreML/MLModelDescription.g.cs
@@ -286,6 +286,23 @@ namespace CoreML {
}
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [SupportedOSPlatform ("tvos18.0")]
+ [SupportedOSPlatform ("macos15.0")]
+ [SupportedOSPlatform ("ios18.0")]
+ [SupportedOSPlatform ("maccatalyst18.0")]
+ public virtual NSDictionary<NSString, MLFeatureDescription> StateDescriptionsByName {
+ [Export ("stateDescriptionsByName")]
+ get {
+ NSDictionary<NSString, MLFeatureDescription>? ret;
+ if (IsDirectBinding) {
+ ret = Runtime.GetNSObject<NSDictionary<NSString, MLFeatureDescription>> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend (this.Handle, Selector.GetHandle ("stateDescriptionsByName")))!;
+ } else {
+ ret = Runtime.GetNSObject<NSDictionary<NSString, MLFeatureDescription>> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSendSuper (this.SuperHandle, Selector.GetHandle ("stateDescriptionsByName")))!;
+ }
+ return ret!;
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
[SupportedOSPlatform ("tvos13.0")]
[SupportedOSPlatform ("ios13.0")]
[SupportedOSPlatform ("maccatalyst")]
diff --git a/new/dotnet/maccatalyst/generated-sources/CoreML/MLModel_MLState.g.cs b/new/dotnet/maccatalyst/generated-sources/CoreML/MLModel_MLState.g.cs
new file mode 100644
index 0000000..78ab22a
--- /dev/null
+++ b/new/dotnet/maccatalyst/generated-sources/CoreML/MLModel_MLState.g.cs
@@ -0,0 +1,109 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Drawing;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.Versioning;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using UIKit;
+using Metal;
+using CoreML;
+using AppKit;
+using MapKit;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Contacts;
+using Security;
+using CloudKit;
+using Messages;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using QuickLook;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using CoreMotion;
+using ObjCRuntime;
+using AddressBook;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using FileProvider;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace CoreML {
+ [SupportedOSPlatform ("tvos18.0")]
+ [SupportedOSPlatform ("macos15.0")]
+ [SupportedOSPlatform ("ios18.0")]
+ [SupportedOSPlatform ("maccatalyst18.0")]
+ public unsafe static partial class MLModel_MLState {
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ static readonly NativeHandle class_ptr = Class.GetHandle ("MLModel");
+ [Export ("newState")]
+ [return: ReleaseAttribute ()]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public static MLState CreateNewState (this MLModel This)
+ {
+ MLState? ret;
+ ret = Runtime.GetNSObject<MLState> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend (This.Handle, Selector.GetHandle ("newState")))!;
+ if (ret is not null)
+ global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release"));
+ return ret!;
+ }
+ [Export ("predictionFromFeatures:usingState:error:")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe static IMLFeatureProvider? GetPrediction (this MLModel This, IMLFeatureProvider inputFeatures, MLState state, out NSError error)
+ {
+ var inputFeatures__handle__ = inputFeatures!.GetNonNullHandle (nameof (inputFeatures));
+ var state__handle__ = state!.GetNonNullHandle (nameof (state));
+ NativeHandle errorValue = IntPtr.Zero;
+ IMLFeatureProvider? ret;
+ ret = Runtime.GetINativeObject<IMLFeatureProvider> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_NativeHandle_ref_NativeHandle (This.Handle, Selector.GetHandle ("predictionFromFeatures:usingState:error:"), inputFeatures__handle__, state__handle__, &errorValue), false)!;
+ error = Runtime.GetNSObject<NSError> (errorValue)!;
+ return ret!;
+ }
+ [Export ("predictionFromFeatures:usingState:options:error:")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe static IMLFeatureProvider? GetPrediction (this MLModel This, IMLFeatureProvider inputFeatures, MLState state, MLPredictionOptions options, out NSError error)
+ {
+ var inputFeatures__handle__ = inputFeatures!.GetNonNullHandle (nameof (inputFeatures));
+ var state__handle__ = state!.GetNonNullHandle (nameof (state));
+ var options__handle__ = options!.GetNonNullHandle (nameof (options));
+ NativeHandle errorValue = IntPtr.Zero;
+ IMLFeatureProvider? ret;
+ ret = Runtime.GetINativeObject<IMLFeatureProvider> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_NativeHandle_NativeHandle_ref_NativeHandle (This.Handle, Selector.GetHandle ("predictionFromFeatures:usingState:options:error:"), inputFeatures__handle__, state__handle__, options__handle__, &errorValue), false)!;
+ error = Runtime.GetNSObject<NSError> (errorValue)!;
+ return ret!;
+ }
+ [Export ("predictionFromFeatures:usingState:options:completionHandler:")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe static IMLFeatureProvider? GetPrediction (this MLModel This, IMLFeatureProvider inputFeatures, MLState state, MLPredictionOptions options, [BlockProxy (typeof (ObjCRuntime.Trampolines.NIDMLStateGetPredictionCompletionHandler))]MLStateGetPredictionCompletionHandler completionHandler)
+ {
+ var inputFeatures__handle__ = inputFeatures!.GetNonNullHandle (nameof (inputFeatures));
+ var state__handle__ = state!.GetNonNullHandle (nameof (state));
+ var options__handle__ = options!.GetNonNullHandle (nameof (options));
+ if (completionHandler is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (completionHandler));
+ using var block_completionHandler = Trampolines.SDMLStateGetPredictionCompletionHandler.CreateBlock (completionHandler);
+ BlockLiteral *block_ptr_completionHandler = &block_completionHandler;
+ return Runtime.GetINativeObject<IMLFeatureProvider> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_NativeHandle_NativeHandle_NativeHandle (This.Handle, Selector.GetHandle ("predictionFromFeatures:usingState:options:completionHandler:"), inputFeatures__handle__, state__handle__, options__handle__, (IntPtr) block_ptr_completionHandler), false)!;
+ }
+ } /* class MLModel_MLState */
+}
diff --git a/old/dotnet/maccatalyst/generated-sources/CoreML/MLMultiArray.g.cs b/new/dotnet/maccatalyst/generated-sources/CoreML/MLMultiArray.g.cs
index 2d1dd6c..8b04d4b 100644
--- a/old/dotnet/maccatalyst/generated-sources/CoreML/MLMultiArray.g.cs
+++ b/new/dotnet/maccatalyst/generated-sources/CoreML/MLMultiArray.g.cs
@@ -168,6 +168,29 @@ namespace CoreML {
nsa_shape.Dispose ();
error = Runtime.GetNSObject<NSError> (errorValue)!;
}
+ [Export ("initWithShape:dataType:strides:")]
+ [SupportedOSPlatform ("ios18.0")]
+ [SupportedOSPlatform ("tvos18.0")]
+ [SupportedOSPlatform ("maccatalyst18.0")]
+ [SupportedOSPlatform ("macos15.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public MLMultiArray (NSNumber[] shape, MLMultiArrayDataType dataType, NSNumber[] strides)
+ : base (NSObjectFlag.Empty)
+ {
+ if (shape is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (shape));
+ if (strides is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (strides));
+ var nsa_shape = NSArray.FromNSObjects (shape);
+ var nsa_strides = NSArray.FromNSObjects (strides);
+ if (IsDirectBinding) {
+ InitializeHandle (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_IntPtr_NativeHandle (this.Handle, Selector.GetHandle ("initWithShape:dataType:strides:"), nsa_shape.Handle, (IntPtr) (long) dataType, nsa_strides.Handle), "initWithShape:dataType:strides:");
+ } else {
+ InitializeHandle (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSendSuper_NativeHandle_IntPtr_NativeHandle (this.SuperHandle, Selector.GetHandle ("initWithShape:dataType:strides:"), nsa_shape.Handle, (IntPtr) (long) dataType, nsa_strides.Handle), "initWithShape:dataType:strides:");
+ }
+ nsa_shape.Dispose ();
+ nsa_strides.Dispose ();
+ }
[Export ("initWithDataPointer:shape:dataType:strides:deallocator:error:")]
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public unsafe MLMultiArray (nint dataPointer, NSNumber[] shape, MLMultiArrayDataType dataType, NSNumber[] strides, [BlockProxy (typeof (ObjCRuntime.Trampolines.NIDActionArity1V32))]global::System.Action<nint>? deallocator, out NSError error)
@@ -369,6 +392,21 @@ namespace CoreML {
var obj__handle__ = obj!.GetNonNullHandle (nameof (obj));
global::ObjCRuntime.Messaging.void_objc_msgSend_NativeHandle_IntPtr (this.Handle, Selector.GetHandle ("setObject:forKeyedSubscript:"), obj__handle__, key);
}
+ [Export ("transferToMultiArray:")]
+ [SupportedOSPlatform ("ios18.0")]
+ [SupportedOSPlatform ("tvos18.0")]
+ [SupportedOSPlatform ("maccatalyst18.0")]
+ [SupportedOSPlatform ("macos15.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual void TransferToMultiArray (MLMultiArray destinationMultiArray)
+ {
+ var destinationMultiArray__handle__ = destinationMultiArray!.GetNonNullHandle (nameof (destinationMultiArray));
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("transferToMultiArray:"), destinationMultiArray__handle__);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_NativeHandle (this.SuperHandle, Selector.GetHandle ("transferToMultiArray:"), destinationMultiArray__handle__);
+ }
+ }
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public virtual nint Count {
[Export ("count")]
diff --git a/old/dotnet/maccatalyst/generated-sources/CoreML/MLMultiArrayDataType.g.cs b/new/dotnet/maccatalyst/generated-sources/CoreML/MLMultiArrayDataType.g.cs
index 82c7728..3542a3b 100644
--- a/old/dotnet/maccatalyst/generated-sources/CoreML/MLMultiArrayDataType.g.cs
+++ b/new/dotnet/maccatalyst/generated-sources/CoreML/MLMultiArrayDataType.g.cs
@@ -59,6 +59,11 @@ namespace CoreML {
Double = 65600,
Float64 = 65600,
Float32 = 65568,
+ [SupportedOSPlatform ("macos12.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ [SupportedOSPlatform ("tvos16.0")]
+ Float16 = 65552,
Float = 65568,
Int32 = 131104,
}
diff --git a/old/dotnet/maccatalyst/generated-sources/CoreML/MLOptimizationHints.g.cs b/new/dotnet/maccatalyst/generated-sources/CoreML/MLOptimizationHints.g.cs
index bba3642..14f33bd 100644
--- a/old/dotnet/maccatalyst/generated-sources/CoreML/MLOptimizationHints.g.cs
+++ b/new/dotnet/maccatalyst/generated-sources/CoreML/MLOptimizationHints.g.cs
@@ -219,5 +219,30 @@ namespace CoreML {
}
}
}
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [SupportedOSPlatform ("tvos18.0")]
+ [SupportedOSPlatform ("macos15.0")]
+ [SupportedOSPlatform ("ios18.0")]
+ [SupportedOSPlatform ("maccatalyst18.0")]
+ public virtual MLSpecializationStrategy SpecializationStrategy {
+ [Export ("specializationStrategy", ArgumentSemantic.Assign)]
+ get {
+ MLSpecializationStrategy ret;
+ if (IsDirectBinding) {
+ ret = (MLSpecializationStrategy) (long) global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, Selector.GetHandle ("specializationStrategy"));
+ } else {
+ ret = (MLSpecializationStrategy) (long) global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, Selector.GetHandle ("specializationStrategy"));
+ }
+ return ret!;
+ }
+ [Export ("setSpecializationStrategy:", ArgumentSemantic.Assign)]
+ set {
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_IntPtr (this.Handle, Selector.GetHandle ("setSpecializationStrategy:"), (IntPtr) (long) value);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr (this.SuperHandle, Selector.GetHandle ("setSpecializationStrategy:"), (IntPtr) (long) value);
+ }
+ }
+ }
} /* class MLOptimizationHints */
}
diff --git a/new/dotnet/maccatalyst/generated-sources/CoreML/MLSpecializationStrategy.g.cs b/new/dotnet/maccatalyst/generated-sources/CoreML/MLSpecializationStrategy.g.cs
new file mode 100644
index 0000000..1d5cfa7
--- /dev/null
+++ b/new/dotnet/maccatalyst/generated-sources/CoreML/MLSpecializationStrategy.g.cs
@@ -0,0 +1,61 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Drawing;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.Versioning;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using UIKit;
+using Metal;
+using CoreML;
+using AppKit;
+using MapKit;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Contacts;
+using Security;
+using CloudKit;
+using Messages;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using QuickLook;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using CoreMotion;
+using ObjCRuntime;
+using AddressBook;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using FileProvider;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace CoreML {
+ [SupportedOSPlatform ("tvos18.0")]
+ [SupportedOSPlatform ("macos15.0")]
+ [SupportedOSPlatform ("ios18.0")]
+ [SupportedOSPlatform ("maccatalyst18.0")]
+ [Native]
+ public enum MLSpecializationStrategy : long {
+ Default = 0,
+ FastPrediction = 1,
+ }
+}
diff --git a/new/dotnet/maccatalyst/generated-sources/CoreML/MLState.g.cs b/new/dotnet/maccatalyst/generated-sources/CoreML/MLState.g.cs
new file mode 100644
index 0000000..e22d718
--- /dev/null
+++ b/new/dotnet/maccatalyst/generated-sources/CoreML/MLState.g.cs
@@ -0,0 +1,152 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Drawing;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.Versioning;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using UIKit;
+using Metal;
+using CoreML;
+using AppKit;
+using MapKit;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Contacts;
+using Security;
+using CloudKit;
+using Messages;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using QuickLook;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using CoreMotion;
+using ObjCRuntime;
+using AddressBook;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using FileProvider;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace CoreML {
+ [Register("MLState", true)]
+ [SupportedOSPlatform ("tvos18.0")]
+ [SupportedOSPlatform ("macos15.0")]
+ [SupportedOSPlatform ("ios18.0")]
+ [SupportedOSPlatform ("maccatalyst18.0")]
+ public unsafe partial class MLState : NSObject {
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ static readonly NativeHandle class_ptr = Class.GetHandle ("MLState");
+ /// <summary>The Objective-C class handle for this class.</summary>
+ /// <value>The pointer to the Objective-C class.</value>
+ /// <remarks>
+ /// Each managed class mirrors an unmanaged Objective-C class.
+ /// This value contains the pointer to the Objective-C class.
+ /// It is similar to calling the managed <see cref="ObjCRuntime.Class.GetHandle(string)" /> or the native <see href="https://developer.apple.com/documentation/objectivec/1418952-objc_getclass">objc_getClass</see> method with the type name.
+ /// </remarks>
+ public override NativeHandle ClassHandle { get { return class_ptr; } }
+ /// <summary>Constructor to call on derived classes to skip initialization and merely allocate the object.</summary>
+ /// <param name="t">Unused sentinel value, pass NSObjectFlag.Empty.</param>
+ /// <remarks>
+ /// <para>
+ /// This constructor should be called by derived classes when they completely construct the object in managed code and merely want the runtime to allocate and initialize the <see cref="Foundation.NSObject" />.
+ /// This is required to implement the two-step initialization process that Objective-C uses, the first step is to perform the object allocation, the second step is to initialize the object.
+ /// When developers invoke this constructor, they take advantage of a direct path that goes all the way up to <see cref="Foundation.NSObject" /> to merely allocate the object's memory and bind the Objective-C and C# objects together.
+ /// The actual initialization of the object is up to the developer.
+ /// </para>
+ /// <para>
+ /// This constructor is typically used by the binding generator to allocate the object, but prevent the actual initialization to take place.
+ /// Once the allocation has taken place, the constructor has to initialize the object.
+ /// With constructors generated by the binding generator this means that it manually invokes one of the "init" methods to initialize the object.
+ /// </para>
+ /// <para>It is the developer's responsibility to completely initialize the object if they chain up using this constructor chain.</para>
+ /// <para>
+ /// In general, if the developer's constructor invokes the corresponding base implementation, then it should also call an Objective-C init method.
+ /// If this is not the case, developers should instead chain to the proper constructor in their class.
+ /// </para>
+ /// <para>
+ /// The argument value is ignored and merely ensures that the only code that is executed is the construction phase is the basic <see cref="Foundation.NSObject" /> allocation and runtime type registration.
+ /// Typically the chaining would look like this:
+ /// </para>
+ /// <example>
+ /// <code lang="csharp lang-csharp"><![CDATA[
+ /// //
+ /// // The NSObjectFlag constructor merely allocates the object and registers the C# class with the Objective-C runtime if necessary.
+ /// // No actual initXxx method is invoked, that is done later in the constructor
+ /// //
+ /// // This is taken from the iOS SDK's source code for the UIView class:
+ /// //
+ /// [Export ("initWithFrame:")]
+ /// public UIView (System.Drawing.RectangleF frame) : base (NSObjectFlag.Empty)
+ /// {
+ /// // Invoke the init method now.
+ /// var initWithFrame = new Selector ("initWithFrame:").Handle;
+ /// if (IsDirectBinding) {
+ /// Handle = ObjCRuntime.Messaging.IntPtr_objc_msgSend_CGRect (this.Handle, initWithFrame, frame);
+ /// } else {
+ /// Handle = ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper_CGRect (this.SuperHandle, initWithFrame, frame);
+ /// }
+ /// }
+ /// ]]></code>
+ /// </example>
+ /// </remarks>
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected MLState (NSObjectFlag t) : base (t)
+ {
+ }
+
+ /// <summary>A constructor used when creating managed representations of unmanaged objects. Called by the runtime.</summary>
+ /// <param name="handle">Pointer (handle) to the unmanaged object.</param>
+ /// <remarks>
+ /// <para>
+ /// This constructor is invoked by the runtime infrastructure (<see cref="ObjCRuntime.Runtime.GetNSObject(System.IntPtr)" />) to create a new managed representation for a pointer to an unmanaged Objective-C object.
+ /// Developers should not invoke this method directly, instead they should call <see cref="ObjCRuntime.Runtime.GetNSObject(System.IntPtr)" /> as it will prevent two instances of a managed object pointing to the same native object.
+ /// </para>
+ /// </remarks>
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected internal MLState (NativeHandle handle) : base (handle)
+ {
+ }
+
+ [Export ("getMultiArrayForStateNamed:handler:")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual void GetMultiArrayForState (string stateName, [BlockProxy (typeof (ObjCRuntime.Trampolines.NIDMLStateGetMultiArrayForStateHandler))]MLStateGetMultiArrayForStateHandler handler)
+ {
+ if (stateName is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (stateName));
+ if (handler is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (handler));
+ var nsstateName = CFString.CreateNative (stateName);
+ using var block_handler = Trampolines.SDMLStateGetMultiArrayForStateHandler.CreateBlock (handler);
+ BlockLiteral *block_ptr_handler = &block_handler;
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_NativeHandle_NativeHandle (this.Handle, Selector.GetHandle ("getMultiArrayForStateNamed:handler:"), nsstateName, (IntPtr) block_ptr_handler);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_NativeHandle_NativeHandle (this.SuperHandle, Selector.GetHandle ("getMultiArrayForStateNamed:handler:"), nsstateName, (IntPtr) block_ptr_handler);
+ }
+ CFString.ReleaseNative (nsstateName);
+ }
+ } /* class MLState */
+}
diff --git a/new/dotnet/maccatalyst/generated-sources/CoreML/MLStateConstraint.g.cs b/new/dotnet/maccatalyst/generated-sources/CoreML/MLStateConstraint.g.cs
new file mode 100644
index 0000000..92938c3
--- /dev/null
+++ b/new/dotnet/maccatalyst/generated-sources/CoreML/MLStateConstraint.g.cs
@@ -0,0 +1,195 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Drawing;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.Versioning;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using UIKit;
+using Metal;
+using CoreML;
+using AppKit;
+using MapKit;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Contacts;
+using Security;
+using CloudKit;
+using Messages;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using QuickLook;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using CoreMotion;
+using ObjCRuntime;
+using AddressBook;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using FileProvider;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace CoreML {
+ [Register("MLStateConstraint", true)]
+ [SupportedOSPlatform ("tvos18.0")]
+ [SupportedOSPlatform ("macos15.0")]
+ [SupportedOSPlatform ("ios18.0")]
+ [SupportedOSPlatform ("maccatalyst18.0")]
+ public unsafe partial class MLStateConstraint : NSObject, INSCoding, INSSecureCoding {
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ static readonly NativeHandle class_ptr = Class.GetHandle ("MLStateConstraint");
+ /// <summary>The Objective-C class handle for this class.</summary>
+ /// <value>The pointer to the Objective-C class.</value>
+ /// <remarks>
+ /// Each managed class mirrors an unmanaged Objective-C class.
+ /// This value contains the pointer to the Objective-C class.
+ /// It is similar to calling the managed <see cref="ObjCRuntime.Class.GetHandle(string)" /> or the native <see href="https://developer.apple.com/documentation/objectivec/1418952-objc_getclass">objc_getClass</see> method with the type name.
+ /// </remarks>
+ public override NativeHandle ClassHandle { get { return class_ptr; } }
+ /// <summary>A constructor that initializes the object from the data stored in the unarchiver object.</summary>
+ /// <param name="coder">The unarchiver object.</param>
+ /// <remarks>
+ /// <para>This constructor is provided to allow the class to be initialized from an unarchiver (for example, during NIB deserialization). This is part of the <see cref="Foundation.NSCoding" /> protocol.</para>
+ /// <para>If developers want to create a subclass of this object and continue to support deserialization from an archive, they should implement a constructor with an identical signature: taking a single parameter of type <see cref="Foundation.NSCoder" /> and decorate it with the <c>[Export("initWithCoder:"]</c> attribute.</para>
+ /// <para>The state of this object can also be serialized by using the <see cref="Foundation.INSCoding.EncodeTo" /> companion method.</para>
+ /// </remarks>
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [DesignatedInitializer]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ [Export ("initWithCoder:")]
+ public MLStateConstraint (NSCoder coder) : base (NSObjectFlag.Empty)
+ {
+ if (IsDirectBinding) {
+ InitializeHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend_IntPtr (this.Handle, Selector.GetHandle ("initWithCoder:"), coder.Handle), "initWithCoder:");
+ } else {
+ InitializeHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper_IntPtr (this.SuperHandle, Selector.GetHandle ("initWithCoder:"), coder.Handle), "initWithCoder:");
+ }
+ }
+
+ /// <summary>Constructor to call on derived classes to skip initialization and merely allocate the object.</summary>
+ /// <param name="t">Unused sentinel value, pass NSObjectFlag.Empty.</param>
+ /// <remarks>
+ /// <para>
+ /// This constructor should be called by derived classes when they completely construct the object in managed code and merely want the runtime to allocate and initialize the <see cref="Foundation.NSObject" />.
+ /// This is required to implement the two-step initialization process that Objective-C uses, the first step is to perform the object allocation, the second step is to initialize the object.
+ /// When developers invoke this constructor, they take advantage of a direct path that goes all the way up to <see cref="Foundation.NSObject" /> to merely allocate the object's memory and bind the Objective-C and C# objects together.
+ /// The actual initialization of the object is up to the developer.
+ /// </para>
+ /// <para>
+ /// This constructor is typically used by the binding generator to allocate the object, but prevent the actual initialization to take place.
+ /// Once the allocation has taken place, the constructor has to initialize the object.
+ /// With constructors generated by the binding generator this means that it manually invokes one of the "init" methods to initialize the object.
+ /// </para>
+ /// <para>It is the developer's responsibility to completely initialize the object if they chain up using this constructor chain.</para>
+ /// <para>
+ /// In general, if the developer's constructor invokes the corresponding base implementation, then it should also call an Objective-C init method.
+ /// If this is not the case, developers should instead chain to the proper constructor in their class.
+ /// </para>
+ /// <para>
+ /// The argument value is ignored and merely ensures that the only code that is executed is the construction phase is the basic <see cref="Foundation.NSObject" /> allocation and runtime type registration.
+ /// Typically the chaining would look like this:
+ /// </para>
+ /// <example>
+ /// <code lang="csharp lang-csharp"><![CDATA[
+ /// //
+ /// // The NSObjectFlag constructor merely allocates the object and registers the C# class with the Objective-C runtime if necessary.
+ /// // No actual initXxx method is invoked, that is done later in the constructor
+ /// //
+ /// // This is taken from the iOS SDK's source code for the UIView class:
+ /// //
+ /// [Export ("initWithFrame:")]
+ /// public UIView (System.Drawing.RectangleF frame) : base (NSObjectFlag.Empty)
+ /// {
+ /// // Invoke the init method now.
+ /// var initWithFrame = new Selector ("initWithFrame:").Handle;
+ /// if (IsDirectBinding) {
+ /// Handle = ObjCRuntime.Messaging.IntPtr_objc_msgSend_CGRect (this.Handle, initWithFrame, frame);
+ /// } else {
+ /// Handle = ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper_CGRect (this.SuperHandle, initWithFrame, frame);
+ /// }
+ /// }
+ /// ]]></code>
+ /// </example>
+ /// </remarks>
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected MLStateConstraint (NSObjectFlag t) : base (t)
+ {
+ }
+
+ /// <summary>A constructor used when creating managed representations of unmanaged objects. Called by the runtime.</summary>
+ /// <param name="handle">Pointer (handle) to the unmanaged object.</param>
+ /// <remarks>
+ /// <para>
+ /// This constructor is invoked by the runtime infrastructure (<see cref="ObjCRuntime.Runtime.GetNSObject(System.IntPtr)" />) to create a new managed representation for a pointer to an unmanaged Objective-C object.
+ /// Developers should not invoke this method directly, instead they should call <see cref="ObjCRuntime.Runtime.GetNSObject(System.IntPtr)" /> as it will prevent two instances of a managed object pointing to the same native object.
+ /// </para>
+ /// </remarks>
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected internal MLStateConstraint (NativeHandle handle) : base (handle)
+ {
+ }
+
+ [Export ("encodeWithCoder:")]
+ [SupportedOSPlatform ("ios18.0")]
+ [SupportedOSPlatform ("macos15.0")]
+ [SupportedOSPlatform ("tvos18.0")]
+ [SupportedOSPlatform ("maccatalyst18.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual void EncodeTo (NSCoder encoder)
+ {
+ var encoder__handle__ = encoder!.GetNonNullHandle (nameof (encoder));
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("encodeWithCoder:"), encoder__handle__);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_NativeHandle (this.SuperHandle, Selector.GetHandle ("encodeWithCoder:"), encoder__handle__);
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual NSNumber[] BufferShape {
+ [Export ("bufferShape")]
+ get {
+ NSNumber[]? ret;
+ if (IsDirectBinding) {
+ ret = CFArray.ArrayFromHandle<NSNumber>(global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend (this.Handle, Selector.GetHandle ("bufferShape")))!;
+ } else {
+ ret = CFArray.ArrayFromHandle<NSNumber>(global::ObjCRuntime.Messaging.NativeHandle_objc_msgSendSuper (this.SuperHandle, Selector.GetHandle ("bufferShape")))!;
+ }
+ return ret!;
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual MLMultiArrayDataType DataType {
+ [Export ("dataType")]
+ get {
+ MLMultiArrayDataType ret;
+ if (IsDirectBinding) {
+ ret = (MLMultiArrayDataType) (long) global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, Selector.GetHandle ("dataType"));
+ } else {
+ ret = (MLMultiArrayDataType) (long) global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, Selector.GetHandle ("dataType"));
+ }
+ return ret!;
+ }
+ }
+ } /* class MLStateConstraint */
+}
diff --git a/old/dotnet/maccatalyst/generated-sources/ObjCRuntime/Trampolines.g.cs b/new/dotnet/maccatalyst/generated-sources/ObjCRuntime/Trampolines.g.cs
index 4a31f25..01cac11 100644
--- a/old/dotnet/maccatalyst/generated-sources/ObjCRuntime/Trampolines.g.cs
+++ b/new/dotnet/maccatalyst/generated-sources/ObjCRuntime/Trampolines.g.cs
@@ -4266,6 +4266,219 @@ namespace ObjCRuntime {
}
} /* class NIDCLServiceSessionCreateHandler */
[UnmanagedFunctionPointerAttribute (CallingConvention.Cdecl)]
+ [UserDelegateType (typeof (global::CoreML.MLModelAssetGetFunctionNamesCompletionHandler))]
+ unsafe internal delegate void DMLModelAssetGetFunctionNamesCompletionHandler (IntPtr block, NativeHandle functionNames, NativeHandle error);
+ //
+ // This class bridges native block invocations that call into C#
+ //
+ static internal class SDMLModelAssetGetFunctionNamesCompletionHandler {
+ [Preserve (Conditional = true)]
+ [UnmanagedCallersOnly]
+ [UserDelegateType (typeof (global::CoreML.MLModelAssetGetFunctionNamesCompletionHandler))]
+ internal static unsafe void Invoke (IntPtr block, NativeHandle functionNames, NativeHandle error) {
+ var del = BlockLiteral.GetTarget<global::CoreML.MLModelAssetGetFunctionNamesCompletionHandler> (block);
+ if (del is not null) {
+ del (CFArray.StringArrayFromHandle (functionNames)!, Runtime.GetNSObject<NSError> (error)!);
+ }
+ }
+ internal static unsafe BlockLiteral CreateNullableBlock (global::CoreML.MLModelAssetGetFunctionNamesCompletionHandler? callback)
+ {
+ if (callback is null)
+ return default (BlockLiteral);
+ return CreateBlock (callback);
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ internal static unsafe BlockLiteral CreateBlock (global::CoreML.MLModelAssetGetFunctionNamesCompletionHandler callback)
+ {
+ delegate* unmanaged<IntPtr, NativeHandle, NativeHandle, void> trampoline = &Invoke;
+ return new BlockLiteral (trampoline, callback, typeof (SDMLModelAssetGetFunctionNamesCompletionHandler), nameof (Invoke));
+ }
+ } /* class SDMLModelAssetGetFunctionNamesCompletionHandler */
+ internal sealed class NIDMLModelAssetGetFunctionNamesCompletionHandler : TrampolineBlockBase {
+ DMLModelAssetGetFunctionNamesCompletionHandler invoker;
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe NIDMLModelAssetGetFunctionNamesCompletionHandler (BlockLiteral *block) : base (block)
+ {
+ invoker = block->GetDelegateForBlock<DMLModelAssetGetFunctionNamesCompletionHandler> ();
+ }
+ [Preserve (Conditional=true)]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe static global::CoreML.MLModelAssetGetFunctionNamesCompletionHandler? Create (IntPtr block)
+ {
+ if (block == IntPtr.Zero)
+ return null;
+ var del = (global::CoreML.MLModelAssetGetFunctionNamesCompletionHandler) GetExistingManagedDelegate (block);
+ return del ?? new NIDMLModelAssetGetFunctionNamesCompletionHandler ((BlockLiteral *) block).Invoke;
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ unsafe void Invoke (string[]? functionNames, NSError? error)
+ {
+ var error__handle__ = error.GetHandle ();
+ var nsa_functionNames = functionNames is null ? null : NSArray.FromStrings (functionNames);
+ invoker (BlockPointer, nsa_functionNames.GetHandle (), error__handle__);
+ if (nsa_functionNames is not null)
+ nsa_functionNames.Dispose ();
+ }
+ } /* class NIDMLModelAssetGetFunctionNamesCompletionHandler */
+ [UnmanagedFunctionPointerAttribute (CallingConvention.Cdecl)]
+ [UserDelegateType (typeof (global::CoreML.MLModelAssetGetModelDescriptionCompletionHandler))]
+ unsafe internal delegate void DMLModelAssetGetModelDescriptionCompletionHandler (IntPtr block, NativeHandle modelDescription, NativeHandle error);
+ //
+ // This class bridges native block invocations that call into C#
+ //
+ static internal class SDMLModelAssetGetModelDescriptionCompletionHandler {
+ [Preserve (Conditional = true)]
+ [UnmanagedCallersOnly]
+ [UserDelegateType (typeof (global::CoreML.MLModelAssetGetModelDescriptionCompletionHandler))]
+ internal static unsafe void Invoke (IntPtr block, NativeHandle modelDescription, NativeHandle error) {
+ var del = BlockLiteral.GetTarget<global::CoreML.MLModelAssetGetModelDescriptionCompletionHandler> (block);
+ if (del is not null) {
+ del ( Runtime.GetNSObject<MLModelDescription> (modelDescription)!, Runtime.GetNSObject<NSError> (error)!);
+ }
+ }
+ internal static unsafe BlockLiteral CreateNullableBlock (global::CoreML.MLModelAssetGetModelDescriptionCompletionHandler? callback)
+ {
+ if (callback is null)
+ return default (BlockLiteral);
+ return CreateBlock (callback);
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ internal static unsafe BlockLiteral CreateBlock (global::CoreML.MLModelAssetGetModelDescriptionCompletionHandler callback)
+ {
+ delegate* unmanaged<IntPtr, NativeHandle, NativeHandle, void> trampoline = &Invoke;
+ return new BlockLiteral (trampoline, callback, typeof (SDMLModelAssetGetModelDescriptionCompletionHandler), nameof (Invoke));
+ }
+ } /* class SDMLModelAssetGetModelDescriptionCompletionHandler */
+ internal sealed class NIDMLModelAssetGetModelDescriptionCompletionHandler : TrampolineBlockBase {
+ DMLModelAssetGetModelDescriptionCompletionHandler invoker;
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe NIDMLModelAssetGetModelDescriptionCompletionHandler (BlockLiteral *block) : base (block)
+ {
+ invoker = block->GetDelegateForBlock<DMLModelAssetGetModelDescriptionCompletionHandler> ();
+ }
+ [Preserve (Conditional=true)]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe static global::CoreML.MLModelAssetGetModelDescriptionCompletionHandler? Create (IntPtr block)
+ {
+ if (block == IntPtr.Zero)
+ return null;
+ var del = (global::CoreML.MLModelAssetGetModelDescriptionCompletionHandler) GetExistingManagedDelegate (block);
+ return del ?? new NIDMLModelAssetGetModelDescriptionCompletionHandler ((BlockLiteral *) block).Invoke;
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ unsafe void Invoke (global::CoreML.MLModelDescription? modelDescription, NSError? error)
+ {
+ var modelDescription__handle__ = modelDescription.GetHandle ();
+ var error__handle__ = error.GetHandle ();
+ invoker (BlockPointer, modelDescription__handle__, error__handle__);
+ }
+ } /* class NIDMLModelAssetGetModelDescriptionCompletionHandler */
+ [UnmanagedFunctionPointerAttribute (CallingConvention.Cdecl)]
+ [UserDelegateType (typeof (global::CoreML.MLStateGetMultiArrayForStateHandler))]
+ unsafe internal delegate void DMLStateGetMultiArrayForStateHandler (IntPtr block, NativeHandle buffer);
+ //
+ // This class bridges native block invocations that call into C#
+ //
+ static internal class SDMLStateGetMultiArrayForStateHandler {
+ [Preserve (Conditional = true)]
+ [UnmanagedCallersOnly]
+ [UserDelegateType (typeof (global::CoreML.MLStateGetMultiArrayForStateHandler))]
+ internal static unsafe void Invoke (IntPtr block, NativeHandle buffer) {
+ var del = BlockLiteral.GetTarget<global::CoreML.MLStateGetMultiArrayForStateHandler> (block);
+ if (del is not null) {
+ del ( Runtime.GetNSObject<MLMultiArray> (buffer)!);
+ }
+ }
+ internal static unsafe BlockLiteral CreateNullableBlock (global::CoreML.MLStateGetMultiArrayForStateHandler? callback)
+ {
+ if (callback is null)
+ return default (BlockLiteral);
+ return CreateBlock (callback);
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ internal static unsafe BlockLiteral CreateBlock (global::CoreML.MLStateGetMultiArrayForStateHandler callback)
+ {
+ delegate* unmanaged<IntPtr, NativeHandle, void> trampoline = &Invoke;
+ return new BlockLiteral (trampoline, callback, typeof (SDMLStateGetMultiArrayForStateHandler), nameof (Invoke));
+ }
+ } /* class SDMLStateGetMultiArrayForStateHandler */
+ internal sealed class NIDMLStateGetMultiArrayForStateHandler : TrampolineBlockBase {
+ DMLStateGetMultiArrayForStateHandler invoker;
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe NIDMLStateGetMultiArrayForStateHandler (BlockLiteral *block) : base (block)
+ {
+ invoker = block->GetDelegateForBlock<DMLStateGetMultiArrayForStateHandler> ();
+ }
+ [Preserve (Conditional=true)]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe static global::CoreML.MLStateGetMultiArrayForStateHandler? Create (IntPtr block)
+ {
+ if (block == IntPtr.Zero)
+ return null;
+ var del = (global::CoreML.MLStateGetMultiArrayForStateHandler) GetExistingManagedDelegate (block);
+ return del ?? new NIDMLStateGetMultiArrayForStateHandler ((BlockLiteral *) block).Invoke;
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ unsafe void Invoke (global::CoreML.MLMultiArray buffer)
+ {
+ var buffer__handle__ = buffer.GetHandle ();
+ invoker (BlockPointer, buffer__handle__);
+ }
+ } /* class NIDMLStateGetMultiArrayForStateHandler */
+ [UnmanagedFunctionPointerAttribute (CallingConvention.Cdecl)]
+ [UserDelegateType (typeof (global::CoreML.MLStateGetPredictionCompletionHandler))]
+ unsafe internal delegate void DMLStateGetPredictionCompletionHandler (IntPtr block, NativeHandle output, NativeHandle error);
+ //
+ // This class bridges native block invocations that call into C#
+ //
+ static internal class SDMLStateGetPredictionCompletionHandler {
+ [Preserve (Conditional = true)]
+ [UnmanagedCallersOnly]
+ [UserDelegateType (typeof (global::CoreML.MLStateGetPredictionCompletionHandler))]
+ internal static unsafe void Invoke (IntPtr block, NativeHandle output, NativeHandle error) {
+ var del = BlockLiteral.GetTarget<global::CoreML.MLStateGetPredictionCompletionHandler> (block);
+ if (del is not null) {
+ del ( Runtime.GetINativeObject<CoreML.IMLFeatureProvider> (output, false)!, Runtime.GetNSObject<NSError> (error)!);
+ }
+ }
+ internal static unsafe BlockLiteral CreateNullableBlock (global::CoreML.MLStateGetPredictionCompletionHandler? callback)
+ {
+ if (callback is null)
+ return default (BlockLiteral);
+ return CreateBlock (callback);
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ internal static unsafe BlockLiteral CreateBlock (global::CoreML.MLStateGetPredictionCompletionHandler callback)
+ {
+ delegate* unmanaged<IntPtr, NativeHandle, NativeHandle, void> trampoline = &Invoke;
+ return new BlockLiteral (trampoline, callback, typeof (SDMLStateGetPredictionCompletionHandler), nameof (Invoke));
+ }
+ } /* class SDMLStateGetPredictionCompletionHandler */
+ internal sealed class NIDMLStateGetPredictionCompletionHandler : TrampolineBlockBase {
+ DMLStateGetPredictionCompletionHandler invoker;
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe NIDMLStateGetPredictionCompletionHandler (BlockLiteral *block) : base (block)
+ {
+ invoker = block->GetDelegateForBlock<DMLStateGetPredictionCompletionHandler> ();
+ }
+ [Preserve (Conditional=true)]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe static global::CoreML.MLStateGetPredictionCompletionHandler? Create (IntPtr block)
+ {
+ if (block == IntPtr.Zero)
+ return null;
+ var del = (global::CoreML.MLStateGetPredictionCompletionHandler) GetExistingManagedDelegate (block);
+ return del ?? new NIDMLStateGetPredictionCompletionHandler ((BlockLiteral *) block).Invoke;
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ unsafe void Invoke (global::CoreML.IMLFeatureProvider? output, NSError error)
+ {
+ var output__handle__ = output.GetHandle ();
+ var error__handle__ = error.GetHandle ();
+ invoker (BlockPointer, output__handle__, error__handle__);
+ }
+ } /* class NIDMLStateGetPredictionCompletionHandler */
+ [UnmanagedFunctionPointerAttribute (CallingConvention.Cdecl)]
[UserDelegateType (typeof (global::CoreMidi.MidiCIDiscoveryResponseDelegate))]
unsafe internal delegate void DMidiCIDiscoveryResponseDelegate (IntPtr block, NativeHandle discoveredNodes);
//
diff --git a/old/dotnet/maccatalyst/generated-sources/SupportDelegates.g.cs b/new/dotnet/maccatalyst/generated-sources/SupportDelegates.g.cs
index efdfd61..d6fbfc3 100644
--- a/old/dotnet/maccatalyst/generated-sources/SupportDelegates.g.cs
+++ b/new/dotnet/maccatalyst/generated-sources/SupportDelegates.g.cs
@@ -188,6 +188,13 @@ namespace CoreLocation {
public delegate bool CLLocationManagerEventArgs (CLLocationManager manager);
public delegate void CLServiceSessionCreateHandler (CLServiceSessionDiagnostic diagnostic);
}
+namespace CoreML {
+ #nullable enable
+ public delegate void MLModelAssetGetFunctionNamesCompletionHandler (String[]? functionNames, NSError? error);
+ public delegate void MLModelAssetGetModelDescriptionCompletionHandler (MLModelDescription? modelDescription, NSError? error);
+ public delegate void MLStateGetMultiArrayForStateHandler (MLMultiArray buffer);
+ public delegate void MLStateGetPredictionCompletionHandler (IMLFeatureProvider? output, NSError error);
+}
namespace CoreMidi {
#nullable enable
public delegate void MidiCIDiscoveryResponseDelegate (CoreMidi.MidiCIDiscoveredNode[] discoveredNodes);
diff --git a/old/dotnet/maccatalyst/ref/Microsoft.MacCatalyst.xml b/new/dotnet/maccatalyst/ref/Microsoft.MacCatalyst.xml
index d6f2a0d..33d7e16 100644
--- a/old/dotnet/maccatalyst/ref/Microsoft.MacCatalyst.xml
+++ b/new/dotnet/maccatalyst/ref/Microsoft.MacCatalyst.xml
@@ -118204,6 +118204,147 @@
</para>
</remarks>
</member>
+ <member name="P:CoreML.MLState.ClassHandle">
+ <summary>The Objective-C class handle for this class.</summary>
+ <value>The pointer to the Objective-C class.</value>
+ <remarks>
+ Each managed class mirrors an unmanaged Objective-C class.
+ This value contains the pointer to the Objective-C class.
+ It is similar to calling the managed <see cref="M:ObjCRuntime.Class.GetHandle(System.String)" /> or the native <see href="https://developer.apple.com/documentation/objectivec/1418952-objc_getclass">objc_getClass</see> method with the type name.
+ </remarks>
+ </member>
+ <member name="M:CoreML.MLState.#ctor(Foundation.NSObjectFlag)">
+ <summary>Constructor to call on derived classes to skip initialization and merely allocate the object.</summary>
+ <param name="t">Unused sentinel value, pass NSObjectFlag.Empty.</param>
+ <remarks>
+ <para>
+ This constructor should be called by derived classes when they completely construct the object in managed code and merely want the runtime to allocate and initialize the <see cref="T:Foundation.NSObject" />.
+ This is required to implement the two-step initialization process that Objective-C uses, the first step is to perform the object allocation, the second step is to initialize the object.
+ When developers invoke this constructor, they take advantage of a direct path that goes all the way up to <see cref="T:Foundation.NSObject" /> to merely allocate the object's memory and bind the Objective-C and C# objects together.
+ The actual initialization of the object is up to the developer.
+ </para>
+ <para>
+ This constructor is typically used by the binding generator to allocate the object, but prevent the actual initialization to take place.
+ Once the allocation has taken place, the constructor has to initialize the object.
+ With constructors generated by the binding generator this means that it manually invokes one of the "init" methods to initialize the object.
+ </para>
+ <para>It is the developer's responsibility to completely initialize the object if they chain up using this constructor chain.</para>
+ <para>
+ In general, if the developer's constructor invokes the corresponding base implementation, then it should also call an Objective-C init method.
+ If this is not the case, developers should instead chain to the proper constructor in their class.
+ </para>
+ <para>
+ The argument value is ignored and merely ensures that the only code that is executed is the construction phase is the basic <see cref="T:Foundation.NSObject" /> allocation and runtime type registration.
+ Typically the chaining would look like this:
+ </para>
+ <example>
+ <code lang="csharp lang-csharp"><![CDATA[
+ //
+ // The NSObjectFlag constructor merely allocates the object and registers the C# class with the Objective-C runtime if necessary.
+ // No actual initXxx method is invoked, that is done later in the constructor
+ //
+ // This is taken from the iOS SDK's source code for the UIView class:
+ //
+ [Export ("initWithFrame:")]
+ public UIView (System.Drawing.RectangleF frame) : base (NSObjectFlag.Empty)
+ {
+ // Invoke the init method now.
+ var initWithFrame = new Selector ("initWithFrame:").Handle;
+ if (IsDirectBinding) {
+ Handle = ObjCRuntime.Messaging.IntPtr_objc_msgSend_CGRect (this.Handle, initWithFrame, frame);
+ } else {
+ Handle = ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper_CGRect (this.SuperHandle, initWithFrame, frame);
+ }
+ }
+ ]]></code>
+ </example>
+ </remarks>
+ </member>
+ <member name="M:CoreML.MLState.#ctor(ObjCRuntime.NativeHandle)">
+ <summary>A constructor used when creating managed representations of unmanaged objects. Called by the runtime.</summary>
+ <param name="handle">Pointer (handle) to the unmanaged object.</param>
+ <remarks>
+ <para>
+ This constructor is invoked by the runtime infrastructure (<see cref="M:ObjCRuntime.Runtime.GetNSObject(System.IntPtr)" />) to create a new managed representation for a pointer to an unmanaged Objective-C object.
+ Developers should not invoke this method directly, instead they should call <see cref="M:ObjCRuntime.Runtime.GetNSObject(System.IntPtr)" /> as it will prevent two instances of a managed object pointing to the same native object.
+ </para>
+ </remarks>
+ </member>
+ <member name="P:CoreML.MLStateConstraint.ClassHandle">
+ <summary>The Objective-C class handle for this class.</summary>
+ <value>The pointer to the Objective-C class.</value>
+ <remarks>
+ Each managed class mirrors an unmanaged Objective-C class.
+ This value contains the pointer to the Objective-C class.
+ It is similar to calling the managed <see cref="M:ObjCRuntime.Class.GetHandle(System.String)" /> or the native <see href="https://developer.apple.com/documentation/objectivec/1418952-objc_getclass">objc_getClass</see> method with the type name.
+ </remarks>
+ </member>
+ <member name="M:CoreML.MLStateConstraint.#ctor(Foundation.NSCoder)">
+ <summary>A constructor that initializes the object from the data stored in the unarchiver object.</summary>
+ <param name="coder">The unarchiver object.</param>
+ <remarks>
+ <para>This constructor is provided to allow the class to be initialized from an unarchiver (for example, during NIB deserialization). This is part of the <see cref="T:Foundation.NSCoding" /> protocol.</para>
+ <para>If developers want to create a subclass of this object and continue to support deserialization from an archive, they should implement a constructor with an identical signature: taking a single parameter of type <see cref="T:Foundation.NSCoder" /> and decorate it with the <c>[Export("initWithCoder:"]</c> attribute.</para>
+ <para>The state of this object can also be serialized by using the <see cref="M:Foundation.INSCoding.EncodeTo(Foundation.NSCoder)" /> companion method.</para>
+ </remarks>
+ </member>
+ <member name="M:CoreML.MLStateConstraint.#ctor(Foundation.NSObjectFlag)">
+ <summary>Constructor to call on derived classes to skip initialization and merely allocate the object.</summary>
+ <param name="t">Unused sentinel value, pass NSObjectFlag.Empty.</param>
+ <remarks>
+ <para>
+ This constructor should be called by derived classes when they completely construct the object in managed code and merely want the runtime to allocate and initialize the <see cref="T:Foundation.NSObject" />.
+ This is required to implement the two-step initialization process that Objective-C uses, the first step is to perform the object allocation, the second step is to initialize the object.
+ When developers invoke this constructor, they take advantage of a direct path that goes all the way up to <see cref="T:Foundation.NSObject" /> to merely allocate the object's memory and bind the Objective-C and C# objects together.
+ The actual initialization of the object is up to the developer.
+ </para>
+ <para>
+ This constructor is typically used by the binding generator to allocate the object, but prevent the actual initialization to take place.
+ Once the allocation has taken place, the constructor has to initialize the object.
+ With constructors generated by the binding generator this means that it manually invokes one of the "init" methods to initialize the object.
+ </para>
+ <para>It is the developer's responsibility to completely initialize the object if they chain up using this constructor chain.</para>
+ <para>
+ In general, if the developer's constructor invokes the corresponding base implementation, then it should also call an Objective-C init method.
+ If this is not the case, developers should instead chain to the proper constructor in their class.
+ </para>
+ <para>
+ The argument value is ignored and merely ensures that the only code that is executed is the construction phase is the basic <see cref="T:Foundation.NSObject" /> allocation and runtime type registration.
+ Typically the chaining would look like this:
+ </para>
+ <example>
+ <code lang="csharp lang-csharp"><![CDATA[
+ //
+ // The NSObjectFlag constructor merely allocates the object and registers the C# class with the Objective-C runtime if necessary.
+ // No actual initXxx method is invoked, that is done later in the constructor
+ //
+ // This is taken from the iOS SDK's source code for the UIView class:
+ //
+ [Export ("initWithFrame:")]
+ public UIView (System.Drawing.RectangleF frame) : base (NSObjectFlag.Empty)
+ {
+ // Invoke the init method now.
+ var initWithFrame = new Selector ("initWithFrame:").Handle;
+ if (IsDirectBinding) {
+ Handle = ObjCRuntime.Messaging.IntPtr_objc_msgSend_CGRect (this.Handle, initWithFrame, frame);
+ } else {
+ Handle = ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper_CGRect (this.SuperHandle, initWithFrame, frame);
+ }
+ }
+ ]]></code>
+ </example>
+ </remarks>
+ </member>
+ <member name="M:CoreML.MLStateConstraint.#ctor(ObjCRuntime.NativeHandle)">
+ <summary>A constructor used when creating managed representations of unmanaged objects. Called by the runtime.</summary>
+ <param name="handle">Pointer (handle) to the unmanaged object.</param>
+ <remarks>
+ <para>
+ This constructor is invoked by the runtime infrastructure (<see cref="M:ObjCRuntime.Runtime.GetNSObject(System.IntPtr)" />) to create a new managed representation for a pointer to an unmanaged Objective-C object.
+ Developers should not invoke this method directly, instead they should call <see cref="M:ObjCRuntime.Runtime.GetNSObject(System.IntPtr)" /> as it will prevent two instances of a managed object pointing to the same native object.
+ </para>
+ </remarks>
+ </member>
<member name="P:CoreML.MLTask.ClassHandle">
<summary>The Objective-C class handle for this class.</summary>
<value>The pointer to the Objective-C class.</value>
diff --git a/old/dotnet/macos/SourceLink.json b/new/dotnet/macos/SourceLink.json
index bcad111..bf3f4eb 100644
--- a/old/dotnet/macos/SourceLink.json
+++ b/new/dotnet/macos/SourceLink.json
@@ -1,5 +1,5 @@
{
"documents": {
- "/Users/builder/azdo/_work/4/a/change-detection/tmp/src/xamarin-macios/src*": "https://raw.githubusercontent.com/xamarin/xamarin-macios/515d0ce8f7e1a72ea00f875f442d032d3f0e3969/src*"
+ "/Users/builder/azdo/_work/4/s/xamarin-macios/src*": "https://raw.githubusercontent.com/xamarin/xamarin-macios/9a8964f0264b00e9e7b961cbc4fb8a1d009ec09a/src*"
}
}
diff --git a/old/dotnet/macos/doc/Microsoft.macOS.xml b/new/dotnet/macos/doc/Microsoft.macOS.xml
index 7b5ba3e..518a223 100644
--- a/old/dotnet/macos/doc/Microsoft.macOS.xml
+++ b/new/dotnet/macos/doc/Microsoft.macOS.xml
@@ -110294,6 +110294,147 @@
</para>
</remarks>
</member>
+ <member name="P:CoreML.MLState.ClassHandle">
+ <summary>The Objective-C class handle for this class.</summary>
+ <value>The pointer to the Objective-C class.</value>
+ <remarks>
+ Each managed class mirrors an unmanaged Objective-C class.
+ This value contains the pointer to the Objective-C class.
+ It is similar to calling the managed <see cref="M:ObjCRuntime.Class.GetHandle(System.String)" /> or the native <see href="https://developer.apple.com/documentation/objectivec/1418952-objc_getclass">objc_getClass</see> method with the type name.
+ </remarks>
+ </member>
+ <member name="M:CoreML.MLState.#ctor(Foundation.NSObjectFlag)">
+ <summary>Constructor to call on derived classes to skip initialization and merely allocate the object.</summary>
+ <param name="t">Unused sentinel value, pass NSObjectFlag.Empty.</param>
+ <remarks>
+ <para>
+ This constructor should be called by derived classes when they completely construct the object in managed code and merely want the runtime to allocate and initialize the <see cref="T:Foundation.NSObject" />.
+ This is required to implement the two-step initialization process that Objective-C uses, the first step is to perform the object allocation, the second step is to initialize the object.
+ When developers invoke this constructor, they take advantage of a direct path that goes all the way up to <see cref="T:Foundation.NSObject" /> to merely allocate the object's memory and bind the Objective-C and C# objects together.
+ The actual initialization of the object is up to the developer.
+ </para>
+ <para>
+ This constructor is typically used by the binding generator to allocate the object, but prevent the actual initialization to take place.
+ Once the allocation has taken place, the constructor has to initialize the object.
+ With constructors generated by the binding generator this means that it manually invokes one of the "init" methods to initialize the object.
+ </para>
+ <para>It is the developer's responsibility to completely initialize the object if they chain up using this constructor chain.</para>
+ <para>
+ In general, if the developer's constructor invokes the corresponding base implementation, then it should also call an Objective-C init method.
+ If this is not the case, developers should instead chain to the proper constructor in their class.
+ </para>
+ <para>
+ The argument value is ignored and merely ensures that the only code that is executed is the construction phase is the basic <see cref="T:Foundation.NSObject" /> allocation and runtime type registration.
+ Typically the chaining would look like this:
+ </para>
+ <example>
+ <code lang="csharp lang-csharp"><![CDATA[
+ //
+ // The NSObjectFlag constructor merely allocates the object and registers the C# class with the Objective-C runtime if necessary.
+ // No actual initXxx method is invoked, that is done later in the constructor
+ //
+ // This is taken from the iOS SDK's source code for the UIView class:
+ //
+ [Export ("initWithFrame:")]
+ public UIView (System.Drawing.RectangleF frame) : base (NSObjectFlag.Empty)
+ {
+ // Invoke the init method now.
+ var initWithFrame = new Selector ("initWithFrame:").Handle;
+ if (IsDirectBinding) {
+ Handle = ObjCRuntime.Messaging.IntPtr_objc_msgSend_CGRect (this.Handle, initWithFrame, frame);
+ } else {
+ Handle = ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper_CGRect (this.SuperHandle, initWithFrame, frame);
+ }
+ }
+ ]]></code>
+ </example>
+ </remarks>
+ </member>
+ <member name="M:CoreML.MLState.#ctor(ObjCRuntime.NativeHandle)">
+ <summary>A constructor used when creating managed representations of unmanaged objects. Called by the runtime.</summary>
+ <param name="handle">Pointer (handle) to the unmanaged object.</param>
+ <remarks>
+ <para>
+ This constructor is invoked by the runtime infrastructure (<see cref="M:ObjCRuntime.Runtime.GetNSObject(System.IntPtr)" />) to create a new managed representation for a pointer to an unmanaged Objective-C object.
+ Developers should not invoke this method directly, instead they should call <see cref="M:ObjCRuntime.Runtime.GetNSObject(System.IntPtr)" /> as it will prevent two instances of a managed object pointing to the same native object.
+ </para>
+ </remarks>
+ </member>
+ <member name="P:CoreML.MLStateConstraint.ClassHandle">
+ <summary>The Objective-C class handle for this class.</summary>
+ <value>The pointer to the Objective-C class.</value>
+ <remarks>
+ Each managed class mirrors an unmanaged Objective-C class.
+ This value contains the pointer to the Objective-C class.
+ It is similar to calling the managed <see cref="M:ObjCRuntime.Class.GetHandle(System.String)" /> or the native <see href="https://developer.apple.com/documentation/objectivec/1418952-objc_getclass">objc_getClass</see> method with the type name.
+ </remarks>
+ </member>
+ <member name="M:CoreML.MLStateConstraint.#ctor(Foundation.NSCoder)">
+ <summary>A constructor that initializes the object from the data stored in the unarchiver object.</summary>
+ <param name="coder">The unarchiver object.</param>
+ <remarks>
+ <para>This constructor is provided to allow the class to be initialized from an unarchiver (for example, during NIB deserialization). This is part of the <see cref="T:Foundation.NSCoding" /> protocol.</para>
+ <para>If developers want to create a subclass of this object and continue to support deserialization from an archive, they should implement a constructor with an identical signature: taking a single parameter of type <see cref="T:Foundation.NSCoder" /> and decorate it with the <c>[Export("initWithCoder:"]</c> attribute.</para>
+ <para>The state of this object can also be serialized by using the <see cref="M:Foundation.INSCoding.EncodeTo(Foundation.NSCoder)" /> companion method.</para>
+ </remarks>
+ </member>
+ <member name="M:CoreML.MLStateConstraint.#ctor(Foundation.NSObjectFlag)">
+ <summary>Constructor to call on derived classes to skip initialization and merely allocate the object.</summary>
+ <param name="t">Unused sentinel value, pass NSObjectFlag.Empty.</param>
+ <remarks>
+ <para>
+ This constructor should be called by derived classes when they completely construct the object in managed code and merely want the runtime to allocate and initialize the <see cref="T:Foundation.NSObject" />.
+ This is required to implement the two-step initialization process that Objective-C uses, the first step is to perform the object allocation, the second step is to initialize the object.
+ When developers invoke this constructor, they take advantage of a direct path that goes all the way up to <see cref="T:Foundation.NSObject" /> to merely allocate the object's memory and bind the Objective-C and C# objects together.
+ The actual initialization of the object is up to the developer.
+ </para>
+ <para>
+ This constructor is typically used by the binding generator to allocate the object, but prevent the actual initialization to take place.
+ Once the allocation has taken place, the constructor has to initialize the object.
+ With constructors generated by the binding generator this means that it manually invokes one of the "init" methods to initialize the object.
+ </para>
+ <para>It is the developer's responsibility to completely initialize the object if they chain up using this constructor chain.</para>
+ <para>
+ In general, if the developer's constructor invokes the corresponding base implementation, then it should also call an Objective-C init method.
+ If this is not the case, developers should instead chain to the proper constructor in their class.
+ </para>
+ <para>
+ The argument value is ignored and merely ensures that the only code that is executed is the construction phase is the basic <see cref="T:Foundation.NSObject" /> allocation and runtime type registration.
+ Typically the chaining would look like this:
+ </para>
+ <example>
+ <code lang="csharp lang-csharp"><![CDATA[
+ //
+ // The NSObjectFlag constructor merely allocates the object and registers the C# class with the Objective-C runtime if necessary.
+ // No actual initXxx method is invoked, that is done later in the constructor
+ //
+ // This is taken from the iOS SDK's source code for the UIView class:
+ //
+ [Export ("initWithFrame:")]
+ public UIView (System.Drawing.RectangleF frame) : base (NSObjectFlag.Empty)
+ {
+ // Invoke the init method now.
+ var initWithFrame = new Selector ("initWithFrame:").Handle;
+ if (IsDirectBinding) {
+ Handle = ObjCRuntime.Messaging.IntPtr_objc_msgSend_CGRect (this.Handle, initWithFrame, frame);
+ } else {
+ Handle = ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper_CGRect (this.SuperHandle, initWithFrame, frame);
+ }
+ }
+ ]]></code>
+ </example>
+ </remarks>
+ </member>
+ <member name="M:CoreML.MLStateConstraint.#ctor(ObjCRuntime.NativeHandle)">
+ <summary>A constructor used when creating managed representations of unmanaged objects. Called by the runtime.</summary>
+ <param name="handle">Pointer (handle) to the unmanaged object.</param>
+ <remarks>
+ <para>
+ This constructor is invoked by the runtime infrastructure (<see cref="M:ObjCRuntime.Runtime.GetNSObject(System.IntPtr)" />) to create a new managed representation for a pointer to an unmanaged Objective-C object.
+ Developers should not invoke this method directly, instead they should call <see cref="M:ObjCRuntime.Runtime.GetNSObject(System.IntPtr)" /> as it will prevent two instances of a managed object pointing to the same native object.
+ </para>
+ </remarks>
+ </member>
<member name="P:CoreML.MLTask.ClassHandle">
<summary>The Objective-C class handle for this class.</summary>
<value>The pointer to the Objective-C class.</value>
diff --git a/old/dotnet/macos/generated-sources/CoreML/MLFeatureDescription.g.cs b/new/dotnet/macos/generated-sources/CoreML/MLFeatureDescription.g.cs
index 6c8a341..969b6b3 100644
--- a/old/dotnet/macos/generated-sources/CoreML/MLFeatureDescription.g.cs
+++ b/new/dotnet/macos/generated-sources/CoreML/MLFeatureDescription.g.cs
@@ -82,6 +82,9 @@ namespace CoreML {
const string selSequenceConstraintX = "sequenceConstraint";
static readonly NativeHandle selSequenceConstraintXHandle = Selector.GetHandle ("sequenceConstraint");
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selStateConstraintX = "stateConstraint";
+ static readonly NativeHandle selStateConstraintXHandle = Selector.GetHandle ("stateConstraint");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
const string selTypeX = "type";
static readonly NativeHandle selTypeXHandle = Selector.GetHandle ("type");
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
@@ -333,6 +336,23 @@ namespace CoreML {
}
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [SupportedOSPlatform ("tvos18.0")]
+ [SupportedOSPlatform ("macos15.0")]
+ [SupportedOSPlatform ("ios18.0")]
+ [SupportedOSPlatform ("maccatalyst18.0")]
+ public virtual MLStateConstraint? StateConstraint {
+ [Export ("stateConstraint")]
+ get {
+ MLStateConstraint? ret;
+ if (IsDirectBinding) {
+ ret = Runtime.GetNSObject<MLStateConstraint> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend (this.Handle, selStateConstraintXHandle))!;
+ } else {
+ ret = Runtime.GetNSObject<MLStateConstraint> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSendSuper (this.SuperHandle, selStateConstraintXHandle))!;
+ }
+ return ret!;
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public virtual MLFeatureType Type {
[Export ("type")]
get {
diff --git a/old/dotnet/macos/generated-sources/CoreML/MLFeatureType.g.cs b/new/dotnet/macos/generated-sources/CoreML/MLFeatureType.g.cs
index 60dfea8..9498aae 100644
--- a/old/dotnet/macos/generated-sources/CoreML/MLFeatureType.g.cs
+++ b/new/dotnet/macos/generated-sources/CoreML/MLFeatureType.g.cs
@@ -63,5 +63,10 @@ namespace CoreML {
[SupportedOSPlatform ("maccatalyst")]
[SupportedOSPlatform ("macos")]
Sequence = 7,
+ [SupportedOSPlatform ("tvos18.0")]
+ [SupportedOSPlatform ("macos15.0")]
+ [SupportedOSPlatform ("ios18.0")]
+ [SupportedOSPlatform ("maccatalyst18.0")]
+ State = 8,
}
}
diff --git a/old/dotnet/macos/generated-sources/CoreML/MLModelAsset.g.cs b/new/dotnet/macos/generated-sources/CoreML/MLModelAsset.g.cs
index f7c126a..db6c18c 100644
--- a/old/dotnet/macos/generated-sources/CoreML/MLModelAsset.g.cs
+++ b/new/dotnet/macos/generated-sources/CoreML/MLModelAsset.g.cs
@@ -50,10 +50,25 @@ namespace CoreML {
[SupportedOSPlatform ("ios16.0")]
[SupportedOSPlatform ("maccatalyst16.0")]
public unsafe partial class MLModelAsset : NSObject {
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selFunctionNamesWithCompletionHandler_X = "functionNamesWithCompletionHandler:";
+ static readonly NativeHandle selFunctionNamesWithCompletionHandler_XHandle = Selector.GetHandle ("functionNamesWithCompletionHandler:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selModelAssetWithSpecificationData_BlobMapping_Error_X = "modelAssetWithSpecificationData:blobMapping:error:";
+ static readonly NativeHandle selModelAssetWithSpecificationData_BlobMapping_Error_XHandle = Selector.GetHandle ("modelAssetWithSpecificationData:blobMapping:error:");
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
const string selModelAssetWithSpecificationData_Error_X = "modelAssetWithSpecificationData:error:";
static readonly NativeHandle selModelAssetWithSpecificationData_Error_XHandle = Selector.GetHandle ("modelAssetWithSpecificationData:error:");
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selModelAssetWithURL_Error_X = "modelAssetWithURL:error:";
+ static readonly NativeHandle selModelAssetWithURL_Error_XHandle = Selector.GetHandle ("modelAssetWithURL:error:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selModelDescriptionOfFunctionNamed_CompletionHandler_X = "modelDescriptionOfFunctionNamed:completionHandler:";
+ static readonly NativeHandle selModelDescriptionOfFunctionNamed_CompletionHandler_XHandle = Selector.GetHandle ("modelDescriptionOfFunctionNamed:completionHandler:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selModelDescriptionWithCompletionHandler_X = "modelDescriptionWithCompletionHandler:";
+ static readonly NativeHandle selModelDescriptionWithCompletionHandler_XHandle = Selector.GetHandle ("modelDescriptionWithCompletionHandler:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
static readonly NativeHandle class_ptr = Class.GetHandle ("MLModelAsset");
/// <summary>The Objective-C class handle for this class.</summary>
/// <value>The pointer to the Objective-C class.</value>
@@ -143,5 +158,94 @@ namespace CoreML {
error = Runtime.GetNSObject<NSError> (errorValue)!;
return ret!;
}
+ [Export ("modelAssetWithURL:error:")]
+ [SupportedOSPlatform ("tvos18.0")]
+ [SupportedOSPlatform ("macos15.0")]
+ [SupportedOSPlatform ("ios18.0")]
+ [SupportedOSPlatform ("maccatalyst18.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe static MLModelAsset? Create (NSUrl compiledModelUrl, out NSError? error)
+ {
+ var compiledModelUrl__handle__ = compiledModelUrl!.GetNonNullHandle (nameof (compiledModelUrl));
+ NativeHandle errorValue = IntPtr.Zero;
+ MLModelAsset? ret;
+ ret = Runtime.GetNSObject<MLModelAsset> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_ref_NativeHandle (class_ptr, selModelAssetWithURL_Error_XHandle, compiledModelUrl__handle__, &errorValue))!;
+ error = Runtime.GetNSObject<NSError> (errorValue)!;
+ return ret!;
+ }
+ [Export ("modelAssetWithSpecificationData:blobMapping:error:")]
+ [SupportedOSPlatform ("tvos18.0")]
+ [SupportedOSPlatform ("macos15.0")]
+ [SupportedOSPlatform ("ios18.0")]
+ [SupportedOSPlatform ("maccatalyst18.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe static MLModelAsset? Create (NSData specificationData, NSDictionary<NSUrl, NSData> blobMapping, out NSError? error)
+ {
+ var specificationData__handle__ = specificationData!.GetNonNullHandle (nameof (specificationData));
+ var blobMapping__handle__ = blobMapping!.GetNonNullHandle (nameof (blobMapping));
+ NativeHandle errorValue = IntPtr.Zero;
+ MLModelAsset? ret;
+ ret = Runtime.GetNSObject<MLModelAsset> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_NativeHandle_ref_NativeHandle (class_ptr, selModelAssetWithSpecificationData_BlobMapping_Error_XHandle, specificationData__handle__, blobMapping__handle__, &errorValue))!;
+ error = Runtime.GetNSObject<NSError> (errorValue)!;
+ return ret!;
+ }
+ [Export ("functionNamesWithCompletionHandler:")]
+ [SupportedOSPlatform ("tvos18.0")]
+ [SupportedOSPlatform ("macos15.0")]
+ [SupportedOSPlatform ("ios18.0")]
+ [SupportedOSPlatform ("maccatalyst18.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual void GetFunctionNames ([BlockProxy (typeof (ObjCRuntime.Trampolines.NIDMLModelAssetGetFunctionNamesCompletionHandler))]MLModelAssetGetFunctionNamesCompletionHandler handler)
+ {
+ if (handler is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (handler));
+ using var block_handler = Trampolines.SDMLModelAssetGetFunctionNamesCompletionHandler.CreateBlock (handler);
+ BlockLiteral *block_ptr_handler = &block_handler;
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_NativeHandle (this.Handle, selFunctionNamesWithCompletionHandler_XHandle, (IntPtr) block_ptr_handler);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_NativeHandle (this.SuperHandle, selFunctionNamesWithCompletionHandler_XHandle, (IntPtr) block_ptr_handler);
+ }
+ }
+ [Export ("modelDescriptionWithCompletionHandler:")]
+ [SupportedOSPlatform ("tvos18.0")]
+ [SupportedOSPlatform ("macos15.0")]
+ [SupportedOSPlatform ("ios18.0")]
+ [SupportedOSPlatform ("maccatalyst18.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual void GetModelDescription ([BlockProxy (typeof (ObjCRuntime.Trampolines.NIDMLModelAssetGetModelDescriptionCompletionHandler))]MLModelAssetGetModelDescriptionCompletionHandler handler)
+ {
+ if (handler is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (handler));
+ using var block_handler = Trampolines.SDMLModelAssetGetModelDescriptionCompletionHandler.CreateBlock (handler);
+ BlockLiteral *block_ptr_handler = &block_handler;
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_NativeHandle (this.Handle, selModelDescriptionWithCompletionHandler_XHandle, (IntPtr) block_ptr_handler);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_NativeHandle (this.SuperHandle, selModelDescriptionWithCompletionHandler_XHandle, (IntPtr) block_ptr_handler);
+ }
+ }
+ [Export ("modelDescriptionOfFunctionNamed:completionHandler:")]
+ [SupportedOSPlatform ("tvos18.0")]
+ [SupportedOSPlatform ("macos15.0")]
+ [SupportedOSPlatform ("ios18.0")]
+ [SupportedOSPlatform ("maccatalyst18.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual void GetModelDescription (string functionName, [BlockProxy (typeof (ObjCRuntime.Trampolines.NIDMLModelAssetGetModelDescriptionCompletionHandler))]MLModelAssetGetModelDescriptionCompletionHandler handler)
+ {
+ if (functionName is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (functionName));
+ if (handler is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (handler));
+ var nsfunctionName = CFString.CreateNative (functionName);
+ using var block_handler = Trampolines.SDMLModelAssetGetModelDescriptionCompletionHandler.CreateBlock (handler);
+ BlockLiteral *block_ptr_handler = &block_handler;
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_NativeHandle_NativeHandle (this.Handle, selModelDescriptionOfFunctionNamed_CompletionHandler_XHandle, nsfunctionName, (IntPtr) block_ptr_handler);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_NativeHandle_NativeHandle (this.SuperHandle, selModelDescriptionOfFunctionNamed_CompletionHandler_XHandle, nsfunctionName, (IntPtr) block_ptr_handler);
+ }
+ CFString.ReleaseNative (nsfunctionName);
+ }
} /* class MLModelAsset */
}
diff --git a/old/dotnet/macos/generated-sources/CoreML/MLModelConfiguration.g.cs b/new/dotnet/macos/generated-sources/CoreML/MLModelConfiguration.g.cs
index 2d2fa68..80a62ad 100644
--- a/old/dotnet/macos/generated-sources/CoreML/MLModelConfiguration.g.cs
+++ b/new/dotnet/macos/generated-sources/CoreML/MLModelConfiguration.g.cs
@@ -63,6 +63,9 @@ namespace CoreML {
const string selEncodeWithCoder_X = "encodeWithCoder:";
static readonly NativeHandle selEncodeWithCoder_XHandle = Selector.GetHandle ("encodeWithCoder:");
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selFunctionNameX = "functionName";
+ static readonly NativeHandle selFunctionNameXHandle = Selector.GetHandle ("functionName");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
const string selInitWithCoder_X = "initWithCoder:";
static readonly NativeHandle selInitWithCoder_XHandle = Selector.GetHandle ("initWithCoder:");
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
@@ -84,6 +87,9 @@ namespace CoreML {
const string selSetComputeUnits_X = "setComputeUnits:";
static readonly NativeHandle selSetComputeUnits_XHandle = Selector.GetHandle ("setComputeUnits:");
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selSetFunctionName_X = "setFunctionName:";
+ static readonly NativeHandle selSetFunctionName_XHandle = Selector.GetHandle ("setFunctionName:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
const string selSetModelDisplayName_X = "setModelDisplayName:";
static readonly NativeHandle selSetModelDisplayName_XHandle = Selector.GetHandle ("setModelDisplayName:");
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
@@ -285,6 +291,31 @@ namespace CoreML {
}
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [SupportedOSPlatform ("tvos18.0")]
+ [SupportedOSPlatform ("macos15.0")]
+ [SupportedOSPlatform ("ios18.0")]
+ [SupportedOSPlatform ("maccatalyst18.0")]
+ public virtual string? FunctionName {
+ [Export ("functionName", ArgumentSemantic.Copy)]
+ get {
+ if (IsDirectBinding) {
+ return CFString.FromHandle (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend (this.Handle, selFunctionNameXHandle))!;
+ } else {
+ return CFString.FromHandle (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSendSuper (this.SuperHandle, selFunctionNameXHandle))!;
+ }
+ }
+ [Export ("setFunctionName:", ArgumentSemantic.Copy)]
+ set {
+ var nsvalue = CFString.CreateNative (value);
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_NativeHandle (this.Handle, selSetFunctionName_XHandle, nsvalue);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_NativeHandle (this.SuperHandle, selSetFunctionName_XHandle, nsvalue);
+ }
+ CFString.ReleaseNative (nsvalue);
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
[SupportedOSPlatform ("tvos16.0")]
[SupportedOSPlatform ("macos13.0")]
[SupportedOSPlatform ("ios16.0")]
diff --git a/old/dotnet/macos/generated-sources/CoreML/MLModelDescription.g.cs b/new/dotnet/macos/generated-sources/CoreML/MLModelDescription.g.cs
index 998eba8..ebdf403 100644
--- a/old/dotnet/macos/generated-sources/CoreML/MLModelDescription.g.cs
+++ b/new/dotnet/macos/generated-sources/CoreML/MLModelDescription.g.cs
@@ -82,6 +82,9 @@ namespace CoreML {
const string selPredictedProbabilitiesNameX = "predictedProbabilitiesName";
static readonly NativeHandle selPredictedProbabilitiesNameXHandle = Selector.GetHandle ("predictedProbabilitiesName");
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selStateDescriptionsByNameX = "stateDescriptionsByName";
+ static readonly NativeHandle selStateDescriptionsByNameXHandle = Selector.GetHandle ("stateDescriptionsByName");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
const string selTrainingInputDescriptionsByNameX = "trainingInputDescriptionsByName";
static readonly NativeHandle selTrainingInputDescriptionsByNameXHandle = Selector.GetHandle ("trainingInputDescriptionsByName");
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
@@ -314,6 +317,23 @@ namespace CoreML {
}
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [SupportedOSPlatform ("tvos18.0")]
+ [SupportedOSPlatform ("macos15.0")]
+ [SupportedOSPlatform ("ios18.0")]
+ [SupportedOSPlatform ("maccatalyst18.0")]
+ public virtual NSDictionary<NSString, MLFeatureDescription> StateDescriptionsByName {
+ [Export ("stateDescriptionsByName")]
+ get {
+ NSDictionary<NSString, MLFeatureDescription>? ret;
+ if (IsDirectBinding) {
+ ret = Runtime.GetNSObject<NSDictionary<NSString, MLFeatureDescription>> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend (this.Handle, selStateDescriptionsByNameXHandle))!;
+ } else {
+ ret = Runtime.GetNSObject<NSDictionary<NSString, MLFeatureDescription>> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSendSuper (this.SuperHandle, selStateDescriptionsByNameXHandle))!;
+ }
+ return ret!;
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
[SupportedOSPlatform ("tvos13.0")]
[SupportedOSPlatform ("ios13.0")]
[SupportedOSPlatform ("maccatalyst")]
diff --git a/new/dotnet/macos/generated-sources/CoreML/MLModel_MLState.g.cs b/new/dotnet/macos/generated-sources/CoreML/MLModel_MLState.g.cs
new file mode 100644
index 0000000..b883755
--- /dev/null
+++ b/new/dotnet/macos/generated-sources/CoreML/MLModel_MLState.g.cs
@@ -0,0 +1,116 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Drawing;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.Versioning;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using Metal;
+using CoreML;
+using OpenGL;
+using AppKit;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Contacts;
+using Security;
+using CloudKit;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using ObjCRuntime;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using FileProvider;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace CoreML {
+ [SupportedOSPlatform ("tvos18.0")]
+ [SupportedOSPlatform ("macos15.0")]
+ [SupportedOSPlatform ("ios18.0")]
+ [SupportedOSPlatform ("maccatalyst18.0")]
+ public unsafe static partial class MLModel_MLState {
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selNewStateX = "newState";
+ static readonly NativeHandle selNewStateXHandle = Selector.GetHandle ("newState");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selPredictionFromFeatures_UsingState_Error_X = "predictionFromFeatures:usingState:error:";
+ static readonly NativeHandle selPredictionFromFeatures_UsingState_Error_XHandle = Selector.GetHandle ("predictionFromFeatures:usingState:error:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selPredictionFromFeatures_UsingState_Options_CompletionHandler_X = "predictionFromFeatures:usingState:options:completionHandler:";
+ static readonly NativeHandle selPredictionFromFeatures_UsingState_Options_CompletionHandler_XHandle = Selector.GetHandle ("predictionFromFeatures:usingState:options:completionHandler:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selPredictionFromFeatures_UsingState_Options_Error_X = "predictionFromFeatures:usingState:options:error:";
+ static readonly NativeHandle selPredictionFromFeatures_UsingState_Options_Error_XHandle = Selector.GetHandle ("predictionFromFeatures:usingState:options:error:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ static readonly NativeHandle class_ptr = Class.GetHandle ("MLModel");
+ [Export ("newState")]
+ [return: ReleaseAttribute ()]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public static MLState CreateNewState (this MLModel This)
+ {
+ MLState? ret;
+ ret = Runtime.GetNSObject<MLState> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend (This.Handle, selNewStateXHandle))!;
+ if (ret is not null)
+ global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release"));
+ return ret!;
+ }
+ [Export ("predictionFromFeatures:usingState:error:")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe static IMLFeatureProvider? GetPrediction (this MLModel This, IMLFeatureProvider inputFeatures, MLState state, out NSError error)
+ {
+ var inputFeatures__handle__ = inputFeatures!.GetNonNullHandle (nameof (inputFeatures));
+ var state__handle__ = state!.GetNonNullHandle (nameof (state));
+ NativeHandle errorValue = IntPtr.Zero;
+ IMLFeatureProvider? ret;
+ ret = Runtime.GetINativeObject<IMLFeatureProvider> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_NativeHandle_ref_NativeHandle (This.Handle, selPredictionFromFeatures_UsingState_Error_XHandle, inputFeatures__handle__, state__handle__, &errorValue), false)!;
+ error = Runtime.GetNSObject<NSError> (errorValue)!;
+ return ret!;
+ }
+ [Export ("predictionFromFeatures:usingState:options:error:")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe static IMLFeatureProvider? GetPrediction (this MLModel This, IMLFeatureProvider inputFeatures, MLState state, MLPredictionOptions options, out NSError error)
+ {
+ var inputFeatures__handle__ = inputFeatures!.GetNonNullHandle (nameof (inputFeatures));
+ var state__handle__ = state!.GetNonNullHandle (nameof (state));
+ var options__handle__ = options!.GetNonNullHandle (nameof (options));
+ NativeHandle errorValue = IntPtr.Zero;
+ IMLFeatureProvider? ret;
+ ret = Runtime.GetINativeObject<IMLFeatureProvider> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_NativeHandle_NativeHandle_ref_NativeHandle (This.Handle, selPredictionFromFeatures_UsingState_Options_Error_XHandle, inputFeatures__handle__, state__handle__, options__handle__, &errorValue), false)!;
+ error = Runtime.GetNSObject<NSError> (errorValue)!;
+ return ret!;
+ }
+ [Export ("predictionFromFeatures:usingState:options:completionHandler:")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe static IMLFeatureProvider? GetPrediction (this MLModel This, IMLFeatureProvider inputFeatures, MLState state, MLPredictionOptions options, [BlockProxy (typeof (ObjCRuntime.Trampolines.NIDMLStateGetPredictionCompletionHandler))]MLStateGetPredictionCompletionHandler completionHandler)
+ {
+ var inputFeatures__handle__ = inputFeatures!.GetNonNullHandle (nameof (inputFeatures));
+ var state__handle__ = state!.GetNonNullHandle (nameof (state));
+ var options__handle__ = options!.GetNonNullHandle (nameof (options));
+ if (completionHandler is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (completionHandler));
+ using var block_completionHandler = Trampolines.SDMLStateGetPredictionCompletionHandler.CreateBlock (completionHandler);
+ BlockLiteral *block_ptr_completionHandler = &block_completionHandler;
+ return Runtime.GetINativeObject<IMLFeatureProvider> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_NativeHandle_NativeHandle_NativeHandle (This.Handle, selPredictionFromFeatures_UsingState_Options_CompletionHandler_XHandle, inputFeatures__handle__, state__handle__, options__handle__, (IntPtr) block_ptr_completionHandler), false)!;
+ }
+ } /* class MLModel_MLState */
+}
diff --git a/old/dotnet/macos/generated-sources/CoreML/MLMultiArray.g.cs b/new/dotnet/macos/generated-sources/CoreML/MLMultiArray.g.cs
index e08c850..cfef44d 100644
--- a/old/dotnet/macos/generated-sources/CoreML/MLMultiArray.g.cs
+++ b/new/dotnet/macos/generated-sources/CoreML/MLMultiArray.g.cs
@@ -82,6 +82,9 @@ namespace CoreML {
const string selInitWithShape_DataType_Error_X = "initWithShape:dataType:error:";
static readonly NativeHandle selInitWithShape_DataType_Error_XHandle = Selector.GetHandle ("initWithShape:dataType:error:");
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selInitWithShape_DataType_Strides_X = "initWithShape:dataType:strides:";
+ static readonly NativeHandle selInitWithShape_DataType_Strides_XHandle = Selector.GetHandle ("initWithShape:dataType:strides:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
const string selMultiArrayByConcatenatingMultiArrays_AlongAxis_DataType_X = "multiArrayByConcatenatingMultiArrays:alongAxis:dataType:";
static readonly NativeHandle selMultiArrayByConcatenatingMultiArrays_AlongAxis_DataType_XHandle = Selector.GetHandle ("multiArrayByConcatenatingMultiArrays:alongAxis:dataType:");
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
@@ -106,6 +109,9 @@ namespace CoreML {
const string selStridesX = "strides";
static readonly NativeHandle selStridesXHandle = Selector.GetHandle ("strides");
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selTransferToMultiArray_X = "transferToMultiArray:";
+ static readonly NativeHandle selTransferToMultiArray_XHandle = Selector.GetHandle ("transferToMultiArray:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
static readonly NativeHandle class_ptr = Class.GetHandle ("MLMultiArray");
/// <summary>The Objective-C class handle for this class.</summary>
/// <value>The pointer to the Objective-C class.</value>
@@ -217,6 +223,29 @@ namespace CoreML {
nsa_shape.Dispose ();
error = Runtime.GetNSObject<NSError> (errorValue)!;
}
+ [Export ("initWithShape:dataType:strides:")]
+ [SupportedOSPlatform ("ios18.0")]
+ [SupportedOSPlatform ("tvos18.0")]
+ [SupportedOSPlatform ("maccatalyst18.0")]
+ [SupportedOSPlatform ("macos15.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public MLMultiArray (NSNumber[] shape, MLMultiArrayDataType dataType, NSNumber[] strides)
+ : base (NSObjectFlag.Empty)
+ {
+ if (shape is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (shape));
+ if (strides is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (strides));
+ var nsa_shape = NSArray.FromNSObjects (shape);
+ var nsa_strides = NSArray.FromNSObjects (strides);
+ if (IsDirectBinding) {
+ InitializeHandle (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_IntPtr_NativeHandle (this.Handle, selInitWithShape_DataType_Strides_XHandle, nsa_shape.Handle, (IntPtr) (long) dataType, nsa_strides.Handle), "initWithShape:dataType:strides:");
+ } else {
+ InitializeHandle (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSendSuper_NativeHandle_IntPtr_NativeHandle (this.SuperHandle, selInitWithShape_DataType_Strides_XHandle, nsa_shape.Handle, (IntPtr) (long) dataType, nsa_strides.Handle), "initWithShape:dataType:strides:");
+ }
+ nsa_shape.Dispose ();
+ nsa_strides.Dispose ();
+ }
[Export ("initWithDataPointer:shape:dataType:strides:deallocator:error:")]
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public unsafe MLMultiArray (nint dataPointer, NSNumber[] shape, MLMultiArrayDataType dataType, NSNumber[] strides, [BlockProxy (typeof (ObjCRuntime.Trampolines.NIDActionArity1V23))]global::System.Action<nint>? deallocator, out NSError error)
@@ -418,6 +447,21 @@ namespace CoreML {
var obj__handle__ = obj!.GetNonNullHandle (nameof (obj));
global::ObjCRuntime.Messaging.void_objc_msgSend_NativeHandle_IntPtr (this.Handle, selSetObject_ForKeyedSubscript_XHandle, obj__handle__, key);
}
+ [Export ("transferToMultiArray:")]
+ [SupportedOSPlatform ("ios18.0")]
+ [SupportedOSPlatform ("tvos18.0")]
+ [SupportedOSPlatform ("maccatalyst18.0")]
+ [SupportedOSPlatform ("macos15.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual void TransferToMultiArray (MLMultiArray destinationMultiArray)
+ {
+ var destinationMultiArray__handle__ = destinationMultiArray!.GetNonNullHandle (nameof (destinationMultiArray));
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_NativeHandle (this.Handle, selTransferToMultiArray_XHandle, destinationMultiArray__handle__);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_NativeHandle (this.SuperHandle, selTransferToMultiArray_XHandle, destinationMultiArray__handle__);
+ }
+ }
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public virtual nint Count {
[Export ("count")]
diff --git a/old/dotnet/macos/generated-sources/CoreML/MLMultiArrayDataType.g.cs b/new/dotnet/macos/generated-sources/CoreML/MLMultiArrayDataType.g.cs
index 726c8ef..a0cc6aa 100644
--- a/old/dotnet/macos/generated-sources/CoreML/MLMultiArrayDataType.g.cs
+++ b/new/dotnet/macos/generated-sources/CoreML/MLMultiArrayDataType.g.cs
@@ -55,9 +55,9 @@ namespace CoreML {
Float64 = 65600,
Float32 = 65568,
[SupportedOSPlatform ("macos12.0")]
- [UnsupportedOSPlatform ("ios")]
- [UnsupportedOSPlatform ("maccatalyst")]
- [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ [SupportedOSPlatform ("tvos16.0")]
Float16 = 65552,
Float = 65568,
Int32 = 131104,
diff --git a/old/dotnet/macos/generated-sources/CoreML/MLOptimizationHints.g.cs b/new/dotnet/macos/generated-sources/CoreML/MLOptimizationHints.g.cs
index 5c566c1..275c668 100644
--- a/old/dotnet/macos/generated-sources/CoreML/MLOptimizationHints.g.cs
+++ b/new/dotnet/macos/generated-sources/CoreML/MLOptimizationHints.g.cs
@@ -66,6 +66,12 @@ namespace CoreML {
const string selSetReshapeFrequency_X = "setReshapeFrequency:";
static readonly NativeHandle selSetReshapeFrequency_XHandle = Selector.GetHandle ("setReshapeFrequency:");
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selSetSpecializationStrategy_X = "setSpecializationStrategy:";
+ static readonly NativeHandle selSetSpecializationStrategy_XHandle = Selector.GetHandle ("setSpecializationStrategy:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selSpecializationStrategyX = "specializationStrategy";
+ static readonly NativeHandle selSpecializationStrategyXHandle = Selector.GetHandle ("specializationStrategy");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
static readonly NativeHandle class_ptr = Class.GetHandle ("MLOptimizationHints");
/// <summary>The Objective-C class handle for this class.</summary>
/// <value>The pointer to the Objective-C class.</value>
@@ -229,5 +235,30 @@ namespace CoreML {
}
}
}
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [SupportedOSPlatform ("tvos18.0")]
+ [SupportedOSPlatform ("macos15.0")]
+ [SupportedOSPlatform ("ios18.0")]
+ [SupportedOSPlatform ("maccatalyst18.0")]
+ public virtual MLSpecializationStrategy SpecializationStrategy {
+ [Export ("specializationStrategy", ArgumentSemantic.Assign)]
+ get {
+ MLSpecializationStrategy ret;
+ if (IsDirectBinding) {
+ ret = (MLSpecializationStrategy) (long) global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, selSpecializationStrategyXHandle);
+ } else {
+ ret = (MLSpecializationStrategy) (long) global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, selSpecializationStrategyXHandle);
+ }
+ return ret!;
+ }
+ [Export ("setSpecializationStrategy:", ArgumentSemantic.Assign)]
+ set {
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_IntPtr (this.Handle, selSetSpecializationStrategy_XHandle, (IntPtr) (long) value);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr (this.SuperHandle, selSetSpecializationStrategy_XHandle, (IntPtr) (long) value);
+ }
+ }
+ }
} /* class MLOptimizationHints */
}
diff --git a/new/dotnet/macos/generated-sources/CoreML/MLSpecializationStrategy.g.cs b/new/dotnet/macos/generated-sources/CoreML/MLSpecializationStrategy.g.cs
new file mode 100644
index 0000000..82cd7b4
--- /dev/null
+++ b/new/dotnet/macos/generated-sources/CoreML/MLSpecializationStrategy.g.cs
@@ -0,0 +1,56 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Drawing;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.Versioning;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using Metal;
+using CoreML;
+using OpenGL;
+using AppKit;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Contacts;
+using Security;
+using CloudKit;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using ObjCRuntime;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using FileProvider;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace CoreML {
+ [SupportedOSPlatform ("tvos18.0")]
+ [SupportedOSPlatform ("macos15.0")]
+ [SupportedOSPlatform ("ios18.0")]
+ [SupportedOSPlatform ("maccatalyst18.0")]
+ [Native]
+ public enum MLSpecializationStrategy : long {
+ Default = 0,
+ FastPrediction = 1,
+ }
+}
diff --git a/new/dotnet/macos/generated-sources/CoreML/MLState.g.cs b/new/dotnet/macos/generated-sources/CoreML/MLState.g.cs
new file mode 100644
index 0000000..e7a470f
--- /dev/null
+++ b/new/dotnet/macos/generated-sources/CoreML/MLState.g.cs
@@ -0,0 +1,150 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Drawing;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.Versioning;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using Metal;
+using CoreML;
+using OpenGL;
+using AppKit;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Contacts;
+using Security;
+using CloudKit;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using ObjCRuntime;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using FileProvider;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace CoreML {
+ [Register("MLState", true)]
+ [SupportedOSPlatform ("tvos18.0")]
+ [SupportedOSPlatform ("macos15.0")]
+ [SupportedOSPlatform ("ios18.0")]
+ [SupportedOSPlatform ("maccatalyst18.0")]
+ public unsafe partial class MLState : NSObject {
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selGetMultiArrayForStateNamed_Handler_X = "getMultiArrayForStateNamed:handler:";
+ static readonly NativeHandle selGetMultiArrayForStateNamed_Handler_XHandle = Selector.GetHandle ("getMultiArrayForStateNamed:handler:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ static readonly NativeHandle class_ptr = Class.GetHandle ("MLState");
+ /// <summary>The Objective-C class handle for this class.</summary>
+ /// <value>The pointer to the Objective-C class.</value>
+ /// <remarks>
+ /// Each managed class mirrors an unmanaged Objective-C class.
+ /// This value contains the pointer to the Objective-C class.
+ /// It is similar to calling the managed <see cref="ObjCRuntime.Class.GetHandle(string)" /> or the native <see href="https://developer.apple.com/documentation/objectivec/1418952-objc_getclass">objc_getClass</see> method with the type name.
+ /// </remarks>
+ public override NativeHandle ClassHandle { get { return class_ptr; } }
+ /// <summary>Constructor to call on derived classes to skip initialization and merely allocate the object.</summary>
+ /// <param name="t">Unused sentinel value, pass NSObjectFlag.Empty.</param>
+ /// <remarks>
+ /// <para>
+ /// This constructor should be called by derived classes when they completely construct the object in managed code and merely want the runtime to allocate and initialize the <see cref="Foundation.NSObject" />.
+ /// This is required to implement the two-step initialization process that Objective-C uses, the first step is to perform the object allocation, the second step is to initialize the object.
+ /// When developers invoke this constructor, they take advantage of a direct path that goes all the way up to <see cref="Foundation.NSObject" /> to merely allocate the object's memory and bind the Objective-C and C# objects together.
+ /// The actual initialization of the object is up to the developer.
+ /// </para>
+ /// <para>
+ /// This constructor is typically used by the binding generator to allocate the object, but prevent the actual initialization to take place.
+ /// Once the allocation has taken place, the constructor has to initialize the object.
+ /// With constructors generated by the binding generator this means that it manually invokes one of the "init" methods to initialize the object.
+ /// </para>
+ /// <para>It is the developer's responsibility to completely initialize the object if they chain up using this constructor chain.</para>
+ /// <para>
+ /// In general, if the developer's constructor invokes the corresponding base implementation, then it should also call an Objective-C init method.
+ /// If this is not the case, developers should instead chain to the proper constructor in their class.
+ /// </para>
+ /// <para>
+ /// The argument value is ignored and merely ensures that the only code that is executed is the construction phase is the basic <see cref="Foundation.NSObject" /> allocation and runtime type registration.
+ /// Typically the chaining would look like this:
+ /// </para>
+ /// <example>
+ /// <code lang="csharp lang-csharp"><![CDATA[
+ /// //
+ /// // The NSObjectFlag constructor merely allocates the object and registers the C# class with the Objective-C runtime if necessary.
+ /// // No actual initXxx method is invoked, that is done later in the constructor
+ /// //
+ /// // This is taken from the iOS SDK's source code for the UIView class:
+ /// //
+ /// [Export ("initWithFrame:")]
+ /// public UIView (System.Drawing.RectangleF frame) : base (NSObjectFlag.Empty)
+ /// {
+ /// // Invoke the init method now.
+ /// var initWithFrame = new Selector ("initWithFrame:").Handle;
+ /// if (IsDirectBinding) {
+ /// Handle = ObjCRuntime.Messaging.IntPtr_objc_msgSend_CGRect (this.Handle, initWithFrame, frame);
+ /// } else {
+ /// Handle = ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper_CGRect (this.SuperHandle, initWithFrame, frame);
+ /// }
+ /// }
+ /// ]]></code>
+ /// </example>
+ /// </remarks>
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected MLState (NSObjectFlag t) : base (t)
+ {
+ }
+
+ /// <summary>A constructor used when creating managed representations of unmanaged objects. Called by the runtime.</summary>
+ /// <param name="handle">Pointer (handle) to the unmanaged object.</param>
+ /// <remarks>
+ /// <para>
+ /// This constructor is invoked by the runtime infrastructure (<see cref="ObjCRuntime.Runtime.GetNSObject(System.IntPtr)" />) to create a new managed representation for a pointer to an unmanaged Objective-C object.
+ /// Developers should not invoke this method directly, instead they should call <see cref="ObjCRuntime.Runtime.GetNSObject(System.IntPtr)" /> as it will prevent two instances of a managed object pointing to the same native object.
+ /// </para>
+ /// </remarks>
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected internal MLState (NativeHandle handle) : base (handle)
+ {
+ }
+
+ [Export ("getMultiArrayForStateNamed:handler:")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual void GetMultiArrayForState (string stateName, [BlockProxy (typeof (ObjCRuntime.Trampolines.NIDMLStateGetMultiArrayForStateHandler))]MLStateGetMultiArrayForStateHandler handler)
+ {
+ if (stateName is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (stateName));
+ if (handler is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (handler));
+ var nsstateName = CFString.CreateNative (stateName);
+ using var block_handler = Trampolines.SDMLStateGetMultiArrayForStateHandler.CreateBlock (handler);
+ BlockLiteral *block_ptr_handler = &block_handler;
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_NativeHandle_NativeHandle (this.Handle, selGetMultiArrayForStateNamed_Handler_XHandle, nsstateName, (IntPtr) block_ptr_handler);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_NativeHandle_NativeHandle (this.SuperHandle, selGetMultiArrayForStateNamed_Handler_XHandle, nsstateName, (IntPtr) block_ptr_handler);
+ }
+ CFString.ReleaseNative (nsstateName);
+ }
+ } /* class MLState */
+}
diff --git a/new/dotnet/macos/generated-sources/CoreML/MLStateConstraint.g.cs b/new/dotnet/macos/generated-sources/CoreML/MLStateConstraint.g.cs
new file mode 100644
index 0000000..7b5d1fb
--- /dev/null
+++ b/new/dotnet/macos/generated-sources/CoreML/MLStateConstraint.g.cs
@@ -0,0 +1,202 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Drawing;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.Versioning;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using Metal;
+using CoreML;
+using OpenGL;
+using AppKit;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Contacts;
+using Security;
+using CloudKit;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using ObjCRuntime;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using FileProvider;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace CoreML {
+ [Register("MLStateConstraint", true)]
+ [SupportedOSPlatform ("tvos18.0")]
+ [SupportedOSPlatform ("macos15.0")]
+ [SupportedOSPlatform ("ios18.0")]
+ [SupportedOSPlatform ("maccatalyst18.0")]
+ public unsafe partial class MLStateConstraint : NSObject, INSCoding, INSSecureCoding {
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selBufferShapeX = "bufferShape";
+ static readonly NativeHandle selBufferShapeXHandle = Selector.GetHandle ("bufferShape");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selDataTypeX = "dataType";
+ static readonly NativeHandle selDataTypeXHandle = Selector.GetHandle ("dataType");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selEncodeWithCoder_X = "encodeWithCoder:";
+ static readonly NativeHandle selEncodeWithCoder_XHandle = Selector.GetHandle ("encodeWithCoder:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selInitWithCoder_X = "initWithCoder:";
+ static readonly NativeHandle selInitWithCoder_XHandle = Selector.GetHandle ("initWithCoder:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ static readonly NativeHandle class_ptr = Class.GetHandle ("MLStateConstraint");
+ /// <summary>The Objective-C class handle for this class.</summary>
+ /// <value>The pointer to the Objective-C class.</value>
+ /// <remarks>
+ /// Each managed class mirrors an unmanaged Objective-C class.
+ /// This value contains the pointer to the Objective-C class.
+ /// It is similar to calling the managed <see cref="ObjCRuntime.Class.GetHandle(string)" /> or the native <see href="https://developer.apple.com/documentation/objectivec/1418952-objc_getclass">objc_getClass</see> method with the type name.
+ /// </remarks>
+ public override NativeHandle ClassHandle { get { return class_ptr; } }
+ /// <summary>A constructor that initializes the object from the data stored in the unarchiver object.</summary>
+ /// <param name="coder">The unarchiver object.</param>
+ /// <remarks>
+ /// <para>This constructor is provided to allow the class to be initialized from an unarchiver (for example, during NIB deserialization). This is part of the <see cref="Foundation.NSCoding" /> protocol.</para>
+ /// <para>If developers want to create a subclass of this object and continue to support deserialization from an archive, they should implement a constructor with an identical signature: taking a single parameter of type <see cref="Foundation.NSCoder" /> and decorate it with the <c>[Export("initWithCoder:"]</c> attribute.</para>
+ /// <para>The state of this object can also be serialized by using the <see cref="Foundation.INSCoding.EncodeTo" /> companion method.</para>
+ /// </remarks>
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [DesignatedInitializer]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ [Export ("initWithCoder:")]
+ public MLStateConstraint (NSCoder coder) : base (NSObjectFlag.Empty)
+ {
+ if (IsDirectBinding) {
+ InitializeHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend_IntPtr (this.Handle, Selector.InitWithCoder, coder.Handle), "initWithCoder:");
+ } else {
+ InitializeHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper_IntPtr (this.SuperHandle, Selector.InitWithCoder, coder.Handle), "initWithCoder:");
+ }
+ }
+
+ /// <summary>Constructor to call on derived classes to skip initialization and merely allocate the object.</summary>
+ /// <param name="t">Unused sentinel value, pass NSObjectFlag.Empty.</param>
+ /// <remarks>
+ /// <para>
+ /// This constructor should be called by derived classes when they completely construct the object in managed code and merely want the runtime to allocate and initialize the <see cref="Foundation.NSObject" />.
+ /// This is required to implement the two-step initialization process that Objective-C uses, the first step is to perform the object allocation, the second step is to initialize the object.
+ /// When developers invoke this constructor, they take advantage of a direct path that goes all the way up to <see cref="Foundation.NSObject" /> to merely allocate the object's memory and bind the Objective-C and C# objects together.
+ /// The actual initialization of the object is up to the developer.
+ /// </para>
+ /// <para>
+ /// This constructor is typically used by the binding generator to allocate the object, but prevent the actual initialization to take place.
+ /// Once the allocation has taken place, the constructor has to initialize the object.
+ /// With constructors generated by the binding generator this means that it manually invokes one of the "init" methods to initialize the object.
+ /// </para>
+ /// <para>It is the developer's responsibility to completely initialize the object if they chain up using this constructor chain.</para>
+ /// <para>
+ /// In general, if the developer's constructor invokes the corresponding base implementation, then it should also call an Objective-C init method.
+ /// If this is not the case, developers should instead chain to the proper constructor in their class.
+ /// </para>
+ /// <para>
+ /// The argument value is ignored and merely ensures that the only code that is executed is the construction phase is the basic <see cref="Foundation.NSObject" /> allocation and runtime type registration.
+ /// Typically the chaining would look like this:
+ /// </para>
+ /// <example>
+ /// <code lang="csharp lang-csharp"><![CDATA[
+ /// //
+ /// // The NSObjectFlag constructor merely allocates the object and registers the C# class with the Objective-C runtime if necessary.
+ /// // No actual initXxx method is invoked, that is done later in the constructor
+ /// //
+ /// // This is taken from the iOS SDK's source code for the UIView class:
+ /// //
+ /// [Export ("initWithFrame:")]
+ /// public UIView (System.Drawing.RectangleF frame) : base (NSObjectFlag.Empty)
+ /// {
+ /// // Invoke the init method now.
+ /// var initWithFrame = new Selector ("initWithFrame:").Handle;
+ /// if (IsDirectBinding) {
+ /// Handle = ObjCRuntime.Messaging.IntPtr_objc_msgSend_CGRect (this.Handle, initWithFrame, frame);
+ /// } else {
+ /// Handle = ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper_CGRect (this.SuperHandle, initWithFrame, frame);
+ /// }
+ /// }
+ /// ]]></code>
+ /// </example>
+ /// </remarks>
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected MLStateConstraint (NSObjectFlag t) : base (t)
+ {
+ }
+
+ /// <summary>A constructor used when creating managed representations of unmanaged objects. Called by the runtime.</summary>
+ /// <param name="handle">Pointer (handle) to the unmanaged object.</param>
+ /// <remarks>
+ /// <para>
+ /// This constructor is invoked by the runtime infrastructure (<see cref="ObjCRuntime.Runtime.GetNSObject(System.IntPtr)" />) to create a new managed representation for a pointer to an unmanaged Objective-C object.
+ /// Developers should not invoke this method directly, instead they should call <see cref="ObjCRuntime.Runtime.GetNSObject(System.IntPtr)" /> as it will prevent two instances of a managed object pointing to the same native object.
+ /// </para>
+ /// </remarks>
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected internal MLStateConstraint (NativeHandle handle) : base (handle)
+ {
+ }
+
+ [Export ("encodeWithCoder:")]
+ [SupportedOSPlatform ("ios18.0")]
+ [SupportedOSPlatform ("macos15.0")]
+ [SupportedOSPlatform ("tvos18.0")]
+ [SupportedOSPlatform ("maccatalyst18.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual void EncodeTo (NSCoder encoder)
+ {
+ var encoder__handle__ = encoder!.GetNonNullHandle (nameof (encoder));
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_NativeHandle (this.Handle, selEncodeWithCoder_XHandle, encoder__handle__);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_NativeHandle (this.SuperHandle, selEncodeWithCoder_XHandle, encoder__handle__);
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual NSNumber[] BufferShape {
+ [Export ("bufferShape")]
+ get {
+ NSNumber[]? ret;
+ if (IsDirectBinding) {
+ ret = CFArray.ArrayFromHandle<NSNumber>(global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend (this.Handle, selBufferShapeXHandle))!;
+ } else {
+ ret = CFArray.ArrayFromHandle<NSNumber>(global::ObjCRuntime.Messaging.NativeHandle_objc_msgSendSuper (this.SuperHandle, selBufferShapeXHandle))!;
+ }
+ return ret!;
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual MLMultiArrayDataType DataType {
+ [Export ("dataType")]
+ get {
+ MLMultiArrayDataType ret;
+ if (IsDirectBinding) {
+ ret = (MLMultiArrayDataType) (long) global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, selDataTypeXHandle);
+ } else {
+ ret = (MLMultiArrayDataType) (long) global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, selDataTypeXHandle);
+ }
+ return ret!;
+ }
+ }
+ } /* class MLStateConstraint */
+}
diff --git a/old/dotnet/macos/generated-sources/ObjCRuntime/Trampolines.g.cs b/new/dotnet/macos/generated-sources/ObjCRuntime/Trampolines.g.cs
index 68a5335..a6bc426 100644
--- a/old/dotnet/macos/generated-sources/ObjCRuntime/Trampolines.g.cs
+++ b/new/dotnet/macos/generated-sources/ObjCRuntime/Trampolines.g.cs
@@ -6293,6 +6293,219 @@ namespace ObjCRuntime {
}
} /* class NIDCLGeocodeCompletionHandler */
[UnmanagedFunctionPointerAttribute (CallingConvention.Cdecl)]
+ [UserDelegateType (typeof (global::CoreML.MLModelAssetGetFunctionNamesCompletionHandler))]
+ unsafe internal delegate void DMLModelAssetGetFunctionNamesCompletionHandler (IntPtr block, NativeHandle functionNames, NativeHandle error);
+ //
+ // This class bridges native block invocations that call into C#
+ //
+ static internal class SDMLModelAssetGetFunctionNamesCompletionHandler {
+ [Preserve (Conditional = true)]
+ [UnmanagedCallersOnly]
+ [UserDelegateType (typeof (global::CoreML.MLModelAssetGetFunctionNamesCompletionHandler))]
+ internal static unsafe void Invoke (IntPtr block, NativeHandle functionNames, NativeHandle error) {
+ var del = BlockLiteral.GetTarget<global::CoreML.MLModelAssetGetFunctionNamesCompletionHandler> (block);
+ if (del is not null) {
+ del (CFArray.StringArrayFromHandle (functionNames)!, Runtime.GetNSObject<NSError> (error)!);
+ }
+ }
+ internal static unsafe BlockLiteral CreateNullableBlock (global::CoreML.MLModelAssetGetFunctionNamesCompletionHandler? callback)
+ {
+ if (callback is null)
+ return default (BlockLiteral);
+ return CreateBlock (callback);
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ internal static unsafe BlockLiteral CreateBlock (global::CoreML.MLModelAssetGetFunctionNamesCompletionHandler callback)
+ {
+ delegate* unmanaged<IntPtr, NativeHandle, NativeHandle, void> trampoline = &Invoke;
+ return new BlockLiteral (trampoline, callback, typeof (SDMLModelAssetGetFunctionNamesCompletionHandler), nameof (Invoke));
+ }
+ } /* class SDMLModelAssetGetFunctionNamesCompletionHandler */
+ internal sealed class NIDMLModelAssetGetFunctionNamesCompletionHandler : TrampolineBlockBase {
+ DMLModelAssetGetFunctionNamesCompletionHandler invoker;
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe NIDMLModelAssetGetFunctionNamesCompletionHandler (BlockLiteral *block) : base (block)
+ {
+ invoker = block->GetDelegateForBlock<DMLModelAssetGetFunctionNamesCompletionHandler> ();
+ }
+ [Preserve (Conditional=true)]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe static global::CoreML.MLModelAssetGetFunctionNamesCompletionHandler? Create (IntPtr block)
+ {
+ if (block == IntPtr.Zero)
+ return null;
+ var del = (global::CoreML.MLModelAssetGetFunctionNamesCompletionHandler) GetExistingManagedDelegate (block);
+ return del ?? new NIDMLModelAssetGetFunctionNamesCompletionHandler ((BlockLiteral *) block).Invoke;
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ unsafe void Invoke (string[]? functionNames, NSError? error)
+ {
+ var error__handle__ = error.GetHandle ();
+ var nsa_functionNames = functionNames is null ? null : NSArray.FromStrings (functionNames);
+ invoker (BlockPointer, nsa_functionNames.GetHandle (), error__handle__);
+ if (nsa_functionNames is not null)
+ nsa_functionNames.Dispose ();
+ }
+ } /* class NIDMLModelAssetGetFunctionNamesCompletionHandler */
+ [UnmanagedFunctionPointerAttribute (CallingConvention.Cdecl)]
+ [UserDelegateType (typeof (global::CoreML.MLModelAssetGetModelDescriptionCompletionHandler))]
+ unsafe internal delegate void DMLModelAssetGetModelDescriptionCompletionHandler (IntPtr block, NativeHandle modelDescription, NativeHandle error);
+ //
+ // This class bridges native block invocations that call into C#
+ //
+ static internal class SDMLModelAssetGetModelDescriptionCompletionHandler {
+ [Preserve (Conditional = true)]
+ [UnmanagedCallersOnly]
+ [UserDelegateType (typeof (global::CoreML.MLModelAssetGetModelDescriptionCompletionHandler))]
+ internal static unsafe void Invoke (IntPtr block, NativeHandle modelDescription, NativeHandle error) {
+ var del = BlockLiteral.GetTarget<global::CoreML.MLModelAssetGetModelDescriptionCompletionHandler> (block);
+ if (del is not null) {
+ del ( Runtime.GetNSObject<MLModelDescription> (modelDescription)!, Runtime.GetNSObject<NSError> (error)!);
+ }
+ }
+ internal static unsafe BlockLiteral CreateNullableBlock (global::CoreML.MLModelAssetGetModelDescriptionCompletionHandler? callback)
+ {
+ if (callback is null)
+ return default (BlockLiteral);
+ return CreateBlock (callback);
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ internal static unsafe BlockLiteral CreateBlock (global::CoreML.MLModelAssetGetModelDescriptionCompletionHandler callback)
+ {
+ delegate* unmanaged<IntPtr, NativeHandle, NativeHandle, void> trampoline = &Invoke;
+ return new BlockLiteral (trampoline, callback, typeof (SDMLModelAssetGetModelDescriptionCompletionHandler), nameof (Invoke));
+ }
+ } /* class SDMLModelAssetGetModelDescriptionCompletionHandler */
+ internal sealed class NIDMLModelAssetGetModelDescriptionCompletionHandler : TrampolineBlockBase {
+ DMLModelAssetGetModelDescriptionCompletionHandler invoker;
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe NIDMLModelAssetGetModelDescriptionCompletionHandler (BlockLiteral *block) : base (block)
+ {
+ invoker = block->GetDelegateForBlock<DMLModelAssetGetModelDescriptionCompletionHandler> ();
+ }
+ [Preserve (Conditional=true)]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe static global::CoreML.MLModelAssetGetModelDescriptionCompletionHandler? Create (IntPtr block)
+ {
+ if (block == IntPtr.Zero)
+ return null;
+ var del = (global::CoreML.MLModelAssetGetModelDescriptionCompletionHandler) GetExistingManagedDelegate (block);
+ return del ?? new NIDMLModelAssetGetModelDescriptionCompletionHandler ((BlockLiteral *) block).Invoke;
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ unsafe void Invoke (global::CoreML.MLModelDescription? modelDescription, NSError? error)
+ {
+ var modelDescription__handle__ = modelDescription.GetHandle ();
+ var error__handle__ = error.GetHandle ();
+ invoker (BlockPointer, modelDescription__handle__, error__handle__);
+ }
+ } /* class NIDMLModelAssetGetModelDescriptionCompletionHandler */
+ [UnmanagedFunctionPointerAttribute (CallingConvention.Cdecl)]
+ [UserDelegateType (typeof (global::CoreML.MLStateGetMultiArrayForStateHandler))]
+ unsafe internal delegate void DMLStateGetMultiArrayForStateHandler (IntPtr block, NativeHandle buffer);
+ //
+ // This class bridges native block invocations that call into C#
+ //
+ static internal class SDMLStateGetMultiArrayForStateHandler {
+ [Preserve (Conditional = true)]
+ [UnmanagedCallersOnly]
+ [UserDelegateType (typeof (global::CoreML.MLStateGetMultiArrayForStateHandler))]
+ internal static unsafe void Invoke (IntPtr block, NativeHandle buffer) {
+ var del = BlockLiteral.GetTarget<global::CoreML.MLStateGetMultiArrayForStateHandler> (block);
+ if (del is not null) {
+ del ( Runtime.GetNSObject<MLMultiArray> (buffer)!);
+ }
+ }
+ internal static unsafe BlockLiteral CreateNullableBlock (global::CoreML.MLStateGetMultiArrayForStateHandler? callback)
+ {
+ if (callback is null)
+ return default (BlockLiteral);
+ return CreateBlock (callback);
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ internal static unsafe BlockLiteral CreateBlock (global::CoreML.MLStateGetMultiArrayForStateHandler callback)
+ {
+ delegate* unmanaged<IntPtr, NativeHandle, void> trampoline = &Invoke;
+ return new BlockLiteral (trampoline, callback, typeof (SDMLStateGetMultiArrayForStateHandler), nameof (Invoke));
+ }
+ } /* class SDMLStateGetMultiArrayForStateHandler */
+ internal sealed class NIDMLStateGetMultiArrayForStateHandler : TrampolineBlockBase {
+ DMLStateGetMultiArrayForStateHandler invoker;
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe NIDMLStateGetMultiArrayForStateHandler (BlockLiteral *block) : base (block)
+ {
+ invoker = block->GetDelegateForBlock<DMLStateGetMultiArrayForStateHandler> ();
+ }
+ [Preserve (Conditional=true)]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe static global::CoreML.MLStateGetMultiArrayForStateHandler? Create (IntPtr block)
+ {
+ if (block == IntPtr.Zero)
+ return null;
+ var del = (global::CoreML.MLStateGetMultiArrayForStateHandler) GetExistingManagedDelegate (block);
+ return del ?? new NIDMLStateGetMultiArrayForStateHandler ((BlockLiteral *) block).Invoke;
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ unsafe void Invoke (global::CoreML.MLMultiArray buffer)
+ {
+ var buffer__handle__ = buffer.GetHandle ();
+ invoker (BlockPointer, buffer__handle__);
+ }
+ } /* class NIDMLStateGetMultiArrayForStateHandler */
+ [UnmanagedFunctionPointerAttribute (CallingConvention.Cdecl)]
+ [UserDelegateType (typeof (global::CoreML.MLStateGetPredictionCompletionHandler))]
+ unsafe internal delegate void DMLStateGetPredictionCompletionHandler (IntPtr block, NativeHandle output, NativeHandle error);
+ //
+ // This class bridges native block invocations that call into C#
+ //
+ static internal class SDMLStateGetPredictionCompletionHandler {
+ [Preserve (Conditional = true)]
+ [UnmanagedCallersOnly]
+ [UserDelegateType (typeof (global::CoreML.MLStateGetPredictionCompletionHandler))]
+ internal static unsafe void Invoke (IntPtr block, NativeHandle output, NativeHandle error) {
+ var del = BlockLiteral.GetTarget<global::CoreML.MLStateGetPredictionCompletionHandler> (block);
+ if (del is not null) {
+ del ( Runtime.GetINativeObject<CoreML.IMLFeatureProvider> (output, false)!, Runtime.GetNSObject<NSError> (error)!);
+ }
+ }
+ internal static unsafe BlockLiteral CreateNullableBlock (global::CoreML.MLStateGetPredictionCompletionHandler? callback)
+ {
+ if (callback is null)
+ return default (BlockLiteral);
+ return CreateBlock (callback);
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ internal static unsafe BlockLiteral CreateBlock (global::CoreML.MLStateGetPredictionCompletionHandler callback)
+ {
+ delegate* unmanaged<IntPtr, NativeHandle, NativeHandle, void> trampoline = &Invoke;
+ return new BlockLiteral (trampoline, callback, typeof (SDMLStateGetPredictionCompletionHandler), nameof (Invoke));
+ }
+ } /* class SDMLStateGetPredictionCompletionHandler */
+ internal sealed class NIDMLStateGetPredictionCompletionHandler : TrampolineBlockBase {
+ DMLStateGetPredictionCompletionHandler invoker;
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe NIDMLStateGetPredictionCompletionHandler (BlockLiteral *block) : base (block)
+ {
+ invoker = block->GetDelegateForBlock<DMLStateGetPredictionCompletionHandler> ();
+ }
+ [Preserve (Conditional=true)]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe static global::CoreML.MLStateGetPredictionCompletionHandler? Create (IntPtr block)
+ {
+ if (block == IntPtr.Zero)
+ return null;
+ var del = (global::CoreML.MLStateGetPredictionCompletionHandler) GetExistingManagedDelegate (block);
+ return del ?? new NIDMLStateGetPredictionCompletionHandler ((BlockLiteral *) block).Invoke;
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ unsafe void Invoke (global::CoreML.IMLFeatureProvider? output, NSError error)
+ {
+ var output__handle__ = output.GetHandle ();
+ var error__handle__ = error.GetHandle ();
+ invoker (BlockPointer, output__handle__, error__handle__);
+ }
+ } /* class NIDMLStateGetPredictionCompletionHandler */
+ [UnmanagedFunctionPointerAttribute (CallingConvention.Cdecl)]
[UserDelegateType (typeof (global::CoreMidi.MidiCIDiscoveryResponseDelegate))]
unsafe internal delegate void DMidiCIDiscoveryResponseDelegate (IntPtr block, NativeHandle discoveredNodes);
//
diff --git a/old/dotnet/macos/generated-sources/SupportDelegates.g.cs b/new/dotnet/macos/generated-sources/SupportDelegates.g.cs
index 120c780..68e4bb1 100644
--- a/old/dotnet/macos/generated-sources/SupportDelegates.g.cs
+++ b/new/dotnet/macos/generated-sources/SupportDelegates.g.cs
@@ -320,6 +320,13 @@ namespace CoreLocation {
public delegate void CLGeocodeCompletionHandler (CLPlacemark[] placemarks, NSError error);
public delegate bool CLLocationManagerEventArgs (CLLocationManager manager);
}
+namespace CoreML {
+ #nullable enable
+ public delegate void MLModelAssetGetFunctionNamesCompletionHandler (String[]? functionNames, NSError? error);
+ public delegate void MLModelAssetGetModelDescriptionCompletionHandler (MLModelDescription? modelDescription, NSError? error);
+ public delegate void MLStateGetMultiArrayForStateHandler (MLMultiArray buffer);
+ public delegate void MLStateGetPredictionCompletionHandler (IMLFeatureProvider? output, NSError error);
+}
namespace CoreMidi {
#nullable enable
public delegate void MidiCIDiscoveryResponseDelegate (CoreMidi.MidiCIDiscoveredNode[] discoveredNodes);
diff --git a/old/dotnet/macos/ref/Microsoft.macOS.xml b/new/dotnet/macos/ref/Microsoft.macOS.xml
index 4e57172..8b150d4 100644
--- a/old/dotnet/macos/ref/Microsoft.macOS.xml
+++ b/new/dotnet/macos/ref/Microsoft.macOS.xml
@@ -107592,6 +107592,147 @@
</para>
</remarks>
</member>
+ <member name="P:CoreML.MLState.ClassHandle">
+ <summary>The Objective-C class handle for this class.</summary>
+ <value>The pointer to the Objective-C class.</value>
+ <remarks>
+ Each managed class mirrors an unmanaged Objective-C class.
+ This value contains the pointer to the Objective-C class.
+ It is similar to calling the managed <see cref="M:ObjCRuntime.Class.GetHandle(System.String)" /> or the native <see href="https://developer.apple.com/documentation/objectivec/1418952-objc_getclass">objc_getClass</see> method with the type name.
+ </remarks>
+ </member>
+ <member name="M:CoreML.MLState.#ctor(Foundation.NSObjectFlag)">
+ <summary>Constructor to call on derived classes to skip initialization and merely allocate the object.</summary>
+ <param name="t">Unused sentinel value, pass NSObjectFlag.Empty.</param>
+ <remarks>
+ <para>
+ This constructor should be called by derived classes when they completely construct the object in managed code and merely want the runtime to allocate and initialize the <see cref="T:Foundation.NSObject" />.
+ This is required to implement the two-step initialization process that Objective-C uses, the first step is to perform the object allocation, the second step is to initialize the object.
+ When developers invoke this constructor, they take advantage of a direct path that goes all the way up to <see cref="T:Foundation.NSObject" /> to merely allocate the object's memory and bind the Objective-C and C# objects together.
+ The actual initialization of the object is up to the developer.
+ </para>
+ <para>
+ This constructor is typically used by the binding generator to allocate the object, but prevent the actual initialization to take place.
+ Once the allocation has taken place, the constructor has to initialize the object.
+ With constructors generated by the binding generator this means that it manually invokes one of the "init" methods to initialize the object.
+ </para>
+ <para>It is the developer's responsibility to completely initialize the object if they chain up using this constructor chain.</para>
+ <para>
+ In general, if the developer's constructor invokes the corresponding base implementation, then it should also call an Objective-C init method.
+ If this is not the case, developers should instead chain to the proper constructor in their class.
+ </para>
+ <para>
+ The argument value is ignored and merely ensures that the only code that is executed is the construction phase is the basic <see cref="T:Foundation.NSObject" /> allocation and runtime type registration.
+ Typically the chaining would look like this:
+ </para>
+ <example>
+ <code lang="csharp lang-csharp"><![CDATA[
+ //
+ // The NSObjectFlag constructor merely allocates the object and registers the C# class with the Objective-C runtime if necessary.
+ // No actual initXxx method is invoked, that is done later in the constructor
+ //
+ // This is taken from the iOS SDK's source code for the UIView class:
+ //
+ [Export ("initWithFrame:")]
+ public UIView (System.Drawing.RectangleF frame) : base (NSObjectFlag.Empty)
+ {
+ // Invoke the init method now.
+ var initWithFrame = new Selector ("initWithFrame:").Handle;
+ if (IsDirectBinding) {
+ Handle = ObjCRuntime.Messaging.IntPtr_objc_msgSend_CGRect (this.Handle, initWithFrame, frame);
+ } else {
+ Handle = ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper_CGRect (this.SuperHandle, initWithFrame, frame);
+ }
+ }
+ ]]></code>
+ </example>
+ </remarks>
+ </member>
+ <member name="M:CoreML.MLState.#ctor(ObjCRuntime.NativeHandle)">
+ <summary>A constructor used when creating managed representations of unmanaged objects. Called by the runtime.</summary>
+ <param name="handle">Pointer (handle) to the unmanaged object.</param>
+ <remarks>
+ <para>
+ This constructor is invoked by the runtime infrastructure (<see cref="M:ObjCRuntime.Runtime.GetNSObject(System.IntPtr)" />) to create a new managed representation for a pointer to an unmanaged Objective-C object.
+ Developers should not invoke this method directly, instead they should call <see cref="M:ObjCRuntime.Runtime.GetNSObject(System.IntPtr)" /> as it will prevent two instances of a managed object pointing to the same native object.
+ </para>
+ </remarks>
+ </member>
+ <member name="P:CoreML.MLStateConstraint.ClassHandle">
+ <summary>The Objective-C class handle for this class.</summary>
+ <value>The pointer to the Objective-C class.</value>
+ <remarks>
+ Each managed class mirrors an unmanaged Objective-C class.
+ This value contains the pointer to the Objective-C class.
+ It is similar to calling the managed <see cref="M:ObjCRuntime.Class.GetHandle(System.String)" /> or the native <see href="https://developer.apple.com/documentation/objectivec/1418952-objc_getclass">objc_getClass</see> method with the type name.
+ </remarks>
+ </member>
+ <member name="M:CoreML.MLStateConstraint.#ctor(Foundation.NSCoder)">
+ <summary>A constructor that initializes the object from the data stored in the unarchiver object.</summary>
+ <param name="coder">The unarchiver object.</param>
+ <remarks>
+ <para>This constructor is provided to allow the class to be initialized from an unarchiver (for example, during NIB deserialization). This is part of the <see cref="T:Foundation.NSCoding" /> protocol.</para>
+ <para>If developers want to create a subclass of this object and continue to support deserialization from an archive, they should implement a constructor with an identical signature: taking a single parameter of type <see cref="T:Foundation.NSCoder" /> and decorate it with the <c>[Export("initWithCoder:"]</c> attribute.</para>
+ <para>The state of this object can also be serialized by using the <see cref="M:Foundation.INSCoding.EncodeTo(Foundation.NSCoder)" /> companion method.</para>
+ </remarks>
+ </member>
+ <member name="M:CoreML.MLStateConstraint.#ctor(Foundation.NSObjectFlag)">
+ <summary>Constructor to call on derived classes to skip initialization and merely allocate the object.</summary>
+ <param name="t">Unused sentinel value, pass NSObjectFlag.Empty.</param>
+ <remarks>
+ <para>
+ This constructor should be called by derived classes when they completely construct the object in managed code and merely want the runtime to allocate and initialize the <see cref="T:Foundation.NSObject" />.
+ This is required to implement the two-step initialization process that Objective-C uses, the first step is to perform the object allocation, the second step is to initialize the object.
+ When developers invoke this constructor, they take advantage of a direct path that goes all the way up to <see cref="T:Foundation.NSObject" /> to merely allocate the object's memory and bind the Objective-C and C# objects together.
+ The actual initialization of the object is up to the developer.
+ </para>
+ <para>
+ This constructor is typically used by the binding generator to allocate the object, but prevent the actual initialization to take place.
+ Once the allocation has taken place, the constructor has to initialize the object.
+ With constructors generated by the binding generator this means that it manually invokes one of the "init" methods to initialize the object.
+ </para>
+ <para>It is the developer's responsibility to completely initialize the object if they chain up using this constructor chain.</para>
+ <para>
+ In general, if the developer's constructor invokes the corresponding base implementation, then it should also call an Objective-C init method.
+ If this is not the case, developers should instead chain to the proper constructor in their class.
+ </para>
+ <para>
+ The argument value is ignored and merely ensures that the only code that is executed is the construction phase is the basic <see cref="T:Foundation.NSObject" /> allocation and runtime type registration.
+ Typically the chaining would look like this:
+ </para>
+ <example>
+ <code lang="csharp lang-csharp"><![CDATA[
+ //
+ // The NSObjectFlag constructor merely allocates the object and registers the C# class with the Objective-C runtime if necessary.
+ // No actual initXxx method is invoked, that is done later in the constructor
+ //
+ // This is taken from the iOS SDK's source code for the UIView class:
+ //
+ [Export ("initWithFrame:")]
+ public UIView (System.Drawing.RectangleF frame) : base (NSObjectFlag.Empty)
+ {
+ // Invoke the init method now.
+ var initWithFrame = new Selector ("initWithFrame:").Handle;
+ if (IsDirectBinding) {
+ Handle = ObjCRuntime.Messaging.IntPtr_objc_msgSend_CGRect (this.Handle, initWithFrame, frame);
+ } else {
+ Handle = ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper_CGRect (this.SuperHandle, initWithFrame, frame);
+ }
+ }
+ ]]></code>
+ </example>
+ </remarks>
+ </member>
+ <member name="M:CoreML.MLStateConstraint.#ctor(ObjCRuntime.NativeHandle)">
+ <summary>A constructor used when creating managed representations of unmanaged objects. Called by the runtime.</summary>
+ <param name="handle">Pointer (handle) to the unmanaged object.</param>
+ <remarks>
+ <para>
+ This constructor is invoked by the runtime infrastructure (<see cref="M:ObjCRuntime.Runtime.GetNSObject(System.IntPtr)" />) to create a new managed representation for a pointer to an unmanaged Objective-C object.
+ Developers should not invoke this method directly, instead they should call <see cref="M:ObjCRuntime.Runtime.GetNSObject(System.IntPtr)" /> as it will prevent two instances of a managed object pointing to the same native object.
+ </para>
+ </remarks>
+ </member>
<member name="P:CoreML.MLTask.ClassHandle">
<summary>The Objective-C class handle for this class.</summary>
<value>The pointer to the Objective-C class.</value>
diff --git a/old/dotnet/tvos/SourceLink.json b/new/dotnet/tvos/SourceLink.json
index bcad111..bf3f4eb 100644
--- a/old/dotnet/tvos/SourceLink.json
+++ b/new/dotnet/tvos/SourceLink.json
@@ -1,5 +1,5 @@
{
"documents": {
- "/Users/builder/azdo/_work/4/a/change-detection/tmp/src/xamarin-macios/src*": "https://raw.githubusercontent.com/xamarin/xamarin-macios/515d0ce8f7e1a72ea00f875f442d032d3f0e3969/src*"
+ "/Users/builder/azdo/_work/4/s/xamarin-macios/src*": "https://raw.githubusercontent.com/xamarin/xamarin-macios/9a8964f0264b00e9e7b961cbc4fb8a1d009ec09a/src*"
}
}
diff --git a/old/dotnet/tvos/doc/Microsoft.tvOS.xml b/new/dotnet/tvos/doc/Microsoft.tvOS.xml
index 47c2b2e..19dfde2 100644
--- a/old/dotnet/tvos/doc/Microsoft.tvOS.xml
+++ b/new/dotnet/tvos/doc/Microsoft.tvOS.xml
@@ -84581,6 +84581,147 @@
</para>
</remarks>
</member>
+ <member name="P:CoreML.MLState.ClassHandle">
+ <summary>The Objective-C class handle for this class.</summary>
+ <value>The pointer to the Objective-C class.</value>
+ <remarks>
+ Each managed class mirrors an unmanaged Objective-C class.
+ This value contains the pointer to the Objective-C class.
+ It is similar to calling the managed <see cref="M:ObjCRuntime.Class.GetHandle(System.String)" /> or the native <see href="https://developer.apple.com/documentation/objectivec/1418952-objc_getclass">objc_getClass</see> method with the type name.
+ </remarks>
+ </member>
+ <member name="M:CoreML.MLState.#ctor(Foundation.NSObjectFlag)">
+ <summary>Constructor to call on derived classes to skip initialization and merely allocate the object.</summary>
+ <param name="t">Unused sentinel value, pass NSObjectFlag.Empty.</param>
+ <remarks>
+ <para>
+ This constructor should be called by derived classes when they completely construct the object in managed code and merely want the runtime to allocate and initialize the <see cref="T:Foundation.NSObject" />.
+ This is required to implement the two-step initialization process that Objective-C uses, the first step is to perform the object allocation, the second step is to initialize the object.
+ When developers invoke this constructor, they take advantage of a direct path that goes all the way up to <see cref="T:Foundation.NSObject" /> to merely allocate the object's memory and bind the Objective-C and C# objects together.
+ The actual initialization of the object is up to the developer.
+ </para>
+ <para>
+ This constructor is typically used by the binding generator to allocate the object, but prevent the actual initialization to take place.
+ Once the allocation has taken place, the constructor has to initialize the object.
+ With constructors generated by the binding generator this means that it manually invokes one of the "init" methods to initialize the object.
+ </para>
+ <para>It is the developer's responsibility to completely initialize the object if they chain up using this constructor chain.</para>
+ <para>
+ In general, if the developer's constructor invokes the corresponding base implementation, then it should also call an Objective-C init method.
+ If this is not the case, developers should instead chain to the proper constructor in their class.
+ </para>
+ <para>
+ The argument value is ignored and merely ensures that the only code that is executed is the construction phase is the basic <see cref="T:Foundation.NSObject" /> allocation and runtime type registration.
+ Typically the chaining would look like this:
+ </para>
+ <example>
+ <code lang="csharp lang-csharp"><![CDATA[
+ //
+ // The NSObjectFlag constructor merely allocates the object and registers the C# class with the Objective-C runtime if necessary.
+ // No actual initXxx method is invoked, that is done later in the constructor
+ //
+ // This is taken from the iOS SDK's source code for the UIView class:
+ //
+ [Export ("initWithFrame:")]
+ public UIView (System.Drawing.RectangleF frame) : base (NSObjectFlag.Empty)
+ {
+ // Invoke the init method now.
+ var initWithFrame = new Selector ("initWithFrame:").Handle;
+ if (IsDirectBinding) {
+ Handle = ObjCRuntime.Messaging.IntPtr_objc_msgSend_CGRect (this.Handle, initWithFrame, frame);
+ } else {
+ Handle = ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper_CGRect (this.SuperHandle, initWithFrame, frame);
+ }
+ }
+ ]]></code>
+ </example>
+ </remarks>
+ </member>
+ <member name="M:CoreML.MLState.#ctor(ObjCRuntime.NativeHandle)">
+ <summary>A constructor used when creating managed representations of unmanaged objects. Called by the runtime.</summary>
+ <param name="handle">Pointer (handle) to the unmanaged object.</param>
+ <remarks>
+ <para>
+ This constructor is invoked by the runtime infrastructure (<see cref="M:ObjCRuntime.Runtime.GetNSObject(System.IntPtr)" />) to create a new managed representation for a pointer to an unmanaged Objective-C object.
+ Developers should not invoke this method directly, instead they should call <see cref="M:ObjCRuntime.Runtime.GetNSObject(System.IntPtr)" /> as it will prevent two instances of a managed object pointing to the same native object.
+ </para>
+ </remarks>
+ </member>
+ <member name="P:CoreML.MLStateConstraint.ClassHandle">
+ <summary>The Objective-C class handle for this class.</summary>
+ <value>The pointer to the Objective-C class.</value>
+ <remarks>
+ Each managed class mirrors an unmanaged Objective-C class.
+ This value contains the pointer to the Objective-C class.
+ It is similar to calling the managed <see cref="M:ObjCRuntime.Class.GetHandle(System.String)" /> or the native <see href="https://developer.apple.com/documentation/objectivec/1418952-objc_getclass">objc_getClass</see> method with the type name.
+ </remarks>
+ </member>
+ <member name="M:CoreML.MLStateConstraint.#ctor(Foundation.NSCoder)">
+ <summary>A constructor that initializes the object from the data stored in the unarchiver object.</summary>
+ <param name="coder">The unarchiver object.</param>
+ <remarks>
+ <para>This constructor is provided to allow the class to be initialized from an unarchiver (for example, during NIB deserialization). This is part of the <see cref="T:Foundation.NSCoding" /> protocol.</para>
+ <para>If developers want to create a subclass of this object and continue to support deserialization from an archive, they should implement a constructor with an identical signature: taking a single parameter of type <see cref="T:Foundation.NSCoder" /> and decorate it with the <c>[Export("initWithCoder:"]</c> attribute.</para>
+ <para>The state of this object can also be serialized by using the <see cref="M:Foundation.INSCoding.EncodeTo(Foundation.NSCoder)" /> companion method.</para>
+ </remarks>
+ </member>
+ <member name="M:CoreML.MLStateConstraint.#ctor(Foundation.NSObjectFlag)">
+ <summary>Constructor to call on derived classes to skip initialization and merely allocate the object.</summary>
+ <param name="t">Unused sentinel value, pass NSObjectFlag.Empty.</param>
+ <remarks>
+ <para>
+ This constructor should be called by derived classes when they completely construct the object in managed code and merely want the runtime to allocate and initialize the <see cref="T:Foundation.NSObject" />.
+ This is required to implement the two-step initialization process that Objective-C uses, the first step is to perform the object allocation, the second step is to initialize the object.
+ When developers invoke this constructor, they take advantage of a direct path that goes all the way up to <see cref="T:Foundation.NSObject" /> to merely allocate the object's memory and bind the Objective-C and C# objects together.
+ The actual initialization of the object is up to the developer.
+ </para>
+ <para>
+ This constructor is typically used by the binding generator to allocate the object, but prevent the actual initialization to take place.
+ Once the allocation has taken place, the constructor has to initialize the object.
+ With constructors generated by the binding generator this means that it manually invokes one of the "init" methods to initialize the object.
+ </para>
+ <para>It is the developer's responsibility to completely initialize the object if they chain up using this constructor chain.</para>
+ <para>
+ In general, if the developer's constructor invokes the corresponding base implementation, then it should also call an Objective-C init method.
+ If this is not the case, developers should instead chain to the proper constructor in their class.
+ </para>
+ <para>
+ The argument value is ignored and merely ensures that the only code that is executed is the construction phase is the basic <see cref="T:Foundation.NSObject" /> allocation and runtime type registration.
+ Typically the chaining would look like this:
+ </para>
+ <example>
+ <code lang="csharp lang-csharp"><![CDATA[
+ //
+ // The NSObjectFlag constructor merely allocates the object and registers the C# class with the Objective-C runtime if necessary.
+ // No actual initXxx method is invoked, that is done later in the constructor
+ //
+ // This is taken from the iOS SDK's source code for the UIView class:
+ //
+ [Export ("initWithFrame:")]
+ public UIView (System.Drawing.RectangleF frame) : base (NSObjectFlag.Empty)
+ {
+ // Invoke the init method now.
+ var initWithFrame = new Selector ("initWithFrame:").Handle;
+ if (IsDirectBinding) {
+ Handle = ObjCRuntime.Messaging.IntPtr_objc_msgSend_CGRect (this.Handle, initWithFrame, frame);
+ } else {
+ Handle = ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper_CGRect (this.SuperHandle, initWithFrame, frame);
+ }
+ }
+ ]]></code>
+ </example>
+ </remarks>
+ </member>
+ <member name="M:CoreML.MLStateConstraint.#ctor(ObjCRuntime.NativeHandle)">
+ <summary>A constructor used when creating managed representations of unmanaged objects. Called by the runtime.</summary>
+ <param name="handle">Pointer (handle) to the unmanaged object.</param>
+ <remarks>
+ <para>
+ This constructor is invoked by the runtime infrastructure (<see cref="M:ObjCRuntime.Runtime.GetNSObject(System.IntPtr)" />) to create a new managed representation for a pointer to an unmanaged Objective-C object.
+ Developers should not invoke this method directly, instead they should call <see cref="M:ObjCRuntime.Runtime.GetNSObject(System.IntPtr)" /> as it will prevent two instances of a managed object pointing to the same native object.
+ </para>
+ </remarks>
+ </member>
<member name="P:CoreML.MLTask.ClassHandle">
<summary>The Objective-C class handle for this class.</summary>
<value>The pointer to the Objective-C class.</value>
diff --git a/old/dotnet/tvos/generated-sources/CoreML/MLFeatureDescription.g.cs b/new/dotnet/tvos/generated-sources/CoreML/MLFeatureDescription.g.cs
index 3d1cdea..be55cc2 100644
--- a/old/dotnet/tvos/generated-sources/CoreML/MLFeatureDescription.g.cs
+++ b/new/dotnet/tvos/generated-sources/CoreML/MLFeatureDescription.g.cs
@@ -297,6 +297,23 @@ namespace CoreML {
}
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [SupportedOSPlatform ("tvos18.0")]
+ [SupportedOSPlatform ("macos15.0")]
+ [SupportedOSPlatform ("ios18.0")]
+ [SupportedOSPlatform ("maccatalyst18.0")]
+ public virtual MLStateConstraint? StateConstraint {
+ [Export ("stateConstraint")]
+ get {
+ MLStateConstraint? ret;
+ if (IsDirectBinding) {
+ ret = Runtime.GetNSObject<MLStateConstraint> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend (this.Handle, Selector.GetHandle ("stateConstraint")))!;
+ } else {
+ ret = Runtime.GetNSObject<MLStateConstraint> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSendSuper (this.SuperHandle, Selector.GetHandle ("stateConstraint")))!;
+ }
+ return ret!;
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public virtual MLFeatureType Type {
[Export ("type")]
get {
diff --git a/old/dotnet/tvos/generated-sources/CoreML/MLFeatureType.g.cs b/new/dotnet/tvos/generated-sources/CoreML/MLFeatureType.g.cs
index b55a511..603753e 100644
--- a/old/dotnet/tvos/generated-sources/CoreML/MLFeatureType.g.cs
+++ b/new/dotnet/tvos/generated-sources/CoreML/MLFeatureType.g.cs
@@ -60,5 +60,10 @@ namespace CoreML {
[SupportedOSPlatform ("maccatalyst")]
[SupportedOSPlatform ("macos")]
Sequence = 7,
+ [SupportedOSPlatform ("tvos18.0")]
+ [SupportedOSPlatform ("macos15.0")]
+ [SupportedOSPlatform ("ios18.0")]
+ [SupportedOSPlatform ("maccatalyst18.0")]
+ State = 8,
}
}
diff --git a/old/dotnet/tvos/generated-sources/CoreML/MLModelAsset.g.cs b/new/dotnet/tvos/generated-sources/CoreML/MLModelAsset.g.cs
index 1d5dff7..0926395 100644
--- a/old/dotnet/tvos/generated-sources/CoreML/MLModelAsset.g.cs
+++ b/new/dotnet/tvos/generated-sources/CoreML/MLModelAsset.g.cs
@@ -137,5 +137,94 @@ namespace CoreML {
error = Runtime.GetNSObject<NSError> (errorValue)!;
return ret!;
}
+ [Export ("modelAssetWithURL:error:")]
+ [SupportedOSPlatform ("tvos18.0")]
+ [SupportedOSPlatform ("macos15.0")]
+ [SupportedOSPlatform ("ios18.0")]
+ [SupportedOSPlatform ("maccatalyst18.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe static MLModelAsset? Create (NSUrl compiledModelUrl, out NSError? error)
+ {
+ var compiledModelUrl__handle__ = compiledModelUrl!.GetNonNullHandle (nameof (compiledModelUrl));
+ NativeHandle errorValue = IntPtr.Zero;
+ MLModelAsset? ret;
+ ret = Runtime.GetNSObject<MLModelAsset> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_ref_NativeHandle (class_ptr, Selector.GetHandle ("modelAssetWithURL:error:"), compiledModelUrl__handle__, &errorValue))!;
+ error = Runtime.GetNSObject<NSError> (errorValue)!;
+ return ret!;
+ }
+ [Export ("modelAssetWithSpecificationData:blobMapping:error:")]
+ [SupportedOSPlatform ("tvos18.0")]
+ [SupportedOSPlatform ("macos15.0")]
+ [SupportedOSPlatform ("ios18.0")]
+ [SupportedOSPlatform ("maccatalyst18.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe static MLModelAsset? Create (NSData specificationData, NSDictionary<NSUrl, NSData> blobMapping, out NSError? error)
+ {
+ var specificationData__handle__ = specificationData!.GetNonNullHandle (nameof (specificationData));
+ var blobMapping__handle__ = blobMapping!.GetNonNullHandle (nameof (blobMapping));
+ NativeHandle errorValue = IntPtr.Zero;
+ MLModelAsset? ret;
+ ret = Runtime.GetNSObject<MLModelAsset> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_NativeHandle_ref_NativeHandle (class_ptr, Selector.GetHandle ("modelAssetWithSpecificationData:blobMapping:error:"), specificationData__handle__, blobMapping__handle__, &errorValue))!;
+ error = Runtime.GetNSObject<NSError> (errorValue)!;
+ return ret!;
+ }
+ [Export ("functionNamesWithCompletionHandler:")]
+ [SupportedOSPlatform ("tvos18.0")]
+ [SupportedOSPlatform ("macos15.0")]
+ [SupportedOSPlatform ("ios18.0")]
+ [SupportedOSPlatform ("maccatalyst18.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual void GetFunctionNames ([BlockProxy (typeof (ObjCRuntime.Trampolines.NIDMLModelAssetGetFunctionNamesCompletionHandler))]MLModelAssetGetFunctionNamesCompletionHandler handler)
+ {
+ if (handler is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (handler));
+ using var block_handler = Trampolines.SDMLModelAssetGetFunctionNamesCompletionHandler.CreateBlock (handler);
+ BlockLiteral *block_ptr_handler = &block_handler;
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("functionNamesWithCompletionHandler:"), (IntPtr) block_ptr_handler);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_NativeHandle (this.SuperHandle, Selector.GetHandle ("functionNamesWithCompletionHandler:"), (IntPtr) block_ptr_handler);
+ }
+ }
+ [Export ("modelDescriptionWithCompletionHandler:")]
+ [SupportedOSPlatform ("tvos18.0")]
+ [SupportedOSPlatform ("macos15.0")]
+ [SupportedOSPlatform ("ios18.0")]
+ [SupportedOSPlatform ("maccatalyst18.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual void GetModelDescription ([BlockProxy (typeof (ObjCRuntime.Trampolines.NIDMLModelAssetGetModelDescriptionCompletionHandler))]MLModelAssetGetModelDescriptionCompletionHandler handler)
+ {
+ if (handler is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (handler));
+ using var block_handler = Trampolines.SDMLModelAssetGetModelDescriptionCompletionHandler.CreateBlock (handler);
+ BlockLiteral *block_ptr_handler = &block_handler;
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("modelDescriptionWithCompletionHandler:"), (IntPtr) block_ptr_handler);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_NativeHandle (this.SuperHandle, Selector.GetHandle ("modelDescriptionWithCompletionHandler:"), (IntPtr) block_ptr_handler);
+ }
+ }
+ [Export ("modelDescriptionOfFunctionNamed:completionHandler:")]
+ [SupportedOSPlatform ("tvos18.0")]
+ [SupportedOSPlatform ("macos15.0")]
+ [SupportedOSPlatform ("ios18.0")]
+ [SupportedOSPlatform ("maccatalyst18.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual void GetModelDescription (string functionName, [BlockProxy (typeof (ObjCRuntime.Trampolines.NIDMLModelAssetGetModelDescriptionCompletionHandler))]MLModelAssetGetModelDescriptionCompletionHandler handler)
+ {
+ if (functionName is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (functionName));
+ if (handler is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (handler));
+ var nsfunctionName = CFString.CreateNative (functionName);
+ using var block_handler = Trampolines.SDMLModelAssetGetModelDescriptionCompletionHandler.CreateBlock (handler);
+ BlockLiteral *block_ptr_handler = &block_handler;
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_NativeHandle_NativeHandle (this.Handle, Selector.GetHandle ("modelDescriptionOfFunctionNamed:completionHandler:"), nsfunctionName, (IntPtr) block_ptr_handler);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_NativeHandle_NativeHandle (this.SuperHandle, Selector.GetHandle ("modelDescriptionOfFunctionNamed:completionHandler:"), nsfunctionName, (IntPtr) block_ptr_handler);
+ }
+ CFString.ReleaseNative (nsfunctionName);
+ }
} /* class MLModelAsset */
}
diff --git a/old/dotnet/tvos/generated-sources/CoreML/MLModelConfiguration.g.cs b/new/dotnet/tvos/generated-sources/CoreML/MLModelConfiguration.g.cs
index 568b800..73c9f1f 100644
--- a/old/dotnet/tvos/generated-sources/CoreML/MLModelConfiguration.g.cs
+++ b/new/dotnet/tvos/generated-sources/CoreML/MLModelConfiguration.g.cs
@@ -237,6 +237,31 @@ namespace CoreML {
}
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [SupportedOSPlatform ("tvos18.0")]
+ [SupportedOSPlatform ("macos15.0")]
+ [SupportedOSPlatform ("ios18.0")]
+ [SupportedOSPlatform ("maccatalyst18.0")]
+ public virtual string? FunctionName {
+ [Export ("functionName", ArgumentSemantic.Copy)]
+ get {
+ if (IsDirectBinding) {
+ return CFString.FromHandle (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend (this.Handle, Selector.GetHandle ("functionName")))!;
+ } else {
+ return CFString.FromHandle (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSendSuper (this.SuperHandle, Selector.GetHandle ("functionName")))!;
+ }
+ }
+ [Export ("setFunctionName:", ArgumentSemantic.Copy)]
+ set {
+ var nsvalue = CFString.CreateNative (value);
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("setFunctionName:"), nsvalue);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_NativeHandle (this.SuperHandle, Selector.GetHandle ("setFunctionName:"), nsvalue);
+ }
+ CFString.ReleaseNative (nsvalue);
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
[SupportedOSPlatform ("tvos16.0")]
[SupportedOSPlatform ("macos13.0")]
[SupportedOSPlatform ("ios16.0")]
diff --git a/old/dotnet/tvos/generated-sources/CoreML/MLModelDescription.g.cs b/new/dotnet/tvos/generated-sources/CoreML/MLModelDescription.g.cs
index 84428a7..57bbb1a 100644
--- a/old/dotnet/tvos/generated-sources/CoreML/MLModelDescription.g.cs
+++ b/new/dotnet/tvos/generated-sources/CoreML/MLModelDescription.g.cs
@@ -278,6 +278,23 @@ namespace CoreML {
}
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [SupportedOSPlatform ("tvos18.0")]
+ [SupportedOSPlatform ("macos15.0")]
+ [SupportedOSPlatform ("ios18.0")]
+ [SupportedOSPlatform ("maccatalyst18.0")]
+ public virtual NSDictionary<NSString, MLFeatureDescription> StateDescriptionsByName {
+ [Export ("stateDescriptionsByName")]
+ get {
+ NSDictionary<NSString, MLFeatureDescription>? ret;
+ if (IsDirectBinding) {
+ ret = Runtime.GetNSObject<NSDictionary<NSString, MLFeatureDescription>> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend (this.Handle, Selector.GetHandle ("stateDescriptionsByName")))!;
+ } else {
+ ret = Runtime.GetNSObject<NSDictionary<NSString, MLFeatureDescription>> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSendSuper (this.SuperHandle, Selector.GetHandle ("stateDescriptionsByName")))!;
+ }
+ return ret!;
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
[SupportedOSPlatform ("tvos13.0")]
[SupportedOSPlatform ("ios13.0")]
[SupportedOSPlatform ("maccatalyst")]
diff --git a/new/dotnet/tvos/generated-sources/CoreML/MLModel_MLState.g.cs b/new/dotnet/tvos/generated-sources/CoreML/MLModel_MLState.g.cs
new file mode 100644
index 0000000..f632735
--- /dev/null
+++ b/new/dotnet/tvos/generated-sources/CoreML/MLModel_MLState.g.cs
@@ -0,0 +1,101 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Drawing;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.Versioning;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using UIKit;
+using GLKit;
+using Metal;
+using CoreML;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Security;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using ObjCRuntime;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace CoreML {
+ [SupportedOSPlatform ("tvos18.0")]
+ [SupportedOSPlatform ("macos15.0")]
+ [SupportedOSPlatform ("ios18.0")]
+ [SupportedOSPlatform ("maccatalyst18.0")]
+ public unsafe static partial class MLModel_MLState {
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ static readonly NativeHandle class_ptr = Class.GetHandle ("MLModel");
+ [Export ("newState")]
+ [return: ReleaseAttribute ()]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public static MLState CreateNewState (this MLModel This)
+ {
+ MLState? ret;
+ ret = Runtime.GetNSObject<MLState> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend (This.Handle, Selector.GetHandle ("newState")))!;
+ if (ret is not null)
+ global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release"));
+ return ret!;
+ }
+ [Export ("predictionFromFeatures:usingState:error:")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe static IMLFeatureProvider? GetPrediction (this MLModel This, IMLFeatureProvider inputFeatures, MLState state, out NSError error)
+ {
+ var inputFeatures__handle__ = inputFeatures!.GetNonNullHandle (nameof (inputFeatures));
+ var state__handle__ = state!.GetNonNullHandle (nameof (state));
+ NativeHandle errorValue = IntPtr.Zero;
+ IMLFeatureProvider? ret;
+ ret = Runtime.GetINativeObject<IMLFeatureProvider> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_NativeHandle_ref_NativeHandle (This.Handle, Selector.GetHandle ("predictionFromFeatures:usingState:error:"), inputFeatures__handle__, state__handle__, &errorValue), false)!;
+ error = Runtime.GetNSObject<NSError> (errorValue)!;
+ return ret!;
+ }
+ [Export ("predictionFromFeatures:usingState:options:error:")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe static IMLFeatureProvider? GetPrediction (this MLModel This, IMLFeatureProvider inputFeatures, MLState state, MLPredictionOptions options, out NSError error)
+ {
+ var inputFeatures__handle__ = inputFeatures!.GetNonNullHandle (nameof (inputFeatures));
+ var state__handle__ = state!.GetNonNullHandle (nameof (state));
+ var options__handle__ = options!.GetNonNullHandle (nameof (options));
+ NativeHandle errorValue = IntPtr.Zero;
+ IMLFeatureProvider? ret;
+ ret = Runtime.GetINativeObject<IMLFeatureProvider> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_NativeHandle_NativeHandle_ref_NativeHandle (This.Handle, Selector.GetHandle ("predictionFromFeatures:usingState:options:error:"), inputFeatures__handle__, state__handle__, options__handle__, &errorValue), false)!;
+ error = Runtime.GetNSObject<NSError> (errorValue)!;
+ return ret!;
+ }
+ [Export ("predictionFromFeatures:usingState:options:completionHandler:")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe static IMLFeatureProvider? GetPrediction (this MLModel This, IMLFeatureProvider inputFeatures, MLState state, MLPredictionOptions options, [BlockProxy (typeof (ObjCRuntime.Trampolines.NIDMLStateGetPredictionCompletionHandler))]MLStateGetPredictionCompletionHandler completionHandler)
+ {
+ var inputFeatures__handle__ = inputFeatures!.GetNonNullHandle (nameof (inputFeatures));
+ var state__handle__ = state!.GetNonNullHandle (nameof (state));
+ var options__handle__ = options!.GetNonNullHandle (nameof (options));
+ if (completionHandler is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (completionHandler));
+ using var block_completionHandler = Trampolines.SDMLStateGetPredictionCompletionHandler.CreateBlock (completionHandler);
+ BlockLiteral *block_ptr_completionHandler = &block_completionHandler;
+ return Runtime.GetINativeObject<IMLFeatureProvider> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_NativeHandle_NativeHandle_NativeHandle (This.Handle, Selector.GetHandle ("predictionFromFeatures:usingState:options:completionHandler:"), inputFeatures__handle__, state__handle__, options__handle__, (IntPtr) block_ptr_completionHandler), false)!;
+ }
+ } /* class MLModel_MLState */
+}
diff --git a/old/dotnet/tvos/generated-sources/CoreML/MLMultiArray.g.cs b/new/dotnet/tvos/generated-sources/CoreML/MLMultiArray.g.cs
index aff9c6a..9aee201 100644
--- a/old/dotnet/tvos/generated-sources/CoreML/MLMultiArray.g.cs
+++ b/new/dotnet/tvos/generated-sources/CoreML/MLMultiArray.g.cs
@@ -160,6 +160,29 @@ namespace CoreML {
nsa_shape.Dispose ();
error = Runtime.GetNSObject<NSError> (errorValue)!;
}
+ [Export ("initWithShape:dataType:strides:")]
+ [SupportedOSPlatform ("ios18.0")]
+ [SupportedOSPlatform ("tvos18.0")]
+ [SupportedOSPlatform ("maccatalyst18.0")]
+ [SupportedOSPlatform ("macos15.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public MLMultiArray (NSNumber[] shape, MLMultiArrayDataType dataType, NSNumber[] strides)
+ : base (NSObjectFlag.Empty)
+ {
+ if (shape is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (shape));
+ if (strides is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (strides));
+ var nsa_shape = NSArray.FromNSObjects (shape);
+ var nsa_strides = NSArray.FromNSObjects (strides);
+ if (IsDirectBinding) {
+ InitializeHandle (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_IntPtr_NativeHandle (this.Handle, Selector.GetHandle ("initWithShape:dataType:strides:"), nsa_shape.Handle, (IntPtr) (long) dataType, nsa_strides.Handle), "initWithShape:dataType:strides:");
+ } else {
+ InitializeHandle (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSendSuper_NativeHandle_IntPtr_NativeHandle (this.SuperHandle, Selector.GetHandle ("initWithShape:dataType:strides:"), nsa_shape.Handle, (IntPtr) (long) dataType, nsa_strides.Handle), "initWithShape:dataType:strides:");
+ }
+ nsa_shape.Dispose ();
+ nsa_strides.Dispose ();
+ }
[Export ("initWithDataPointer:shape:dataType:strides:deallocator:error:")]
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public unsafe MLMultiArray (nint dataPointer, NSNumber[] shape, MLMultiArrayDataType dataType, NSNumber[] strides, [BlockProxy (typeof (ObjCRuntime.Trampolines.NIDActionArity1V23))]global::System.Action<nint>? deallocator, out NSError error)
@@ -361,6 +384,21 @@ namespace CoreML {
var obj__handle__ = obj!.GetNonNullHandle (nameof (obj));
global::ObjCRuntime.Messaging.void_objc_msgSend_NativeHandle_IntPtr (this.Handle, Selector.GetHandle ("setObject:forKeyedSubscript:"), obj__handle__, key);
}
+ [Export ("transferToMultiArray:")]
+ [SupportedOSPlatform ("ios18.0")]
+ [SupportedOSPlatform ("tvos18.0")]
+ [SupportedOSPlatform ("maccatalyst18.0")]
+ [SupportedOSPlatform ("macos15.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual void TransferToMultiArray (MLMultiArray destinationMultiArray)
+ {
+ var destinationMultiArray__handle__ = destinationMultiArray!.GetNonNullHandle (nameof (destinationMultiArray));
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("transferToMultiArray:"), destinationMultiArray__handle__);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_NativeHandle (this.SuperHandle, Selector.GetHandle ("transferToMultiArray:"), destinationMultiArray__handle__);
+ }
+ }
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public virtual nint Count {
[Export ("count")]
diff --git a/old/dotnet/tvos/generated-sources/CoreML/MLMultiArrayDataType.g.cs b/new/dotnet/tvos/generated-sources/CoreML/MLMultiArrayDataType.g.cs
index b3a18f9..03a9b1c 100644
--- a/old/dotnet/tvos/generated-sources/CoreML/MLMultiArrayDataType.g.cs
+++ b/new/dotnet/tvos/generated-sources/CoreML/MLMultiArrayDataType.g.cs
@@ -51,6 +51,11 @@ namespace CoreML {
Double = 65600,
Float64 = 65600,
Float32 = 65568,
+ [SupportedOSPlatform ("macos12.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ [SupportedOSPlatform ("tvos16.0")]
+ Float16 = 65552,
Float = 65568,
Int32 = 131104,
}
diff --git a/old/dotnet/tvos/generated-sources/CoreML/MLOptimizationHints.g.cs b/new/dotnet/tvos/generated-sources/CoreML/MLOptimizationHints.g.cs
index 1a7ec0e..65c6c7e 100644
--- a/old/dotnet/tvos/generated-sources/CoreML/MLOptimizationHints.g.cs
+++ b/new/dotnet/tvos/generated-sources/CoreML/MLOptimizationHints.g.cs
@@ -211,5 +211,30 @@ namespace CoreML {
}
}
}
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [SupportedOSPlatform ("tvos18.0")]
+ [SupportedOSPlatform ("macos15.0")]
+ [SupportedOSPlatform ("ios18.0")]
+ [SupportedOSPlatform ("maccatalyst18.0")]
+ public virtual MLSpecializationStrategy SpecializationStrategy {
+ [Export ("specializationStrategy", ArgumentSemantic.Assign)]
+ get {
+ MLSpecializationStrategy ret;
+ if (IsDirectBinding) {
+ ret = (MLSpecializationStrategy) (long) global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, Selector.GetHandle ("specializationStrategy"));
+ } else {
+ ret = (MLSpecializationStrategy) (long) global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, Selector.GetHandle ("specializationStrategy"));
+ }
+ return ret!;
+ }
+ [Export ("setSpecializationStrategy:", ArgumentSemantic.Assign)]
+ set {
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_IntPtr (this.Handle, Selector.GetHandle ("setSpecializationStrategy:"), (IntPtr) (long) value);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr (this.SuperHandle, Selector.GetHandle ("setSpecializationStrategy:"), (IntPtr) (long) value);
+ }
+ }
+ }
} /* class MLOptimizationHints */
}
diff --git a/new/dotnet/tvos/generated-sources/CoreML/MLSpecializationStrategy.g.cs b/new/dotnet/tvos/generated-sources/CoreML/MLSpecializationStrategy.g.cs
new file mode 100644
index 0000000..ea945c7
--- /dev/null
+++ b/new/dotnet/tvos/generated-sources/CoreML/MLSpecializationStrategy.g.cs
@@ -0,0 +1,53 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Drawing;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.Versioning;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using UIKit;
+using GLKit;
+using Metal;
+using CoreML;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Security;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using ObjCRuntime;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace CoreML {
+ [SupportedOSPlatform ("tvos18.0")]
+ [SupportedOSPlatform ("macos15.0")]
+ [SupportedOSPlatform ("ios18.0")]
+ [SupportedOSPlatform ("maccatalyst18.0")]
+ [Native]
+ public enum MLSpecializationStrategy : long {
+ Default = 0,
+ FastPrediction = 1,
+ }
+}
diff --git a/new/dotnet/tvos/generated-sources/CoreML/MLState.g.cs b/new/dotnet/tvos/generated-sources/CoreML/MLState.g.cs
new file mode 100644
index 0000000..e57ba08
--- /dev/null
+++ b/new/dotnet/tvos/generated-sources/CoreML/MLState.g.cs
@@ -0,0 +1,144 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Drawing;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.Versioning;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using UIKit;
+using GLKit;
+using Metal;
+using CoreML;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Security;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using ObjCRuntime;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace CoreML {
+ [Register("MLState", true)]
+ [SupportedOSPlatform ("tvos18.0")]
+ [SupportedOSPlatform ("macos15.0")]
+ [SupportedOSPlatform ("ios18.0")]
+ [SupportedOSPlatform ("maccatalyst18.0")]
+ public unsafe partial class MLState : NSObject {
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ static readonly NativeHandle class_ptr = Class.GetHandle ("MLState");
+ /// <summary>The Objective-C class handle for this class.</summary>
+ /// <value>The pointer to the Objective-C class.</value>
+ /// <remarks>
+ /// Each managed class mirrors an unmanaged Objective-C class.
+ /// This value contains the pointer to the Objective-C class.
+ /// It is similar to calling the managed <see cref="ObjCRuntime.Class.GetHandle(string)" /> or the native <see href="https://developer.apple.com/documentation/objectivec/1418952-objc_getclass">objc_getClass</see> method with the type name.
+ /// </remarks>
+ public override NativeHandle ClassHandle { get { return class_ptr; } }
+ /// <summary>Constructor to call on derived classes to skip initialization and merely allocate the object.</summary>
+ /// <param name="t">Unused sentinel value, pass NSObjectFlag.Empty.</param>
+ /// <remarks>
+ /// <para>
+ /// This constructor should be called by derived classes when they completely construct the object in managed code and merely want the runtime to allocate and initialize the <see cref="Foundation.NSObject" />.
+ /// This is required to implement the two-step initialization process that Objective-C uses, the first step is to perform the object allocation, the second step is to initialize the object.
+ /// When developers invoke this constructor, they take advantage of a direct path that goes all the way up to <see cref="Foundation.NSObject" /> to merely allocate the object's memory and bind the Objective-C and C# objects together.
+ /// The actual initialization of the object is up to the developer.
+ /// </para>
+ /// <para>
+ /// This constructor is typically used by the binding generator to allocate the object, but prevent the actual initialization to take place.
+ /// Once the allocation has taken place, the constructor has to initialize the object.
+ /// With constructors generated by the binding generator this means that it manually invokes one of the "init" methods to initialize the object.
+ /// </para>
+ /// <para>It is the developer's responsibility to completely initialize the object if they chain up using this constructor chain.</para>
+ /// <para>
+ /// In general, if the developer's constructor invokes the corresponding base implementation, then it should also call an Objective-C init method.
+ /// If this is not the case, developers should instead chain to the proper constructor in their class.
+ /// </para>
+ /// <para>
+ /// The argument value is ignored and merely ensures that the only code that is executed is the construction phase is the basic <see cref="Foundation.NSObject" /> allocation and runtime type registration.
+ /// Typically the chaining would look like this:
+ /// </para>
+ /// <example>
+ /// <code lang="csharp lang-csharp"><![CDATA[
+ /// //
+ /// // The NSObjectFlag constructor merely allocates the object and registers the C# class with the Objective-C runtime if necessary.
+ /// // No actual initXxx method is invoked, that is done later in the constructor
+ /// //
+ /// // This is taken from the iOS SDK's source code for the UIView class:
+ /// //
+ /// [Export ("initWithFrame:")]
+ /// public UIView (System.Drawing.RectangleF frame) : base (NSObjectFlag.Empty)
+ /// {
+ /// // Invoke the init method now.
+ /// var initWithFrame = new Selector ("initWithFrame:").Handle;
+ /// if (IsDirectBinding) {
+ /// Handle = ObjCRuntime.Messaging.IntPtr_objc_msgSend_CGRect (this.Handle, initWithFrame, frame);
+ /// } else {
+ /// Handle = ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper_CGRect (this.SuperHandle, initWithFrame, frame);
+ /// }
+ /// }
+ /// ]]></code>
+ /// </example>
+ /// </remarks>
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected MLState (NSObjectFlag t) : base (t)
+ {
+ }
+
+ /// <summary>A constructor used when creating managed representations of unmanaged objects. Called by the runtime.</summary>
+ /// <param name="handle">Pointer (handle) to the unmanaged object.</param>
+ /// <remarks>
+ /// <para>
+ /// This constructor is invoked by the runtime infrastructure (<see cref="ObjCRuntime.Runtime.GetNSObject(System.IntPtr)" />) to create a new managed representation for a pointer to an unmanaged Objective-C object.
+ /// Developers should not invoke this method directly, instead they should call <see cref="ObjCRuntime.Runtime.GetNSObject(System.IntPtr)" /> as it will prevent two instances of a managed object pointing to the same native object.
+ /// </para>
+ /// </remarks>
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected internal MLState (NativeHandle handle) : base (handle)
+ {
+ }
+
+ [Export ("getMultiArrayForStateNamed:handler:")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual void GetMultiArrayForState (string stateName, [BlockProxy (typeof (ObjCRuntime.Trampolines.NIDMLStateGetMultiArrayForStateHandler))]MLStateGetMultiArrayForStateHandler handler)
+ {
+ if (stateName is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (stateName));
+ if (handler is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (handler));
+ var nsstateName = CFString.CreateNative (stateName);
+ using var block_handler = Trampolines.SDMLStateGetMultiArrayForStateHandler.CreateBlock (handler);
+ BlockLiteral *block_ptr_handler = &block_handler;
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_NativeHandle_NativeHandle (this.Handle, Selector.GetHandle ("getMultiArrayForStateNamed:handler:"), nsstateName, (IntPtr) block_ptr_handler);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_NativeHandle_NativeHandle (this.SuperHandle, Selector.GetHandle ("getMultiArrayForStateNamed:handler:"), nsstateName, (IntPtr) block_ptr_handler);
+ }
+ CFString.ReleaseNative (nsstateName);
+ }
+ } /* class MLState */
+}
diff --git a/new/dotnet/tvos/generated-sources/CoreML/MLStateConstraint.g.cs b/new/dotnet/tvos/generated-sources/CoreML/MLStateConstraint.g.cs
new file mode 100644
index 0000000..e136a5a
--- /dev/null
+++ b/new/dotnet/tvos/generated-sources/CoreML/MLStateConstraint.g.cs
@@ -0,0 +1,187 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Drawing;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.Versioning;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using UIKit;
+using GLKit;
+using Metal;
+using CoreML;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Security;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using ObjCRuntime;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace CoreML {
+ [Register("MLStateConstraint", true)]
+ [SupportedOSPlatform ("tvos18.0")]
+ [SupportedOSPlatform ("macos15.0")]
+ [SupportedOSPlatform ("ios18.0")]
+ [SupportedOSPlatform ("maccatalyst18.0")]
+ public unsafe partial class MLStateConstraint : NSObject, INSCoding, INSSecureCoding {
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ static readonly NativeHandle class_ptr = Class.GetHandle ("MLStateConstraint");
+ /// <summary>The Objective-C class handle for this class.</summary>
+ /// <value>The pointer to the Objective-C class.</value>
+ /// <remarks>
+ /// Each managed class mirrors an unmanaged Objective-C class.
+ /// This value contains the pointer to the Objective-C class.
+ /// It is similar to calling the managed <see cref="ObjCRuntime.Class.GetHandle(string)" /> or the native <see href="https://developer.apple.com/documentation/objectivec/1418952-objc_getclass">objc_getClass</see> method with the type name.
+ /// </remarks>
+ public override NativeHandle ClassHandle { get { return class_ptr; } }
+ /// <summary>A constructor that initializes the object from the data stored in the unarchiver object.</summary>
+ /// <param name="coder">The unarchiver object.</param>
+ /// <remarks>
+ /// <para>This constructor is provided to allow the class to be initialized from an unarchiver (for example, during NIB deserialization). This is part of the <see cref="Foundation.NSCoding" /> protocol.</para>
+ /// <para>If developers want to create a subclass of this object and continue to support deserialization from an archive, they should implement a constructor with an identical signature: taking a single parameter of type <see cref="Foundation.NSCoder" /> and decorate it with the <c>[Export("initWithCoder:"]</c> attribute.</para>
+ /// <para>The state of this object can also be serialized by using the <see cref="Foundation.INSCoding.EncodeTo" /> companion method.</para>
+ /// </remarks>
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [DesignatedInitializer]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ [Export ("initWithCoder:")]
+ public MLStateConstraint (NSCoder coder) : base (NSObjectFlag.Empty)
+ {
+ if (IsDirectBinding) {
+ InitializeHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend_IntPtr (this.Handle, Selector.GetHandle ("initWithCoder:"), coder.Handle), "initWithCoder:");
+ } else {
+ InitializeHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper_IntPtr (this.SuperHandle, Selector.GetHandle ("initWithCoder:"), coder.Handle), "initWithCoder:");
+ }
+ }
+
+ /// <summary>Constructor to call on derived classes to skip initialization and merely allocate the object.</summary>
+ /// <param name="t">Unused sentinel value, pass NSObjectFlag.Empty.</param>
+ /// <remarks>
+ /// <para>
+ /// This constructor should be called by derived classes when they completely construct the object in managed code and merely want the runtime to allocate and initialize the <see cref="Foundation.NSObject" />.
+ /// This is required to implement the two-step initialization process that Objective-C uses, the first step is to perform the object allocation, the second step is to initialize the object.
+ /// When developers invoke this constructor, they take advantage of a direct path that goes all the way up to <see cref="Foundation.NSObject" /> to merely allocate the object's memory and bind the Objective-C and C# objects together.
+ /// The actual initialization of the object is up to the developer.
+ /// </para>
+ /// <para>
+ /// This constructor is typically used by the binding generator to allocate the object, but prevent the actual initialization to take place.
+ /// Once the allocation has taken place, the constructor has to initialize the object.
+ /// With constructors generated by the binding generator this means that it manually invokes one of the "init" methods to initialize the object.
+ /// </para>
+ /// <para>It is the developer's responsibility to completely initialize the object if they chain up using this constructor chain.</para>
+ /// <para>
+ /// In general, if the developer's constructor invokes the corresponding base implementation, then it should also call an Objective-C init method.
+ /// If this is not the case, developers should instead chain to the proper constructor in their class.
+ /// </para>
+ /// <para>
+ /// The argument value is ignored and merely ensures that the only code that is executed is the construction phase is the basic <see cref="Foundation.NSObject" /> allocation and runtime type registration.
+ /// Typically the chaining would look like this:
+ /// </para>
+ /// <example>
+ /// <code lang="csharp lang-csharp"><![CDATA[
+ /// //
+ /// // The NSObjectFlag constructor merely allocates the object and registers the C# class with the Objective-C runtime if necessary.
+ /// // No actual initXxx method is invoked, that is done later in the constructor
+ /// //
+ /// // This is taken from the iOS SDK's source code for the UIView class:
+ /// //
+ /// [Export ("initWithFrame:")]
+ /// public UIView (System.Drawing.RectangleF frame) : base (NSObjectFlag.Empty)
+ /// {
+ /// // Invoke the init method now.
+ /// var initWithFrame = new Selector ("initWithFrame:").Handle;
+ /// if (IsDirectBinding) {
+ /// Handle = ObjCRuntime.Messaging.IntPtr_objc_msgSend_CGRect (this.Handle, initWithFrame, frame);
+ /// } else {
+ /// Handle = ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper_CGRect (this.SuperHandle, initWithFrame, frame);
+ /// }
+ /// }
+ /// ]]></code>
+ /// </example>
+ /// </remarks>
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected MLStateConstraint (NSObjectFlag t) : base (t)
+ {
+ }
+
+ /// <summary>A constructor used when creating managed representations of unmanaged objects. Called by the runtime.</summary>
+ /// <param name="handle">Pointer (handle) to the unmanaged object.</param>
+ /// <remarks>
+ /// <para>
+ /// This constructor is invoked by the runtime infrastructure (<see cref="ObjCRuntime.Runtime.GetNSObject(System.IntPtr)" />) to create a new managed representation for a pointer to an unmanaged Objective-C object.
+ /// Developers should not invoke this method directly, instead they should call <see cref="ObjCRuntime.Runtime.GetNSObject(System.IntPtr)" /> as it will prevent two instances of a managed object pointing to the same native object.
+ /// </para>
+ /// </remarks>
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected internal MLStateConstraint (NativeHandle handle) : base (handle)
+ {
+ }
+
+ [Export ("encodeWithCoder:")]
+ [SupportedOSPlatform ("ios18.0")]
+ [SupportedOSPlatform ("macos15.0")]
+ [SupportedOSPlatform ("tvos18.0")]
+ [SupportedOSPlatform ("maccatalyst18.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual void EncodeTo (NSCoder encoder)
+ {
+ var encoder__handle__ = encoder!.GetNonNullHandle (nameof (encoder));
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("encodeWithCoder:"), encoder__handle__);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_NativeHandle (this.SuperHandle, Selector.GetHandle ("encodeWithCoder:"), encoder__handle__);
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual NSNumber[] BufferShape {
+ [Export ("bufferShape")]
+ get {
+ NSNumber[]? ret;
+ if (IsDirectBinding) {
+ ret = CFArray.ArrayFromHandle<NSNumber>(global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend (this.Handle, Selector.GetHandle ("bufferShape")))!;
+ } else {
+ ret = CFArray.ArrayFromHandle<NSNumber>(global::ObjCRuntime.Messaging.NativeHandle_objc_msgSendSuper (this.SuperHandle, Selector.GetHandle ("bufferShape")))!;
+ }
+ return ret!;
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual MLMultiArrayDataType DataType {
+ [Export ("dataType")]
+ get {
+ MLMultiArrayDataType ret;
+ if (IsDirectBinding) {
+ ret = (MLMultiArrayDataType) (long) global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, Selector.GetHandle ("dataType"));
+ } else {
+ ret = (MLMultiArrayDataType) (long) global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, Selector.GetHandle ("dataType"));
+ }
+ return ret!;
+ }
+ }
+ } /* class MLStateConstraint */
+}
diff --git a/old/dotnet/tvos/generated-sources/ObjCRuntime/Trampolines.g.cs b/new/dotnet/tvos/generated-sources/ObjCRuntime/Trampolines.g.cs
index d179d30..c3d6693 100644
--- a/old/dotnet/tvos/generated-sources/ObjCRuntime/Trampolines.g.cs
+++ b/new/dotnet/tvos/generated-sources/ObjCRuntime/Trampolines.g.cs
@@ -3527,6 +3527,219 @@ namespace ObjCRuntime {
invoker (BlockPointer, diagnostic__handle__);
}
} /* class NIDCLServiceSessionCreateHandler */
+ [UnmanagedFunctionPointerAttribute (CallingConvention.Cdecl)]
+ [UserDelegateType (typeof (global::CoreML.MLModelAssetGetFunctionNamesCompletionHandler))]
+ unsafe internal delegate void DMLModelAssetGetFunctionNamesCompletionHandler (IntPtr block, NativeHandle functionNames, NativeHandle error);
+ //
+ // This class bridges native block invocations that call into C#
+ //
+ static internal class SDMLModelAssetGetFunctionNamesCompletionHandler {
+ [Preserve (Conditional = true)]
+ [UnmanagedCallersOnly]
+ [UserDelegateType (typeof (global::CoreML.MLModelAssetGetFunctionNamesCompletionHandler))]
+ internal static unsafe void Invoke (IntPtr block, NativeHandle functionNames, NativeHandle error) {
+ var del = BlockLiteral.GetTarget<global::CoreML.MLModelAssetGetFunctionNamesCompletionHandler> (block);
+ if (del is not null) {
+ del (CFArray.StringArrayFromHandle (functionNames)!, Runtime.GetNSObject<NSError> (error)!);
+ }
+ }
+ internal static unsafe BlockLiteral CreateNullableBlock (global::CoreML.MLModelAssetGetFunctionNamesCompletionHandler? callback)
+ {
+ if (callback is null)
+ return default (BlockLiteral);
+ return CreateBlock (callback);
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ internal static unsafe BlockLiteral CreateBlock (global::CoreML.MLModelAssetGetFunctionNamesCompletionHandler callback)
+ {
+ delegate* unmanaged<IntPtr, NativeHandle, NativeHandle, void> trampoline = &Invoke;
+ return new BlockLiteral (trampoline, callback, typeof (SDMLModelAssetGetFunctionNamesCompletionHandler), nameof (Invoke));
+ }
+ } /* class SDMLModelAssetGetFunctionNamesCompletionHandler */
+ internal sealed class NIDMLModelAssetGetFunctionNamesCompletionHandler : TrampolineBlockBase {
+ DMLModelAssetGetFunctionNamesCompletionHandler invoker;
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe NIDMLModelAssetGetFunctionNamesCompletionHandler (BlockLiteral *block) : base (block)
+ {
+ invoker = block->GetDelegateForBlock<DMLModelAssetGetFunctionNamesCompletionHandler> ();
+ }
+ [Preserve (Conditional=true)]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe static global::CoreML.MLModelAssetGetFunctionNamesCompletionHandler? Create (IntPtr block)
+ {
+ if (block == IntPtr.Zero)
+ return null;
+ var del = (global::CoreML.MLModelAssetGetFunctionNamesCompletionHandler) GetExistingManagedDelegate (block);
+ return del ?? new NIDMLModelAssetGetFunctionNamesCompletionHandler ((BlockLiteral *) block).Invoke;
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ unsafe void Invoke (string[]? functionNames, NSError? error)
+ {
+ var error__handle__ = error.GetHandle ();
+ var nsa_functionNames = functionNames is null ? null : NSArray.FromStrings (functionNames);
+ invoker (BlockPointer, nsa_functionNames.GetHandle (), error__handle__);
+ if (nsa_functionNames is not null)
+ nsa_functionNames.Dispose ();
+ }
+ } /* class NIDMLModelAssetGetFunctionNamesCompletionHandler */
+ [UnmanagedFunctionPointerAttribute (CallingConvention.Cdecl)]
+ [UserDelegateType (typeof (global::CoreML.MLModelAssetGetModelDescriptionCompletionHandler))]
+ unsafe internal delegate void DMLModelAssetGetModelDescriptionCompletionHandler (IntPtr block, NativeHandle modelDescription, NativeHandle error);
+ //
+ // This class bridges native block invocations that call into C#
+ //
+ static internal class SDMLModelAssetGetModelDescriptionCompletionHandler {
+ [Preserve (Conditional = true)]
+ [UnmanagedCallersOnly]
+ [UserDelegateType (typeof (global::CoreML.MLModelAssetGetModelDescriptionCompletionHandler))]
+ internal static unsafe void Invoke (IntPtr block, NativeHandle modelDescription, NativeHandle error) {
+ var del = BlockLiteral.GetTarget<global::CoreML.MLModelAssetGetModelDescriptionCompletionHandler> (block);
+ if (del is not null) {
+ del ( Runtime.GetNSObject<MLModelDescription> (modelDescription)!, Runtime.GetNSObject<NSError> (error)!);
+ }
+ }
+ internal static unsafe BlockLiteral CreateNullableBlock (global::CoreML.MLModelAssetGetModelDescriptionCompletionHandler? callback)
+ {
+ if (callback is null)
+ return default (BlockLiteral);
+ return CreateBlock (callback);
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ internal static unsafe BlockLiteral CreateBlock (global::CoreML.MLModelAssetGetModelDescriptionCompletionHandler callback)
+ {
+ delegate* unmanaged<IntPtr, NativeHandle, NativeHandle, void> trampoline = &Invoke;
+ return new BlockLiteral (trampoline, callback, typeof (SDMLModelAssetGetModelDescriptionCompletionHandler), nameof (Invoke));
+ }
+ } /* class SDMLModelAssetGetModelDescriptionCompletionHandler */
+ internal sealed class NIDMLModelAssetGetModelDescriptionCompletionHandler : TrampolineBlockBase {
+ DMLModelAssetGetModelDescriptionCompletionHandler invoker;
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe NIDMLModelAssetGetModelDescriptionCompletionHandler (BlockLiteral *block) : base (block)
+ {
+ invoker = block->GetDelegateForBlock<DMLModelAssetGetModelDescriptionCompletionHandler> ();
+ }
+ [Preserve (Conditional=true)]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe static global::CoreML.MLModelAssetGetModelDescriptionCompletionHandler? Create (IntPtr block)
+ {
+ if (block == IntPtr.Zero)
+ return null;
+ var del = (global::CoreML.MLModelAssetGetModelDescriptionCompletionHandler) GetExistingManagedDelegate (block);
+ return del ?? new NIDMLModelAssetGetModelDescriptionCompletionHandler ((BlockLiteral *) block).Invoke;
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ unsafe void Invoke (global::CoreML.MLModelDescription? modelDescription, NSError? error)
+ {
+ var modelDescription__handle__ = modelDescription.GetHandle ();
+ var error__handle__ = error.GetHandle ();
+ invoker (BlockPointer, modelDescription__handle__, error__handle__);
+ }
+ } /* class NIDMLModelAssetGetModelDescriptionCompletionHandler */
+ [UnmanagedFunctionPointerAttribute (CallingConvention.Cdecl)]
+ [UserDelegateType (typeof (global::CoreML.MLStateGetMultiArrayForStateHandler))]
+ unsafe internal delegate void DMLStateGetMultiArrayForStateHandler (IntPtr block, NativeHandle buffer);
+ //
+ // This class bridges native block invocations that call into C#
+ //
+ static internal class SDMLStateGetMultiArrayForStateHandler {
+ [Preserve (Conditional = true)]
+ [UnmanagedCallersOnly]
+ [UserDelegateType (typeof (global::CoreML.MLStateGetMultiArrayForStateHandler))]
+ internal static unsafe void Invoke (IntPtr block, NativeHandle buffer) {
+ var del = BlockLiteral.GetTarget<global::CoreML.MLStateGetMultiArrayForStateHandler> (block);
+ if (del is not null) {
+ del ( Runtime.GetNSObject<MLMultiArray> (buffer)!);
+ }
+ }
+ internal static unsafe BlockLiteral CreateNullableBlock (global::CoreML.MLStateGetMultiArrayForStateHandler? callback)
+ {
+ if (callback is null)
+ return default (BlockLiteral);
+ return CreateBlock (callback);
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ internal static unsafe BlockLiteral CreateBlock (global::CoreML.MLStateGetMultiArrayForStateHandler callback)
+ {
+ delegate* unmanaged<IntPtr, NativeHandle, void> trampoline = &Invoke;
+ return new BlockLiteral (trampoline, callback, typeof (SDMLStateGetMultiArrayForStateHandler), nameof (Invoke));
+ }
+ } /* class SDMLStateGetMultiArrayForStateHandler */
+ internal sealed class NIDMLStateGetMultiArrayForStateHandler : TrampolineBlockBase {
+ DMLStateGetMultiArrayForStateHandler invoker;
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe NIDMLStateGetMultiArrayForStateHandler (BlockLiteral *block) : base (block)
+ {
+ invoker = block->GetDelegateForBlock<DMLStateGetMultiArrayForStateHandler> ();
+ }
+ [Preserve (Conditional=true)]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe static global::CoreML.MLStateGetMultiArrayForStateHandler? Create (IntPtr block)
+ {
+ if (block == IntPtr.Zero)
+ return null;
+ var del = (global::CoreML.MLStateGetMultiArrayForStateHandler) GetExistingManagedDelegate (block);
+ return del ?? new NIDMLStateGetMultiArrayForStateHandler ((BlockLiteral *) block).Invoke;
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ unsafe void Invoke (global::CoreML.MLMultiArray buffer)
+ {
+ var buffer__handle__ = buffer.GetHandle ();
+ invoker (BlockPointer, buffer__handle__);
+ }
+ } /* class NIDMLStateGetMultiArrayForStateHandler */
+ [UnmanagedFunctionPointerAttribute (CallingConvention.Cdecl)]
+ [UserDelegateType (typeof (global::CoreML.MLStateGetPredictionCompletionHandler))]
+ unsafe internal delegate void DMLStateGetPredictionCompletionHandler (IntPtr block, NativeHandle output, NativeHandle error);
+ //
+ // This class bridges native block invocations that call into C#
+ //
+ static internal class SDMLStateGetPredictionCompletionHandler {
+ [Preserve (Conditional = true)]
+ [UnmanagedCallersOnly]
+ [UserDelegateType (typeof (global::CoreML.MLStateGetPredictionCompletionHandler))]
+ internal static unsafe void Invoke (IntPtr block, NativeHandle output, NativeHandle error) {
+ var del = BlockLiteral.GetTarget<global::CoreML.MLStateGetPredictionCompletionHandler> (block);
+ if (del is not null) {
+ del ( Runtime.GetINativeObject<CoreML.IMLFeatureProvider> (output, false)!, Runtime.GetNSObject<NSError> (error)!);
+ }
+ }
+ internal static unsafe BlockLiteral CreateNullableBlock (global::CoreML.MLStateGetPredictionCompletionHandler? callback)
+ {
+ if (callback is null)
+ return default (BlockLiteral);
+ return CreateBlock (callback);
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ internal static unsafe BlockLiteral CreateBlock (global::CoreML.MLStateGetPredictionCompletionHandler callback)
+ {
+ delegate* unmanaged<IntPtr, NativeHandle, NativeHandle, void> trampoline = &Invoke;
+ return new BlockLiteral (trampoline, callback, typeof (SDMLStateGetPredictionCompletionHandler), nameof (Invoke));
+ }
+ } /* class SDMLStateGetPredictionCompletionHandler */
+ internal sealed class NIDMLStateGetPredictionCompletionHandler : TrampolineBlockBase {
+ DMLStateGetPredictionCompletionHandler invoker;
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe NIDMLStateGetPredictionCompletionHandler (BlockLiteral *block) : base (block)
+ {
+ invoker = block->GetDelegateForBlock<DMLStateGetPredictionCompletionHandler> ();
+ }
+ [Preserve (Conditional=true)]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe static global::CoreML.MLStateGetPredictionCompletionHandler? Create (IntPtr block)
+ {
+ if (block == IntPtr.Zero)
+ return null;
+ var del = (global::CoreML.MLStateGetPredictionCompletionHandler) GetExistingManagedDelegate (block);
+ return del ?? new NIDMLStateGetPredictionCompletionHandler ((BlockLiteral *) block).Invoke;
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ unsafe void Invoke (global::CoreML.IMLFeatureProvider? output, NSError error)
+ {
+ var output__handle__ = output.GetHandle ();
+ var error__handle__ = error.GetHandle ();
+ invoker (BlockPointer, output__handle__, error__handle__);
+ }
+ } /* class NIDMLStateGetPredictionCompletionHandler */
[Experimental ("APL0001")]
[UnmanagedFunctionPointerAttribute (CallingConvention.Cdecl)]
[UserDelegateType (typeof (global::CryptoTokenKit.TKGetSlotCallback))]
diff --git a/old/dotnet/tvos/generated-sources/SupportDelegates.g.cs b/new/dotnet/tvos/generated-sources/SupportDelegates.g.cs
index ac65bfc..647a92e 100644
--- a/old/dotnet/tvos/generated-sources/SupportDelegates.g.cs
+++ b/new/dotnet/tvos/generated-sources/SupportDelegates.g.cs
@@ -139,6 +139,13 @@ namespace CoreLocation {
public delegate void CLGeocodeCompletionHandler (CLPlacemark[] placemarks, NSError error);
public delegate void CLServiceSessionCreateHandler (CLServiceSessionDiagnostic diagnostic);
}
+namespace CoreML {
+ #nullable enable
+ public delegate void MLModelAssetGetFunctionNamesCompletionHandler (String[]? functionNames, NSError? error);
+ public delegate void MLModelAssetGetModelDescriptionCompletionHandler (MLModelDescription? modelDescription, NSError? error);
+ public delegate void MLStateGetMultiArrayForStateHandler (MLMultiArray buffer);
+ public delegate void MLStateGetPredictionCompletionHandler (IMLFeatureProvider? output, NSError error);
+}
namespace CryptoTokenKit {
#nullable enable
[Experimental ("APL0001")]
diff --git a/old/dotnet/tvos/ref/Microsoft.tvOS.xml b/new/dotnet/tvos/ref/Microsoft.tvOS.xml
index 73424e0..6a0f672 100644
--- a/old/dotnet/tvos/ref/Microsoft.tvOS.xml
+++ b/new/dotnet/tvos/ref/Microsoft.tvOS.xml
@@ -82088,6 +82088,147 @@
</para>
</remarks>
</member>
+ <member name="P:CoreML.MLState.ClassHandle">
+ <summary>The Objective-C class handle for this class.</summary>
+ <value>The pointer to the Objective-C class.</value>
+ <remarks>
+ Each managed class mirrors an unmanaged Objective-C class.
+ This value contains the pointer to the Objective-C class.
+ It is similar to calling the managed <see cref="M:ObjCRuntime.Class.GetHandle(System.String)" /> or the native <see href="https://developer.apple.com/documentation/objectivec/1418952-objc_getclass">objc_getClass</see> method with the type name.
+ </remarks>
+ </member>
+ <member name="M:CoreML.MLState.#ctor(Foundation.NSObjectFlag)">
+ <summary>Constructor to call on derived classes to skip initialization and merely allocate the object.</summary>
+ <param name="t">Unused sentinel value, pass NSObjectFlag.Empty.</param>
+ <remarks>
+ <para>
+ This constructor should be called by derived classes when they completely construct the object in managed code and merely want the runtime to allocate and initialize the <see cref="T:Foundation.NSObject" />.
+ This is required to implement the two-step initialization process that Objective-C uses, the first step is to perform the object allocation, the second step is to initialize the object.
+ When developers invoke this constructor, they take advantage of a direct path that goes all the way up to <see cref="T:Foundation.NSObject" /> to merely allocate the object's memory and bind the Objective-C and C# objects together.
+ The actual initialization of the object is up to the developer.
+ </para>
+ <para>
+ This constructor is typically used by the binding generator to allocate the object, but prevent the actual initialization to take place.
+ Once the allocation has taken place, the constructor has to initialize the object.
+ With constructors generated by the binding generator this means that it manually invokes one of the "init" methods to initialize the object.
+ </para>
+ <para>It is the developer's responsibility to completely initialize the object if they chain up using this constructor chain.</para>
+ <para>
+ In general, if the developer's constructor invokes the corresponding base implementation, then it should also call an Objective-C init method.
+ If this is not the case, developers should instead chain to the proper constructor in their class.
+ </para>
+ <para>
+ The argument value is ignored and merely ensures that the only code that is executed is the construction phase is the basic <see cref="T:Foundation.NSObject" /> allocation and runtime type registration.
+ Typically the chaining would look like this:
+ </para>
+ <example>
+ <code lang="csharp lang-csharp"><![CDATA[
+ //
+ // The NSObjectFlag constructor merely allocates the object and registers the C# class with the Objective-C runtime if necessary.
+ // No actual initXxx method is invoked, that is done later in the constructor
+ //
+ // This is taken from the iOS SDK's source code for the UIView class:
+ //
+ [Export ("initWithFrame:")]
+ public UIView (System.Drawing.RectangleF frame) : base (NSObjectFlag.Empty)
+ {
+ // Invoke the init method now.
+ var initWithFrame = new Selector ("initWithFrame:").Handle;
+ if (IsDirectBinding) {
+ Handle = ObjCRuntime.Messaging.IntPtr_objc_msgSend_CGRect (this.Handle, initWithFrame, frame);
+ } else {
+ Handle = ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper_CGRect (this.SuperHandle, initWithFrame, frame);
+ }
+ }
+ ]]></code>
+ </example>
+ </remarks>
+ </member>
+ <member name="M:CoreML.MLState.#ctor(ObjCRuntime.NativeHandle)">
+ <summary>A constructor used when creating managed representations of unmanaged objects. Called by the runtime.</summary>
+ <param name="handle">Pointer (handle) to the unmanaged object.</param>
+ <remarks>
+ <para>
+ This constructor is invoked by the runtime infrastructure (<see cref="M:ObjCRuntime.Runtime.GetNSObject(System.IntPtr)" />) to create a new managed representation for a pointer to an unmanaged Objective-C object.
+ Developers should not invoke this method directly, instead they should call <see cref="M:ObjCRuntime.Runtime.GetNSObject(System.IntPtr)" /> as it will prevent two instances of a managed object pointing to the same native object.
+ </para>
+ </remarks>
+ </member>
+ <member name="P:CoreML.MLStateConstraint.ClassHandle">
+ <summary>The Objective-C class handle for this class.</summary>
+ <value>The pointer to the Objective-C class.</value>
+ <remarks>
+ Each managed class mirrors an unmanaged Objective-C class.
+ This value contains the pointer to the Objective-C class.
+ It is similar to calling the managed <see cref="M:ObjCRuntime.Class.GetHandle(System.String)" /> or the native <see href="https://developer.apple.com/documentation/objectivec/1418952-objc_getclass">objc_getClass</see> method with the type name.
+ </remarks>
+ </member>
+ <member name="M:CoreML.MLStateConstraint.#ctor(Foundation.NSCoder)">
+ <summary>A constructor that initializes the object from the data stored in the unarchiver object.</summary>
+ <param name="coder">The unarchiver object.</param>
+ <remarks>
+ <para>This constructor is provided to allow the class to be initialized from an unarchiver (for example, during NIB deserialization). This is part of the <see cref="T:Foundation.NSCoding" /> protocol.</para>
+ <para>If developers want to create a subclass of this object and continue to support deserialization from an archive, they should implement a constructor with an identical signature: taking a single parameter of type <see cref="T:Foundation.NSCoder" /> and decorate it with the <c>[Export("initWithCoder:"]</c> attribute.</para>
+ <para>The state of this object can also be serialized by using the <see cref="M:Foundation.INSCoding.EncodeTo(Foundation.NSCoder)" /> companion method.</para>
+ </remarks>
+ </member>
+ <member name="M:CoreML.MLStateConstraint.#ctor(Foundation.NSObjectFlag)">
+ <summary>Constructor to call on derived classes to skip initialization and merely allocate the object.</summary>
+ <param name="t">Unused sentinel value, pass NSObjectFlag.Empty.</param>
+ <remarks>
+ <para>
+ This constructor should be called by derived classes when they completely construct the object in managed code and merely want the runtime to allocate and initialize the <see cref="T:Foundation.NSObject" />.
+ This is required to implement the two-step initialization process that Objective-C uses, the first step is to perform the object allocation, the second step is to initialize the object.
+ When developers invoke this constructor, they take advantage of a direct path that goes all the way up to <see cref="T:Foundation.NSObject" /> to merely allocate the object's memory and bind the Objective-C and C# objects together.
+ The actual initialization of the object is up to the developer.
+ </para>
+ <para>
+ This constructor is typically used by the binding generator to allocate the object, but prevent the actual initialization to take place.
+ Once the allocation has taken place, the constructor has to initialize the object.
+ With constructors generated by the binding generator this means that it manually invokes one of the "init" methods to initialize the object.
+ </para>
+ <para>It is the developer's responsibility to completely initialize the object if they chain up using this constructor chain.</para>
+ <para>
+ In general, if the developer's constructor invokes the corresponding base implementation, then it should also call an Objective-C init method.
+ If this is not the case, developers should instead chain to the proper constructor in their class.
+ </para>
+ <para>
+ The argument value is ignored and merely ensures that the only code that is executed is the construction phase is the basic <see cref="T:Foundation.NSObject" /> allocation and runtime type registration.
+ Typically the chaining would look like this:
+ </para>
+ <example>
+ <code lang="csharp lang-csharp"><![CDATA[
+ //
+ // The NSObjectFlag constructor merely allocates the object and registers the C# class with the Objective-C runtime if necessary.
+ // No actual initXxx method is invoked, that is done later in the constructor
+ //
+ // This is taken from the iOS SDK's source code for the UIView class:
+ //
+ [Export ("initWithFrame:")]
+ public UIView (System.Drawing.RectangleF frame) : base (NSObjectFlag.Empty)
+ {
+ // Invoke the init method now.
+ var initWithFrame = new Selector ("initWithFrame:").Handle;
+ if (IsDirectBinding) {
+ Handle = ObjCRuntime.Messaging.IntPtr_objc_msgSend_CGRect (this.Handle, initWithFrame, frame);
+ } else {
+ Handle = ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper_CGRect (this.SuperHandle, initWithFrame, frame);
+ }
+ }
+ ]]></code>
+ </example>
+ </remarks>
+ </member>
+ <member name="M:CoreML.MLStateConstraint.#ctor(ObjCRuntime.NativeHandle)">
+ <summary>A constructor used when creating managed representations of unmanaged objects. Called by the runtime.</summary>
+ <param name="handle">Pointer (handle) to the unmanaged object.</param>
+ <remarks>
+ <para>
+ This constructor is invoked by the runtime infrastructure (<see cref="M:ObjCRuntime.Runtime.GetNSObject(System.IntPtr)" />) to create a new managed representation for a pointer to an unmanaged Objective-C object.
+ Developers should not invoke this method directly, instead they should call <see cref="M:ObjCRuntime.Runtime.GetNSObject(System.IntPtr)" /> as it will prevent two instances of a managed object pointing to the same native object.
+ </para>
+ </remarks>
+ </member>
<member name="P:CoreML.MLTask.ClassHandle">
<summary>The Objective-C class handle for this class.</summary>
<value>The pointer to the Objective-C class.</value>
diff --git a/old/ios/native/CoreML/MLFeatureDescription.g.cs b/new/ios/native/CoreML/MLFeatureDescription.g.cs
index 9c2a986..9a3c3fc 100644
--- a/old/ios/native/CoreML/MLFeatureDescription.g.cs
+++ b/new/ios/native/CoreML/MLFeatureDescription.g.cs
@@ -298,6 +298,33 @@ namespace CoreML {
}
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [Introduced (PlatformName.TvOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.WatchOS, 11,0, ObjCRuntime.PlatformArchitecture.All)]
+ public virtual MLStateConstraint? StateConstraint {
+ [Introduced (PlatformName.TvOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.WatchOS, 11,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Export ("stateConstraint")]
+ get {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ MLStateConstraint? ret;
+ if (IsDirectBinding) {
+ ret = Runtime.GetNSObject<MLStateConstraint> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, Selector.GetHandle ("stateConstraint")))!;
+ } else {
+ ret = Runtime.GetNSObject<MLStateConstraint> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, Selector.GetHandle ("stateConstraint")))!;
+ }
+ return ret!;
+ #endif
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public virtual MLFeatureType Type {
[Export ("type")]
get {
diff --git a/old/ios/native/CoreML/MLFeatureType.g.cs b/new/ios/native/CoreML/MLFeatureType.g.cs
index e11de42..fe411b2 100644
--- a/old/ios/native/CoreML/MLFeatureType.g.cs
+++ b/new/ios/native/CoreML/MLFeatureType.g.cs
@@ -62,5 +62,11 @@ namespace CoreML {
[Introduced (PlatformName.TvOS, 12,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.iOS, 12,0, ObjCRuntime.PlatformArchitecture.All)]
Sequence = 7,
+ [Introduced (PlatformName.WatchOS, 11,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.TvOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ State = 8,
}
}
diff --git a/old/ios/native/CoreML/MLModelAsset.g.cs b/new/ios/native/CoreML/MLModelAsset.g.cs
index 9ba262a..aa02204 100644
--- a/old/ios/native/CoreML/MLModelAsset.g.cs
+++ b/new/ios/native/CoreML/MLModelAsset.g.cs
@@ -152,5 +152,119 @@ namespace CoreML {
return ret!;
#endif
}
+ [Export ("modelAssetWithURL:error:")]
+ [Introduced (PlatformName.WatchOS, 11,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.TvOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe static MLModelAsset? Create (NSUrl compiledModelUrl, out NSError? error)
+ {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ var compiledModelUrl__handle__ = compiledModelUrl!.GetNonNullHandle (nameof (compiledModelUrl));
+ IntPtr errorValue = IntPtr.Zero;
+ MLModelAsset? ret;
+ ret = Runtime.GetNSObject<MLModelAsset> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend_IntPtr_ref_IntPtr (class_ptr, Selector.GetHandle ("modelAssetWithURL:error:"), compiledModelUrl__handle__, &errorValue))!;
+ error = Runtime.GetNSObject<NSError> (errorValue)!;
+ return ret!;
+ #endif
+ }
+ [Export ("modelAssetWithSpecificationData:blobMapping:error:")]
+ [Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.TvOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe static MLModelAsset? Create (NSData specificationData, NSDictionary<NSUrl, NSData> blobMapping, out NSError? error)
+ {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ var specificationData__handle__ = specificationData!.GetNonNullHandle (nameof (specificationData));
+ var blobMapping__handle__ = blobMapping!.GetNonNullHandle (nameof (blobMapping));
+ IntPtr errorValue = IntPtr.Zero;
+ MLModelAsset? ret;
+ ret = Runtime.GetNSObject<MLModelAsset> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr_ref_IntPtr (class_ptr, Selector.GetHandle ("modelAssetWithSpecificationData:blobMapping:error:"), specificationData__handle__, blobMapping__handle__, &errorValue))!;
+ error = Runtime.GetNSObject<NSError> (errorValue)!;
+ return ret!;
+ #endif
+ }
+ [Export ("functionNamesWithCompletionHandler:")]
+ [Introduced (PlatformName.WatchOS, 11,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.TvOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual void GetFunctionNames ([BlockProxy (typeof (ObjCRuntime.Trampolines.NIDMLModelAssetGetFunctionNamesCompletionHandler))]MLModelAssetGetFunctionNamesCompletionHandler handler)
+ {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ if (handler is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (handler));
+ using var block_handler = Trampolines.SDMLModelAssetGetFunctionNamesCompletionHandler.CreateBlock (handler);
+ BlockLiteral *block_ptr_handler = &block_handler;
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_IntPtr (this.Handle, Selector.GetHandle ("functionNamesWithCompletionHandler:"), (IntPtr) block_ptr_handler);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr (this.SuperHandle, Selector.GetHandle ("functionNamesWithCompletionHandler:"), (IntPtr) block_ptr_handler);
+ }
+ #endif
+ }
+ [Export ("modelDescriptionWithCompletionHandler:")]
+ [Introduced (PlatformName.WatchOS, 11,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.TvOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual void GetModelDescription ([BlockProxy (typeof (ObjCRuntime.Trampolines.NIDMLModelAssetGetModelDescriptionCompletionHandler))]MLModelAssetGetModelDescriptionCompletionHandler handler)
+ {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ if (handler is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (handler));
+ using var block_handler = Trampolines.SDMLModelAssetGetModelDescriptionCompletionHandler.CreateBlock (handler);
+ BlockLiteral *block_ptr_handler = &block_handler;
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_IntPtr (this.Handle, Selector.GetHandle ("modelDescriptionWithCompletionHandler:"), (IntPtr) block_ptr_handler);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr (this.SuperHandle, Selector.GetHandle ("modelDescriptionWithCompletionHandler:"), (IntPtr) block_ptr_handler);
+ }
+ #endif
+ }
+ [Export ("modelDescriptionOfFunctionNamed:completionHandler:")]
+ [Introduced (PlatformName.WatchOS, 11,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.TvOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual void GetModelDescription (string functionName, [BlockProxy (typeof (ObjCRuntime.Trampolines.NIDMLModelAssetGetModelDescriptionCompletionHandler))]MLModelAssetGetModelDescriptionCompletionHandler handler)
+ {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ if (functionName is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (functionName));
+ if (handler is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (handler));
+ var nsfunctionName = CFString.CreateNative (functionName);
+ using var block_handler = Trampolines.SDMLModelAssetGetModelDescriptionCompletionHandler.CreateBlock (handler);
+ BlockLiteral *block_ptr_handler = &block_handler;
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_IntPtr_IntPtr (this.Handle, Selector.GetHandle ("modelDescriptionOfFunctionNamed:completionHandler:"), nsfunctionName, (IntPtr) block_ptr_handler);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr_IntPtr (this.SuperHandle, Selector.GetHandle ("modelDescriptionOfFunctionNamed:completionHandler:"), nsfunctionName, (IntPtr) block_ptr_handler);
+ }
+ CFString.ReleaseNative (nsfunctionName);
+ #endif
+ }
} /* class MLModelAsset */
}
diff --git a/old/ios/native/CoreML/MLModelConfiguration.g.cs b/new/ios/native/CoreML/MLModelConfiguration.g.cs
index 56a4303..05faaab 100644
--- a/old/ios/native/CoreML/MLModelConfiguration.g.cs
+++ b/new/ios/native/CoreML/MLModelConfiguration.g.cs
@@ -270,6 +270,50 @@ namespace CoreML {
}
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [Introduced (PlatformName.WatchOS, 11,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.TvOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ public virtual string? FunctionName {
+ [Introduced (PlatformName.WatchOS, 11,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.TvOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Export ("functionName", ArgumentSemantic.Copy)]
+ get {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ if (IsDirectBinding) {
+ return CFString.FromHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, Selector.GetHandle ("functionName")))!;
+ } else {
+ return CFString.FromHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, Selector.GetHandle ("functionName")))!;
+ }
+ #endif
+ }
+ [Introduced (PlatformName.WatchOS, 11,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.TvOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Export ("setFunctionName:", ArgumentSemantic.Copy)]
+ set {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ var nsvalue = CFString.CreateNative (value);
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_IntPtr (this.Handle, Selector.GetHandle ("setFunctionName:"), nsvalue);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr (this.SuperHandle, Selector.GetHandle ("setFunctionName:"), nsvalue);
+ }
+ CFString.ReleaseNative (nsvalue);
+ #endif
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
[Introduced (PlatformName.WatchOS, 9,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.TvOS, 16,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.MacOSX, 13,0, ObjCRuntime.PlatformArchitecture.All)]
diff --git a/old/ios/native/CoreML/MLModelDescription.g.cs b/new/ios/native/CoreML/MLModelDescription.g.cs
index 5e52ab6..bdacbcb 100644
--- a/old/ios/native/CoreML/MLModelDescription.g.cs
+++ b/new/ios/native/CoreML/MLModelDescription.g.cs
@@ -299,6 +299,33 @@ namespace CoreML {
}
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [Introduced (PlatformName.WatchOS, 11,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.TvOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ public virtual NSDictionary<NSString, MLFeatureDescription> StateDescriptionsByName {
+ [Introduced (PlatformName.WatchOS, 11,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.TvOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Export ("stateDescriptionsByName")]
+ get {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ NSDictionary<NSString, MLFeatureDescription>? ret;
+ if (IsDirectBinding) {
+ ret = Runtime.GetNSObject<NSDictionary<NSString, MLFeatureDescription>> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, Selector.GetHandle ("stateDescriptionsByName")))!;
+ } else {
+ ret = Runtime.GetNSObject<NSDictionary<NSString, MLFeatureDescription>> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, Selector.GetHandle ("stateDescriptionsByName")))!;
+ }
+ return ret!;
+ #endif
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
[Introduced (PlatformName.WatchOS, 6,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.TvOS, 13,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.iOS, 13,0, ObjCRuntime.PlatformArchitecture.All)]
diff --git a/new/ios/native/CoreML/MLModel_MLState.g.cs b/new/ios/native/CoreML/MLModel_MLState.g.cs
new file mode 100644
index 0000000..3d186d6
--- /dev/null
+++ b/new/ios/native/CoreML/MLModel_MLState.g.cs
@@ -0,0 +1,131 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Drawing;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using UIKit;
+using GLKit;
+using Metal;
+using CoreML;
+using MapKit;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Contacts;
+using Security;
+using Messages;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using QuickLook;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using CoreMotion;
+using ObjCRuntime;
+using AddressBook;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using NewsstandKit;
+using FileProvider;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace CoreML {
+ [Introduced (PlatformName.WatchOS, 11,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.TvOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ public unsafe static partial class MLModel_MLState {
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ #if ARCH_32
+ #pragma warning disable 169
+ static readonly IntPtr class_ptr;
+ #pragma warning restore 169
+ #else
+ static readonly IntPtr class_ptr = Class.GetHandle ("MLModel");
+ #endif
+ [Export ("newState")]
+ [return: ReleaseAttribute ()]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public static MLState CreateNewState (this MLModel This)
+ {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ MLState? ret;
+ ret = Runtime.GetNSObject<MLState> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (This.Handle, Selector.GetHandle ("newState")))!;
+ if (ret is not null)
+ global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release"));
+ return ret!;
+ #endif
+ }
+ [Export ("predictionFromFeatures:usingState:error:")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe static IMLFeatureProvider? GetPrediction (this MLModel This, IMLFeatureProvider inputFeatures, MLState state, out NSError error)
+ {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ var inputFeatures__handle__ = inputFeatures!.GetNonNullHandle (nameof (inputFeatures));
+ var state__handle__ = state!.GetNonNullHandle (nameof (state));
+ IntPtr errorValue = IntPtr.Zero;
+ IMLFeatureProvider? ret;
+ ret = Runtime.GetINativeObject<IMLFeatureProvider> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr_ref_IntPtr (This.Handle, Selector.GetHandle ("predictionFromFeatures:usingState:error:"), inputFeatures__handle__, state__handle__, &errorValue), false)!;
+ error = Runtime.GetNSObject<NSError> (errorValue)!;
+ return ret!;
+ #endif
+ }
+ [Export ("predictionFromFeatures:usingState:options:error:")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe static IMLFeatureProvider? GetPrediction (this MLModel This, IMLFeatureProvider inputFeatures, MLState state, MLPredictionOptions options, out NSError error)
+ {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ var inputFeatures__handle__ = inputFeatures!.GetNonNullHandle (nameof (inputFeatures));
+ var state__handle__ = state!.GetNonNullHandle (nameof (state));
+ var options__handle__ = options!.GetNonNullHandle (nameof (options));
+ IntPtr errorValue = IntPtr.Zero;
+ IMLFeatureProvider? ret;
+ ret = Runtime.GetINativeObject<IMLFeatureProvider> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr_IntPtr_ref_IntPtr (This.Handle, Selector.GetHandle ("predictionFromFeatures:usingState:options:error:"), inputFeatures__handle__, state__handle__, options__handle__, &errorValue), false)!;
+ error = Runtime.GetNSObject<NSError> (errorValue)!;
+ return ret!;
+ #endif
+ }
+ [Export ("predictionFromFeatures:usingState:options:completionHandler:")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe static IMLFeatureProvider? GetPrediction (this MLModel This, IMLFeatureProvider inputFeatures, MLState state, MLPredictionOptions options, [BlockProxy (typeof (ObjCRuntime.Trampolines.NIDMLStateGetPredictionCompletionHandler))]MLStateGetPredictionCompletionHandler completionHandler)
+ {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ var inputFeatures__handle__ = inputFeatures!.GetNonNullHandle (nameof (inputFeatures));
+ var state__handle__ = state!.GetNonNullHandle (nameof (state));
+ var options__handle__ = options!.GetNonNullHandle (nameof (options));
+ if (completionHandler is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (completionHandler));
+ using var block_completionHandler = Trampolines.SDMLStateGetPredictionCompletionHandler.CreateBlock (completionHandler);
+ BlockLiteral *block_ptr_completionHandler = &block_completionHandler;
+ return Runtime.GetINativeObject<IMLFeatureProvider> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr_IntPtr_IntPtr (This.Handle, Selector.GetHandle ("predictionFromFeatures:usingState:options:completionHandler:"), inputFeatures__handle__, state__handle__, options__handle__, (IntPtr) block_ptr_completionHandler), false)!;
+ #endif
+ }
+ } /* class MLModel_MLState */
+}
diff --git a/old/ios/native/CoreML/MLMultiArray.g.cs b/new/ios/native/CoreML/MLMultiArray.g.cs
index 705372a..9254995 100644
--- a/old/ios/native/CoreML/MLMultiArray.g.cs
+++ b/new/ios/native/CoreML/MLMultiArray.g.cs
@@ -163,6 +163,34 @@ namespace CoreML {
nsa_shape.Dispose ();
error = Runtime.GetNSObject<NSError> (errorValue)!;
}
+ [Export ("initWithShape:dataType:strides:")]
+ [Introduced (PlatformName.iOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.TvOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.WatchOS, 11,0, ObjCRuntime.PlatformArchitecture.All)]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public MLMultiArray (NSNumber[] shape, MLMultiArrayDataType dataType, NSNumber[] strides)
+ : base (NSObjectFlag.Empty)
+ {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ if (shape is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (shape));
+ if (strides is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (strides));
+ var nsa_shape = NSArray.FromNSObjects (shape);
+ var nsa_strides = NSArray.FromNSObjects (strides);
+ if (IsDirectBinding) {
+ InitializeHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr_IntPtr (this.Handle, Selector.GetHandle ("initWithShape:dataType:strides:"), nsa_shape.Handle, (IntPtr) (long) dataType, nsa_strides.Handle), "initWithShape:dataType:strides:");
+ } else {
+ InitializeHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr_IntPtr (this.SuperHandle, Selector.GetHandle ("initWithShape:dataType:strides:"), nsa_shape.Handle, (IntPtr) (long) dataType, nsa_strides.Handle), "initWithShape:dataType:strides:");
+ }
+ nsa_shape.Dispose ();
+ nsa_strides.Dispose ();
+ #endif
+ }
[Export ("initWithDataPointer:shape:dataType:strides:deallocator:error:")]
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public unsafe MLMultiArray (global::System.IntPtr dataPointer, NSNumber[] shape, MLMultiArrayDataType dataType, NSNumber[] strides, [BlockProxy (typeof (ObjCRuntime.Trampolines.NIDActionArity1V43))]global::System.Action<global::System.IntPtr>? deallocator, out NSError error)
@@ -382,6 +410,26 @@ namespace CoreML {
var obj__handle__ = obj!.GetNonNullHandle (nameof (obj));
global::ObjCRuntime.Messaging.void_objc_msgSend_IntPtr_IntPtr (this.Handle, Selector.GetHandle ("setObject:forKeyedSubscript:"), obj__handle__, key);
}
+ [Export ("transferToMultiArray:")]
+ [Introduced (PlatformName.iOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.TvOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.WatchOS, 11,0, ObjCRuntime.PlatformArchitecture.All)]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual void TransferToMultiArray (MLMultiArray destinationMultiArray)
+ {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ var destinationMultiArray__handle__ = destinationMultiArray!.GetNonNullHandle (nameof (destinationMultiArray));
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_IntPtr (this.Handle, Selector.GetHandle ("transferToMultiArray:"), destinationMultiArray__handle__);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr (this.SuperHandle, Selector.GetHandle ("transferToMultiArray:"), destinationMultiArray__handle__);
+ }
+ #endif
+ }
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public virtual nint Count {
[Export ("count")]
diff --git a/old/ios/native/CoreML/MLMultiArrayDataType.g.cs b/new/ios/native/CoreML/MLMultiArrayDataType.g.cs
index 95c0606..9fad420 100644
--- a/old/ios/native/CoreML/MLMultiArrayDataType.g.cs
+++ b/new/ios/native/CoreML/MLMultiArrayDataType.g.cs
@@ -54,6 +54,12 @@ namespace CoreML {
Double = 65600,
Float64 = 65600,
Float32 = 65568,
+ [Introduced (PlatformName.MacOSX, 12,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.WatchOS, 9,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.TvOS, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ Float16 = 65552,
Float = 65568,
Int32 = 131104,
}
diff --git a/old/ios/native/CoreML/MLOptimizationHints.g.cs b/new/ios/native/CoreML/MLOptimizationHints.g.cs
index cbe4861..383c1fe 100644
--- a/old/ios/native/CoreML/MLOptimizationHints.g.cs
+++ b/new/ios/native/CoreML/MLOptimizationHints.g.cs
@@ -233,5 +233,49 @@ namespace CoreML {
#endif
}
}
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [Introduced (PlatformName.WatchOS, 11,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.TvOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ public virtual MLSpecializationStrategy SpecializationStrategy {
+ [Introduced (PlatformName.WatchOS, 11,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.TvOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Export ("specializationStrategy", ArgumentSemantic.UnsafeUnretained)]
+ get {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ MLSpecializationStrategy ret;
+ if (IsDirectBinding) {
+ ret = (MLSpecializationStrategy) (long) global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, Selector.GetHandle ("specializationStrategy"));
+ } else {
+ ret = (MLSpecializationStrategy) (long) global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, Selector.GetHandle ("specializationStrategy"));
+ }
+ return ret!;
+ #endif
+ }
+ [Introduced (PlatformName.WatchOS, 11,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.TvOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Export ("setSpecializationStrategy:", ArgumentSemantic.UnsafeUnretained)]
+ set {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_IntPtr (this.Handle, Selector.GetHandle ("setSpecializationStrategy:"), (IntPtr) (long) value);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr (this.SuperHandle, Selector.GetHandle ("setSpecializationStrategy:"), (IntPtr) (long) value);
+ }
+ #endif
+ }
+ }
} /* class MLOptimizationHints */
}
diff --git a/new/ios/native/CoreML/MLSpecializationStrategy.g.cs b/new/ios/native/CoreML/MLSpecializationStrategy.g.cs
new file mode 100644
index 0000000..b8290a2
--- /dev/null
+++ b/new/ios/native/CoreML/MLSpecializationStrategy.g.cs
@@ -0,0 +1,61 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Drawing;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using UIKit;
+using GLKit;
+using Metal;
+using CoreML;
+using MapKit;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Contacts;
+using Security;
+using Messages;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using QuickLook;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using CoreMotion;
+using ObjCRuntime;
+using AddressBook;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using NewsstandKit;
+using FileProvider;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace CoreML {
+ [Introduced (PlatformName.WatchOS, 11,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.TvOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Native]
+ public enum MLSpecializationStrategy : long {
+ Default = 0,
+ FastPrediction = 1,
+ }
+}
diff --git a/new/ios/native/CoreML/MLState.g.cs b/new/ios/native/CoreML/MLState.g.cs
new file mode 100644
index 0000000..c76d972
--- /dev/null
+++ b/new/ios/native/CoreML/MLState.g.cs
@@ -0,0 +1,162 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Drawing;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using UIKit;
+using GLKit;
+using Metal;
+using CoreML;
+using MapKit;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Contacts;
+using Security;
+using Messages;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using QuickLook;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using CoreMotion;
+using ObjCRuntime;
+using AddressBook;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using NewsstandKit;
+using FileProvider;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace CoreML {
+ [Register("MLState", true)]
+ [Introduced (PlatformName.WatchOS, 11,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.TvOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ public unsafe partial class MLState : NSObject {
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ #if ARCH_32
+ #pragma warning disable 649
+ static readonly IntPtr class_ptr;
+ #pragma warning restore 649
+ #else
+ static readonly IntPtr class_ptr = Class.GetHandle ("MLState");
+ #endif
+ /// <summary>The Objective-C class handle for this class.</summary>
+ /// <value>The pointer to the Objective-C class.</value>
+ /// <remarks>
+ /// Each managed class mirrors an unmanaged Objective-C class.
+ /// This value contains the pointer to the Objective-C class.
+ /// It is similar to calling the managed <see cref="ObjCRuntime.Class.GetHandle(string)" /> or the native <see href="https://developer.apple.com/documentation/objectivec/1418952-objc_getclass">objc_getClass</see> method with the type name.
+ /// </remarks>
+ public override IntPtr ClassHandle { get { return class_ptr; } }
+ /// <summary>Constructor to call on derived classes to skip initialization and merely allocate the object.</summary>
+ /// <param name="t">Unused sentinel value, pass NSObjectFlag.Empty.</param>
+ /// <remarks>
+ /// <para>
+ /// This constructor should be called by derived classes when they completely construct the object in managed code and merely want the runtime to allocate and initialize the <see cref="Foundation.NSObject" />.
+ /// This is required to implement the two-step initialization process that Objective-C uses, the first step is to perform the object allocation, the second step is to initialize the object.
+ /// When developers invoke this constructor, they take advantage of a direct path that goes all the way up to <see cref="Foundation.NSObject" /> to merely allocate the object's memory and bind the Objective-C and C# objects together.
+ /// The actual initialization of the object is up to the developer.
+ /// </para>
+ /// <para>
+ /// This constructor is typically used by the binding generator to allocate the object, but prevent the actual initialization to take place.
+ /// Once the allocation has taken place, the constructor has to initialize the object.
+ /// With constructors generated by the binding generator this means that it manually invokes one of the "init" methods to initialize the object.
+ /// </para>
+ /// <para>It is the developer's responsibility to completely initialize the object if they chain up using this constructor chain.</para>
+ /// <para>
+ /// In general, if the developer's constructor invokes the corresponding base implementation, then it should also call an Objective-C init method.
+ /// If this is not the case, developers should instead chain to the proper constructor in their class.
+ /// </para>
+ /// <para>
+ /// The argument value is ignored and merely ensures that the only code that is executed is the construction phase is the basic <see cref="Foundation.NSObject" /> allocation and runtime type registration.
+ /// Typically the chaining would look like this:
+ /// </para>
+ /// <example>
+ /// <code lang="csharp lang-csharp"><![CDATA[
+ /// //
+ /// // The NSObjectFlag constructor merely allocates the object and registers the C# class with the Objective-C runtime if necessary.
+ /// // No actual initXxx method is invoked, that is done later in the constructor
+ /// //
+ /// // This is taken from the iOS SDK's source code for the UIView class:
+ /// //
+ /// [Export ("initWithFrame:")]
+ /// public UIView (System.Drawing.RectangleF frame) : base (NSObjectFlag.Empty)
+ /// {
+ /// // Invoke the init method now.
+ /// var initWithFrame = new Selector ("initWithFrame:").Handle;
+ /// if (IsDirectBinding) {
+ /// Handle = ObjCRuntime.Messaging.IntPtr_objc_msgSend_CGRect (this.Handle, initWithFrame, frame);
+ /// } else {
+ /// Handle = ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper_CGRect (this.SuperHandle, initWithFrame, frame);
+ /// }
+ /// }
+ /// ]]></code>
+ /// </example>
+ /// </remarks>
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected MLState (NSObjectFlag t) : base (t)
+ {
+ }
+
+ /// <summary>A constructor used when creating managed representations of unmanaged objects. Called by the runtime.</summary>
+ /// <param name="handle">Pointer (handle) to the unmanaged object.</param>
+ /// <remarks>
+ /// <para>
+ /// This constructor is invoked by the runtime infrastructure (<see cref="ObjCRuntime.Runtime.GetNSObject(System.IntPtr)" />) to create a new managed representation for a pointer to an unmanaged Objective-C object.
+ /// Developers should not invoke this method directly, instead they should call <see cref="ObjCRuntime.Runtime.GetNSObject(System.IntPtr)" /> as it will prevent two instances of a managed object pointing to the same native object.
+ /// </para>
+ /// </remarks>
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected internal MLState (IntPtr handle) : base (handle)
+ {
+ }
+
+ [Export ("getMultiArrayForStateNamed:handler:")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual void GetMultiArrayForState (string stateName, [BlockProxy (typeof (ObjCRuntime.Trampolines.NIDMLStateGetMultiArrayForStateHandler))]MLStateGetMultiArrayForStateHandler handler)
+ {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ if (stateName is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (stateName));
+ if (handler is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (handler));
+ var nsstateName = CFString.CreateNative (stateName);
+ using var block_handler = Trampolines.SDMLStateGetMultiArrayForStateHandler.CreateBlock (handler);
+ BlockLiteral *block_ptr_handler = &block_handler;
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_IntPtr_IntPtr (this.Handle, Selector.GetHandle ("getMultiArrayForStateNamed:handler:"), nsstateName, (IntPtr) block_ptr_handler);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr_IntPtr (this.SuperHandle, Selector.GetHandle ("getMultiArrayForStateNamed:handler:"), nsstateName, (IntPtr) block_ptr_handler);
+ }
+ CFString.ReleaseNative (nsstateName);
+ #endif
+ }
+ } /* class MLState */
+}
diff --git a/new/ios/native/CoreML/MLStateConstraint.g.cs b/new/ios/native/CoreML/MLStateConstraint.g.cs
new file mode 100644
index 0000000..89c7dad
--- /dev/null
+++ b/new/ios/native/CoreML/MLStateConstraint.g.cs
@@ -0,0 +1,209 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Drawing;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using UIKit;
+using GLKit;
+using Metal;
+using CoreML;
+using MapKit;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Contacts;
+using Security;
+using Messages;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using QuickLook;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using CoreMotion;
+using ObjCRuntime;
+using AddressBook;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using NewsstandKit;
+using FileProvider;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace CoreML {
+ [Register("MLStateConstraint", true)]
+ [Introduced (PlatformName.WatchOS, 11,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.TvOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ public unsafe partial class MLStateConstraint : NSObject, INSCoding, INSSecureCoding {
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ #if ARCH_32
+ #pragma warning disable 649
+ static readonly IntPtr class_ptr;
+ #pragma warning restore 649
+ #else
+ static readonly IntPtr class_ptr = Class.GetHandle ("MLStateConstraint");
+ #endif
+ /// <summary>The Objective-C class handle for this class.</summary>
+ /// <value>The pointer to the Objective-C class.</value>
+ /// <remarks>
+ /// Each managed class mirrors an unmanaged Objective-C class.
+ /// This value contains the pointer to the Objective-C class.
+ /// It is similar to calling the managed <see cref="ObjCRuntime.Class.GetHandle(string)" /> or the native <see href="https://developer.apple.com/documentation/objectivec/1418952-objc_getclass">objc_getClass</see> method with the type name.
+ /// </remarks>
+ public override IntPtr ClassHandle { get { return class_ptr; } }
+ /// <summary>A constructor that initializes the object from the data stored in the unarchiver object.</summary>
+ /// <param name="coder">The unarchiver object.</param>
+ /// <remarks>
+ /// <para>This constructor is provided to allow the class to be initialized from an unarchiver (for example, during NIB deserialization). This is part of the <see cref="Foundation.NSCoding" /> protocol.</para>
+ /// <para>If developers want to create a subclass of this object and continue to support deserialization from an archive, they should implement a constructor with an identical signature: taking a single parameter of type <see cref="Foundation.NSCoder" /> and decorate it with the <c>[Export("initWithCoder:"]</c> attribute.</para>
+ /// <para>The state of this object can also be serialized by using the <see cref="Foundation.INSCoding.EncodeTo" /> companion method.</para>
+ /// </remarks>
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [DesignatedInitializer]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ [Export ("initWithCoder:")]
+ public MLStateConstraint (NSCoder coder) : base (NSObjectFlag.Empty)
+ {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ if (IsDirectBinding) {
+ InitializeHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend_IntPtr (this.Handle, Selector.GetHandle ("initWithCoder:"), coder.Handle), "initWithCoder:");
+ } else {
+ InitializeHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper_IntPtr (this.SuperHandle, Selector.GetHandle ("initWithCoder:"), coder.Handle), "initWithCoder:");
+ }
+ #endif
+ }
+
+ /// <summary>Constructor to call on derived classes to skip initialization and merely allocate the object.</summary>
+ /// <param name="t">Unused sentinel value, pass NSObjectFlag.Empty.</param>
+ /// <remarks>
+ /// <para>
+ /// This constructor should be called by derived classes when they completely construct the object in managed code and merely want the runtime to allocate and initialize the <see cref="Foundation.NSObject" />.
+ /// This is required to implement the two-step initialization process that Objective-C uses, the first step is to perform the object allocation, the second step is to initialize the object.
+ /// When developers invoke this constructor, they take advantage of a direct path that goes all the way up to <see cref="Foundation.NSObject" /> to merely allocate the object's memory and bind the Objective-C and C# objects together.
+ /// The actual initialization of the object is up to the developer.
+ /// </para>
+ /// <para>
+ /// This constructor is typically used by the binding generator to allocate the object, but prevent the actual initialization to take place.
+ /// Once the allocation has taken place, the constructor has to initialize the object.
+ /// With constructors generated by the binding generator this means that it manually invokes one of the "init" methods to initialize the object.
+ /// </para>
+ /// <para>It is the developer's responsibility to completely initialize the object if they chain up using this constructor chain.</para>
+ /// <para>
+ /// In general, if the developer's constructor invokes the corresponding base implementation, then it should also call an Objective-C init method.
+ /// If this is not the case, developers should instead chain to the proper constructor in their class.
+ /// </para>
+ /// <para>
+ /// The argument value is ignored and merely ensures that the only code that is executed is the construction phase is the basic <see cref="Foundation.NSObject" /> allocation and runtime type registration.
+ /// Typically the chaining would look like this:
+ /// </para>
+ /// <example>
+ /// <code lang="csharp lang-csharp"><![CDATA[
+ /// //
+ /// // The NSObjectFlag constructor merely allocates the object and registers the C# class with the Objective-C runtime if necessary.
+ /// // No actual initXxx method is invoked, that is done later in the constructor
+ /// //
+ /// // This is taken from the iOS SDK's source code for the UIView class:
+ /// //
+ /// [Export ("initWithFrame:")]
+ /// public UIView (System.Drawing.RectangleF frame) : base (NSObjectFlag.Empty)
+ /// {
+ /// // Invoke the init method now.
+ /// var initWithFrame = new Selector ("initWithFrame:").Handle;
+ /// if (IsDirectBinding) {
+ /// Handle = ObjCRuntime.Messaging.IntPtr_objc_msgSend_CGRect (this.Handle, initWithFrame, frame);
+ /// } else {
+ /// Handle = ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper_CGRect (this.SuperHandle, initWithFrame, frame);
+ /// }
+ /// }
+ /// ]]></code>
+ /// </example>
+ /// </remarks>
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected MLStateConstraint (NSObjectFlag t) : base (t)
+ {
+ }
+
+ /// <summary>A constructor used when creating managed representations of unmanaged objects. Called by the runtime.</summary>
+ /// <param name="handle">Pointer (handle) to the unmanaged object.</param>
+ /// <remarks>
+ /// <para>
+ /// This constructor is invoked by the runtime infrastructure (<see cref="ObjCRuntime.Runtime.GetNSObject(System.IntPtr)" />) to create a new managed representation for a pointer to an unmanaged Objective-C object.
+ /// Developers should not invoke this method directly, instead they should call <see cref="ObjCRuntime.Runtime.GetNSObject(System.IntPtr)" /> as it will prevent two instances of a managed object pointing to the same native object.
+ /// </para>
+ /// </remarks>
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected internal MLStateConstraint (IntPtr handle) : base (handle)
+ {
+ }
+
+ [Export ("encodeWithCoder:")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual void EncodeTo (NSCoder encoder)
+ {
+ var encoder__handle__ = encoder!.GetNonNullHandle (nameof (encoder));
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_IntPtr (this.Handle, Selector.GetHandle ("encodeWithCoder:"), encoder__handle__);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr (this.SuperHandle, Selector.GetHandle ("encodeWithCoder:"), encoder__handle__);
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual NSNumber[] BufferShape {
+ [Export ("bufferShape")]
+ get {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ NSNumber[]? ret;
+ if (IsDirectBinding) {
+ ret = CFArray.ArrayFromHandle<NSNumber>(global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, Selector.GetHandle ("bufferShape")))!;
+ } else {
+ ret = CFArray.ArrayFromHandle<NSNumber>(global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, Selector.GetHandle ("bufferShape")))!;
+ }
+ return ret!;
+ #endif
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual MLMultiArrayDataType DataType {
+ [Export ("dataType")]
+ get {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ MLMultiArrayDataType ret;
+ if (IsDirectBinding) {
+ ret = (MLMultiArrayDataType) (long) global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, Selector.GetHandle ("dataType"));
+ } else {
+ ret = (MLMultiArrayDataType) (long) global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, Selector.GetHandle ("dataType"));
+ }
+ return ret!;
+ #endif
+ }
+ }
+ } /* class MLStateConstraint */
+}
diff --git a/old/ios/native/ObjCRuntime/Trampolines.g.cs b/new/ios/native/ObjCRuntime/Trampolines.g.cs
index 5a19d21..b883485 100644
--- a/old/ios/native/ObjCRuntime/Trampolines.g.cs
+++ b/new/ios/native/ObjCRuntime/Trampolines.g.cs
@@ -4676,6 +4676,223 @@ namespace ObjCRuntime {
}
} /* class NIDCLServiceSessionCreateHandler */
[UnmanagedFunctionPointerAttribute (CallingConvention.Cdecl)]
+ [UserDelegateType (typeof (global::CoreML.MLModelAssetGetFunctionNamesCompletionHandler))]
+ unsafe internal delegate void DMLModelAssetGetFunctionNamesCompletionHandler (IntPtr block, IntPtr functionNames, IntPtr error);
+ //
+ // This class bridges native block invocations that call into C#
+ //
+ static internal class SDMLModelAssetGetFunctionNamesCompletionHandler {
+ unsafe static internal readonly DMLModelAssetGetFunctionNamesCompletionHandler Handler = Invoke;
+ [MonoPInvokeCallback (typeof (DMLModelAssetGetFunctionNamesCompletionHandler))]
+ [UserDelegateType (typeof (global::CoreML.MLModelAssetGetFunctionNamesCompletionHandler))]
+ internal static unsafe void Invoke (IntPtr block, IntPtr functionNames, IntPtr error) {
+ var del = BlockLiteral.GetTarget<global::CoreML.MLModelAssetGetFunctionNamesCompletionHandler> (block);
+ if (del is not null) {
+ del (CFArray.StringArrayFromHandle (functionNames)!, Runtime.GetNSObject<NSError> (error)!);
+ }
+ }
+ internal static unsafe BlockLiteral CreateNullableBlock (global::CoreML.MLModelAssetGetFunctionNamesCompletionHandler? callback)
+ {
+ if (callback is null)
+ return default (BlockLiteral);
+ return CreateBlock (callback);
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ internal static unsafe BlockLiteral CreateBlock (global::CoreML.MLModelAssetGetFunctionNamesCompletionHandler callback)
+ {
+ var block = new BlockLiteral ();
+ block.SetupBlockUnsafe (Handler, callback);
+ return block;
+ }
+ } /* class SDMLModelAssetGetFunctionNamesCompletionHandler */
+ internal sealed class NIDMLModelAssetGetFunctionNamesCompletionHandler : TrampolineBlockBase {
+ DMLModelAssetGetFunctionNamesCompletionHandler invoker;
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe NIDMLModelAssetGetFunctionNamesCompletionHandler (BlockLiteral *block) : base (block)
+ {
+ invoker = block->GetDelegateForBlock<DMLModelAssetGetFunctionNamesCompletionHandler> ();
+ }
+ [Preserve (Conditional=true)]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe static global::CoreML.MLModelAssetGetFunctionNamesCompletionHandler? Create (IntPtr block)
+ {
+ if (block == IntPtr.Zero)
+ return null;
+ var del = (global::CoreML.MLModelAssetGetFunctionNamesCompletionHandler) GetExistingManagedDelegate (block);
+ return del ?? new NIDMLModelAssetGetFunctionNamesCompletionHandler ((BlockLiteral *) block).Invoke;
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ unsafe void Invoke (string[]? functionNames, NSError? error)
+ {
+ var error__handle__ = error.GetHandle ();
+ var nsa_functionNames = functionNames is null ? null : NSArray.FromStrings (functionNames);
+ invoker (BlockPointer, nsa_functionNames.GetHandle (), error__handle__);
+ if (nsa_functionNames is not null)
+ nsa_functionNames.Dispose ();
+ }
+ } /* class NIDMLModelAssetGetFunctionNamesCompletionHandler */
+ [UnmanagedFunctionPointerAttribute (CallingConvention.Cdecl)]
+ [UserDelegateType (typeof (global::CoreML.MLModelAssetGetModelDescriptionCompletionHandler))]
+ unsafe internal delegate void DMLModelAssetGetModelDescriptionCompletionHandler (IntPtr block, IntPtr modelDescription, IntPtr error);
+ //
+ // This class bridges native block invocations that call into C#
+ //
+ static internal class SDMLModelAssetGetModelDescriptionCompletionHandler {
+ unsafe static internal readonly DMLModelAssetGetModelDescriptionCompletionHandler Handler = Invoke;
+ [MonoPInvokeCallback (typeof (DMLModelAssetGetModelDescriptionCompletionHandler))]
+ [UserDelegateType (typeof (global::CoreML.MLModelAssetGetModelDescriptionCompletionHandler))]
+ internal static unsafe void Invoke (IntPtr block, IntPtr modelDescription, IntPtr error) {
+ var del = BlockLiteral.GetTarget<global::CoreML.MLModelAssetGetModelDescriptionCompletionHandler> (block);
+ if (del is not null) {
+ del ( Runtime.GetNSObject<MLModelDescription> (modelDescription)!, Runtime.GetNSObject<NSError> (error)!);
+ }
+ }
+ internal static unsafe BlockLiteral CreateNullableBlock (global::CoreML.MLModelAssetGetModelDescriptionCompletionHandler? callback)
+ {
+ if (callback is null)
+ return default (BlockLiteral);
+ return CreateBlock (callback);
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ internal static unsafe BlockLiteral CreateBlock (global::CoreML.MLModelAssetGetModelDescriptionCompletionHandler callback)
+ {
+ var block = new BlockLiteral ();
+ block.SetupBlockUnsafe (Handler, callback);
+ return block;
+ }
+ } /* class SDMLModelAssetGetModelDescriptionCompletionHandler */
+ internal sealed class NIDMLModelAssetGetModelDescriptionCompletionHandler : TrampolineBlockBase {
+ DMLModelAssetGetModelDescriptionCompletionHandler invoker;
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe NIDMLModelAssetGetModelDescriptionCompletionHandler (BlockLiteral *block) : base (block)
+ {
+ invoker = block->GetDelegateForBlock<DMLModelAssetGetModelDescriptionCompletionHandler> ();
+ }
+ [Preserve (Conditional=true)]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe static global::CoreML.MLModelAssetGetModelDescriptionCompletionHandler? Create (IntPtr block)
+ {
+ if (block == IntPtr.Zero)
+ return null;
+ var del = (global::CoreML.MLModelAssetGetModelDescriptionCompletionHandler) GetExistingManagedDelegate (block);
+ return del ?? new NIDMLModelAssetGetModelDescriptionCompletionHandler ((BlockLiteral *) block).Invoke;
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ unsafe void Invoke (global::CoreML.MLModelDescription? modelDescription, NSError? error)
+ {
+ var modelDescription__handle__ = modelDescription.GetHandle ();
+ var error__handle__ = error.GetHandle ();
+ invoker (BlockPointer, modelDescription__handle__, error__handle__);
+ }
+ } /* class NIDMLModelAssetGetModelDescriptionCompletionHandler */
+ [UnmanagedFunctionPointerAttribute (CallingConvention.Cdecl)]
+ [UserDelegateType (typeof (global::CoreML.MLStateGetMultiArrayForStateHandler))]
+ unsafe internal delegate void DMLStateGetMultiArrayForStateHandler (IntPtr block, IntPtr buffer);
+ //
+ // This class bridges native block invocations that call into C#
+ //
+ static internal class SDMLStateGetMultiArrayForStateHandler {
+ unsafe static internal readonly DMLStateGetMultiArrayForStateHandler Handler = Invoke;
+ [MonoPInvokeCallback (typeof (DMLStateGetMultiArrayForStateHandler))]
+ [UserDelegateType (typeof (global::CoreML.MLStateGetMultiArrayForStateHandler))]
+ internal static unsafe void Invoke (IntPtr block, IntPtr buffer) {
+ var del = BlockLiteral.GetTarget<global::CoreML.MLStateGetMultiArrayForStateHandler> (block);
+ if (del is not null) {
+ del ( Runtime.GetNSObject<MLMultiArray> (buffer)!);
+ }
+ }
+ internal static unsafe BlockLiteral CreateNullableBlock (global::CoreML.MLStateGetMultiArrayForStateHandler? callback)
+ {
+ if (callback is null)
+ return default (BlockLiteral);
+ return CreateBlock (callback);
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ internal static unsafe BlockLiteral CreateBlock (global::CoreML.MLStateGetMultiArrayForStateHandler callback)
+ {
+ var block = new BlockLiteral ();
+ block.SetupBlockUnsafe (Handler, callback);
+ return block;
+ }
+ } /* class SDMLStateGetMultiArrayForStateHandler */
+ internal sealed class NIDMLStateGetMultiArrayForStateHandler : TrampolineBlockBase {
+ DMLStateGetMultiArrayForStateHandler invoker;
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe NIDMLStateGetMultiArrayForStateHandler (BlockLiteral *block) : base (block)
+ {
+ invoker = block->GetDelegateForBlock<DMLStateGetMultiArrayForStateHandler> ();
+ }
+ [Preserve (Conditional=true)]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe static global::CoreML.MLStateGetMultiArrayForStateHandler? Create (IntPtr block)
+ {
+ if (block == IntPtr.Zero)
+ return null;
+ var del = (global::CoreML.MLStateGetMultiArrayForStateHandler) GetExistingManagedDelegate (block);
+ return del ?? new NIDMLStateGetMultiArrayForStateHandler ((BlockLiteral *) block).Invoke;
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ unsafe void Invoke (global::CoreML.MLMultiArray buffer)
+ {
+ var buffer__handle__ = buffer.GetHandle ();
+ invoker (BlockPointer, buffer__handle__);
+ }
+ } /* class NIDMLStateGetMultiArrayForStateHandler */
+ [UnmanagedFunctionPointerAttribute (CallingConvention.Cdecl)]
+ [UserDelegateType (typeof (global::CoreML.MLStateGetPredictionCompletionHandler))]
+ unsafe internal delegate void DMLStateGetPredictionCompletionHandler (IntPtr block, IntPtr output, IntPtr error);
+ //
+ // This class bridges native block invocations that call into C#
+ //
+ static internal class SDMLStateGetPredictionCompletionHandler {
+ unsafe static internal readonly DMLStateGetPredictionCompletionHandler Handler = Invoke;
+ [MonoPInvokeCallback (typeof (DMLStateGetPredictionCompletionHandler))]
+ [UserDelegateType (typeof (global::CoreML.MLStateGetPredictionCompletionHandler))]
+ internal static unsafe void Invoke (IntPtr block, IntPtr output, IntPtr error) {
+ var del = BlockLiteral.GetTarget<global::CoreML.MLStateGetPredictionCompletionHandler> (block);
+ if (del is not null) {
+ del ( Runtime.GetINativeObject<CoreML.IMLFeatureProvider> (output, false)!, Runtime.GetNSObject<NSError> (error)!);
+ }
+ }
+ internal static unsafe BlockLiteral CreateNullableBlock (global::CoreML.MLStateGetPredictionCompletionHandler? callback)
+ {
+ if (callback is null)
+ return default (BlockLiteral);
+ return CreateBlock (callback);
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ internal static unsafe BlockLiteral CreateBlock (global::CoreML.MLStateGetPredictionCompletionHandler callback)
+ {
+ var block = new BlockLiteral ();
+ block.SetupBlockUnsafe (Handler, callback);
+ return block;
+ }
+ } /* class SDMLStateGetPredictionCompletionHandler */
+ internal sealed class NIDMLStateGetPredictionCompletionHandler : TrampolineBlockBase {
+ DMLStateGetPredictionCompletionHandler invoker;
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe NIDMLStateGetPredictionCompletionHandler (BlockLiteral *block) : base (block)
+ {
+ invoker = block->GetDelegateForBlock<DMLStateGetPredictionCompletionHandler> ();
+ }
+ [Preserve (Conditional=true)]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe static global::CoreML.MLStateGetPredictionCompletionHandler? Create (IntPtr block)
+ {
+ if (block == IntPtr.Zero)
+ return null;
+ var del = (global::CoreML.MLStateGetPredictionCompletionHandler) GetExistingManagedDelegate (block);
+ return del ?? new NIDMLStateGetPredictionCompletionHandler ((BlockLiteral *) block).Invoke;
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ unsafe void Invoke (global::CoreML.IMLFeatureProvider? output, NSError error)
+ {
+ var output__handle__ = output.GetHandle ();
+ var error__handle__ = error.GetHandle ();
+ invoker (BlockPointer, output__handle__, error__handle__);
+ }
+ } /* class NIDMLStateGetPredictionCompletionHandler */
+ [UnmanagedFunctionPointerAttribute (CallingConvention.Cdecl)]
[UserDelegateType (typeof (global::CoreMidi.MidiCIDiscoveryResponseDelegate))]
unsafe internal delegate void DMidiCIDiscoveryResponseDelegate (IntPtr block, IntPtr discoveredNodes);
//
diff --git a/old/ios/native/SupportDelegates.g.cs b/new/ios/native/SupportDelegates.g.cs
index 26a6163..a298a7c 100644
--- a/old/ios/native/SupportDelegates.g.cs
+++ b/new/ios/native/SupportDelegates.g.cs
@@ -194,6 +194,13 @@ namespace CoreLocation {
public delegate bool CLLocationManagerEventArgs (CLLocationManager manager);
public delegate void CLServiceSessionCreateHandler (CLServiceSessionDiagnostic diagnostic);
}
+namespace CoreML {
+ #nullable enable
+ public delegate void MLModelAssetGetFunctionNamesCompletionHandler (String[]? functionNames, NSError? error);
+ public delegate void MLModelAssetGetModelDescriptionCompletionHandler (MLModelDescription? modelDescription, NSError? error);
+ public delegate void MLStateGetMultiArrayForStateHandler (MLMultiArray buffer);
+ public delegate void MLStateGetPredictionCompletionHandler (IMLFeatureProvider? output, NSError error);
+}
namespace CoreMidi {
#nullable enable
public delegate void MidiCIDiscoveryResponseDelegate (CoreMidi.MidiCIDiscoveredNode[] discoveredNodes);
diff --git a/old/mac/full/CoreML/MLFeatureDescription.g.cs b/new/mac/full/CoreML/MLFeatureDescription.g.cs
index 5c1ccce..99664fd 100644
--- a/old/mac/full/CoreML/MLFeatureDescription.g.cs
+++ b/new/mac/full/CoreML/MLFeatureDescription.g.cs
@@ -77,6 +77,9 @@ namespace CoreML {
const string selSequenceConstraintX = "sequenceConstraint";
static readonly IntPtr selSequenceConstraintXHandle = Selector.GetHandle ("sequenceConstraint");
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selStateConstraintX = "stateConstraint";
+ static readonly IntPtr selStateConstraintXHandle = Selector.GetHandle ("stateConstraint");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
const string selTypeX = "type";
static readonly IntPtr selTypeXHandle = Selector.GetHandle ("type");
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
@@ -322,6 +325,29 @@ namespace CoreML {
}
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [Introduced (PlatformName.TvOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.WatchOS, 11,0, ObjCRuntime.PlatformArchitecture.All)]
+ public virtual MLStateConstraint? StateConstraint {
+ [Introduced (PlatformName.TvOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.WatchOS, 11,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Export ("stateConstraint")]
+ get {
+ MLStateConstraint? ret;
+ if (IsDirectBinding) {
+ ret = Runtime.GetNSObject<MLStateConstraint> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, selStateConstraintXHandle))!;
+ } else {
+ ret = Runtime.GetNSObject<MLStateConstraint> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, selStateConstraintXHandle))!;
+ }
+ return ret!;
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public virtual MLFeatureType Type {
[Export ("type")]
get {
diff --git a/old/mac/full/CoreML/MLFeatureType.g.cs b/new/mac/full/CoreML/MLFeatureType.g.cs
index bc5a28c..7ec896d 100644
--- a/old/mac/full/CoreML/MLFeatureType.g.cs
+++ b/new/mac/full/CoreML/MLFeatureType.g.cs
@@ -57,5 +57,11 @@ namespace CoreML {
[Introduced (PlatformName.TvOS, 12,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.iOS, 12,0, ObjCRuntime.PlatformArchitecture.All)]
Sequence = 7,
+ [Introduced (PlatformName.WatchOS, 11,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.TvOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ State = 8,
}
}
diff --git a/old/mac/full/CoreML/MLModelAsset.g.cs b/new/mac/full/CoreML/MLModelAsset.g.cs
index 19ca408..8d8fd8f 100644
--- a/old/mac/full/CoreML/MLModelAsset.g.cs
+++ b/new/mac/full/CoreML/MLModelAsset.g.cs
@@ -50,10 +50,25 @@ namespace CoreML {
[Introduced (PlatformName.iOS, 16,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.MacCatalyst, 16,0, ObjCRuntime.PlatformArchitecture.All)]
public unsafe partial class MLModelAsset : NSObject {
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selFunctionNamesWithCompletionHandler_X = "functionNamesWithCompletionHandler:";
+ static readonly IntPtr selFunctionNamesWithCompletionHandler_XHandle = Selector.GetHandle ("functionNamesWithCompletionHandler:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selModelAssetWithSpecificationData_BlobMapping_Error_X = "modelAssetWithSpecificationData:blobMapping:error:";
+ static readonly IntPtr selModelAssetWithSpecificationData_BlobMapping_Error_XHandle = Selector.GetHandle ("modelAssetWithSpecificationData:blobMapping:error:");
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
const string selModelAssetWithSpecificationData_Error_X = "modelAssetWithSpecificationData:error:";
static readonly IntPtr selModelAssetWithSpecificationData_Error_XHandle = Selector.GetHandle ("modelAssetWithSpecificationData:error:");
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selModelAssetWithURL_Error_X = "modelAssetWithURL:error:";
+ static readonly IntPtr selModelAssetWithURL_Error_XHandle = Selector.GetHandle ("modelAssetWithURL:error:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selModelDescriptionOfFunctionNamed_CompletionHandler_X = "modelDescriptionOfFunctionNamed:completionHandler:";
+ static readonly IntPtr selModelDescriptionOfFunctionNamed_CompletionHandler_XHandle = Selector.GetHandle ("modelDescriptionOfFunctionNamed:completionHandler:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selModelDescriptionWithCompletionHandler_X = "modelDescriptionWithCompletionHandler:";
+ static readonly IntPtr selModelDescriptionWithCompletionHandler_XHandle = Selector.GetHandle ("modelDescriptionWithCompletionHandler:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
static readonly IntPtr class_ptr = Class.GetHandle ("MLModelAsset");
/// <summary>The Objective-C class handle for this class.</summary>
/// <value>The pointer to the Objective-C class.</value>
@@ -140,5 +155,99 @@ namespace CoreML {
error = Runtime.GetNSObject<NSError> (errorValue)!;
return ret!;
}
+ [Export ("modelAssetWithURL:error:")]
+ [Introduced (PlatformName.WatchOS, 11,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.TvOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe static MLModelAsset? Create (NSUrl compiledModelUrl, out NSError? error)
+ {
+ var compiledModelUrl__handle__ = compiledModelUrl!.GetNonNullHandle (nameof (compiledModelUrl));
+ IntPtr errorValue = IntPtr.Zero;
+ MLModelAsset? ret;
+ ret = Runtime.GetNSObject<MLModelAsset> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend_IntPtr_ref_IntPtr (class_ptr, selModelAssetWithURL_Error_XHandle, compiledModelUrl__handle__, &errorValue))!;
+ error = Runtime.GetNSObject<NSError> (errorValue)!;
+ return ret!;
+ }
+ [Export ("modelAssetWithSpecificationData:blobMapping:error:")]
+ [Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.TvOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe static MLModelAsset? Create (NSData specificationData, NSDictionary<NSUrl, NSData> blobMapping, out NSError? error)
+ {
+ var specificationData__handle__ = specificationData!.GetNonNullHandle (nameof (specificationData));
+ var blobMapping__handle__ = blobMapping!.GetNonNullHandle (nameof (blobMapping));
+ IntPtr errorValue = IntPtr.Zero;
+ MLModelAsset? ret;
+ ret = Runtime.GetNSObject<MLModelAsset> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr_ref_IntPtr (class_ptr, selModelAssetWithSpecificationData_BlobMapping_Error_XHandle, specificationData__handle__, blobMapping__handle__, &errorValue))!;
+ error = Runtime.GetNSObject<NSError> (errorValue)!;
+ return ret!;
+ }
+ [Export ("functionNamesWithCompletionHandler:")]
+ [Introduced (PlatformName.WatchOS, 11,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.TvOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual void GetFunctionNames ([BlockProxy (typeof (ObjCRuntime.Trampolines.NIDMLModelAssetGetFunctionNamesCompletionHandler))]MLModelAssetGetFunctionNamesCompletionHandler handler)
+ {
+ if (handler is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (handler));
+ using var block_handler = Trampolines.SDMLModelAssetGetFunctionNamesCompletionHandler.CreateBlock (handler);
+ BlockLiteral *block_ptr_handler = &block_handler;
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_IntPtr (this.Handle, selFunctionNamesWithCompletionHandler_XHandle, (IntPtr) block_ptr_handler);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr (this.SuperHandle, selFunctionNamesWithCompletionHandler_XHandle, (IntPtr) block_ptr_handler);
+ }
+ }
+ [Export ("modelDescriptionWithCompletionHandler:")]
+ [Introduced (PlatformName.WatchOS, 11,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.TvOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual void GetModelDescription ([BlockProxy (typeof (ObjCRuntime.Trampolines.NIDMLModelAssetGetModelDescriptionCompletionHandler))]MLModelAssetGetModelDescriptionCompletionHandler handler)
+ {
+ if (handler is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (handler));
+ using var block_handler = Trampolines.SDMLModelAssetGetModelDescriptionCompletionHandler.CreateBlock (handler);
+ BlockLiteral *block_ptr_handler = &block_handler;
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_IntPtr (this.Handle, selModelDescriptionWithCompletionHandler_XHandle, (IntPtr) block_ptr_handler);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr (this.SuperHandle, selModelDescriptionWithCompletionHandler_XHandle, (IntPtr) block_ptr_handler);
+ }
+ }
+ [Export ("modelDescriptionOfFunctionNamed:completionHandler:")]
+ [Introduced (PlatformName.WatchOS, 11,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.TvOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual void GetModelDescription (string functionName, [BlockProxy (typeof (ObjCRuntime.Trampolines.NIDMLModelAssetGetModelDescriptionCompletionHandler))]MLModelAssetGetModelDescriptionCompletionHandler handler)
+ {
+ if (functionName is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (functionName));
+ if (handler is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (handler));
+ var nsfunctionName = CFString.CreateNative (functionName);
+ using var block_handler = Trampolines.SDMLModelAssetGetModelDescriptionCompletionHandler.CreateBlock (handler);
+ BlockLiteral *block_ptr_handler = &block_handler;
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_IntPtr_IntPtr (this.Handle, selModelDescriptionOfFunctionNamed_CompletionHandler_XHandle, nsfunctionName, (IntPtr) block_ptr_handler);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr_IntPtr (this.SuperHandle, selModelDescriptionOfFunctionNamed_CompletionHandler_XHandle, nsfunctionName, (IntPtr) block_ptr_handler);
+ }
+ CFString.ReleaseNative (nsfunctionName);
+ }
} /* class MLModelAsset */
}
diff --git a/old/mac/full/CoreML/MLModelConfiguration.g.cs b/new/mac/full/CoreML/MLModelConfiguration.g.cs
index 51e81b7..80c9d56 100644
--- a/old/mac/full/CoreML/MLModelConfiguration.g.cs
+++ b/new/mac/full/CoreML/MLModelConfiguration.g.cs
@@ -61,6 +61,9 @@ namespace CoreML {
const string selEncodeWithCoder_X = "encodeWithCoder:";
static readonly IntPtr selEncodeWithCoder_XHandle = Selector.GetHandle ("encodeWithCoder:");
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selFunctionNameX = "functionName";
+ static readonly IntPtr selFunctionNameXHandle = Selector.GetHandle ("functionName");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
const string selInitWithCoder_X = "initWithCoder:";
static readonly IntPtr selInitWithCoder_XHandle = Selector.GetHandle ("initWithCoder:");
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
@@ -82,6 +85,9 @@ namespace CoreML {
const string selSetComputeUnits_X = "setComputeUnits:";
static readonly IntPtr selSetComputeUnits_XHandle = Selector.GetHandle ("setComputeUnits:");
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selSetFunctionName_X = "setFunctionName:";
+ static readonly IntPtr selSetFunctionName_XHandle = Selector.GetHandle ("setFunctionName:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
const string selSetModelDisplayName_X = "setModelDisplayName:";
static readonly IntPtr selSetModelDisplayName_XHandle = Selector.GetHandle ("setModelDisplayName:");
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
@@ -280,6 +286,42 @@ namespace CoreML {
}
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [Introduced (PlatformName.WatchOS, 11,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.TvOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ public virtual string? FunctionName {
+ [Introduced (PlatformName.WatchOS, 11,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.TvOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Export ("functionName", ArgumentSemantic.Copy)]
+ get {
+ if (IsDirectBinding) {
+ return CFString.FromHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, selFunctionNameXHandle))!;
+ } else {
+ return CFString.FromHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, selFunctionNameXHandle))!;
+ }
+ }
+ [Introduced (PlatformName.WatchOS, 11,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.TvOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Export ("setFunctionName:", ArgumentSemantic.Copy)]
+ set {
+ var nsvalue = CFString.CreateNative (value);
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_IntPtr (this.Handle, selSetFunctionName_XHandle, nsvalue);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr (this.SuperHandle, selSetFunctionName_XHandle, nsvalue);
+ }
+ CFString.ReleaseNative (nsvalue);
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
[Introduced (PlatformName.WatchOS, 9,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.TvOS, 16,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.MacOSX, 13,0, ObjCRuntime.PlatformArchitecture.All)]
diff --git a/old/mac/full/CoreML/MLModelDescription.g.cs b/new/mac/full/CoreML/MLModelDescription.g.cs
index f1e9b63..7f340f2 100644
--- a/old/mac/full/CoreML/MLModelDescription.g.cs
+++ b/new/mac/full/CoreML/MLModelDescription.g.cs
@@ -77,6 +77,9 @@ namespace CoreML {
const string selPredictedProbabilitiesNameX = "predictedProbabilitiesName";
static readonly IntPtr selPredictedProbabilitiesNameXHandle = Selector.GetHandle ("predictedProbabilitiesName");
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selStateDescriptionsByNameX = "stateDescriptionsByName";
+ static readonly IntPtr selStateDescriptionsByNameXHandle = Selector.GetHandle ("stateDescriptionsByName");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
const string selTrainingInputDescriptionsByNameX = "trainingInputDescriptionsByName";
static readonly IntPtr selTrainingInputDescriptionsByNameXHandle = Selector.GetHandle ("trainingInputDescriptionsByName");
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
@@ -315,6 +318,29 @@ namespace CoreML {
}
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [Introduced (PlatformName.WatchOS, 11,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.TvOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ public virtual NSDictionary<NSString, MLFeatureDescription> StateDescriptionsByName {
+ [Introduced (PlatformName.WatchOS, 11,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.TvOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Export ("stateDescriptionsByName")]
+ get {
+ NSDictionary<NSString, MLFeatureDescription>? ret;
+ if (IsDirectBinding) {
+ ret = Runtime.GetNSObject<NSDictionary<NSString, MLFeatureDescription>> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, selStateDescriptionsByNameXHandle))!;
+ } else {
+ ret = Runtime.GetNSObject<NSDictionary<NSString, MLFeatureDescription>> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, selStateDescriptionsByNameXHandle))!;
+ }
+ return ret!;
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
[Introduced (PlatformName.WatchOS, 6,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.TvOS, 13,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.iOS, 13,0, ObjCRuntime.PlatformArchitecture.All)]
diff --git a/new/mac/full/CoreML/MLModel_MLState.g.cs b/new/mac/full/CoreML/MLModel_MLState.g.cs
new file mode 100644
index 0000000..76038a8
--- /dev/null
+++ b/new/mac/full/CoreML/MLModel_MLState.g.cs
@@ -0,0 +1,116 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using QTKit;
+using Metal;
+using CoreML;
+using OpenGL;
+using AppKit;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Contacts;
+using Security;
+using CloudKit;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using ObjCRuntime;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using FileProvider;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace CoreML {
+ [Introduced (PlatformName.WatchOS, 11,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.TvOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ public unsafe static partial class MLModel_MLState {
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selNewStateX = "newState";
+ static readonly IntPtr selNewStateXHandle = Selector.GetHandle ("newState");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selPredictionFromFeatures_UsingState_Error_X = "predictionFromFeatures:usingState:error:";
+ static readonly IntPtr selPredictionFromFeatures_UsingState_Error_XHandle = Selector.GetHandle ("predictionFromFeatures:usingState:error:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selPredictionFromFeatures_UsingState_Options_CompletionHandler_X = "predictionFromFeatures:usingState:options:completionHandler:";
+ static readonly IntPtr selPredictionFromFeatures_UsingState_Options_CompletionHandler_XHandle = Selector.GetHandle ("predictionFromFeatures:usingState:options:completionHandler:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selPredictionFromFeatures_UsingState_Options_Error_X = "predictionFromFeatures:usingState:options:error:";
+ static readonly IntPtr selPredictionFromFeatures_UsingState_Options_Error_XHandle = Selector.GetHandle ("predictionFromFeatures:usingState:options:error:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ static readonly IntPtr class_ptr = Class.GetHandle ("MLModel");
+ [Export ("newState")]
+ [return: ReleaseAttribute ()]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public static MLState CreateNewState (this MLModel This)
+ {
+ MLState? ret;
+ ret = Runtime.GetNSObject<MLState> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (This.Handle, selNewStateXHandle))!;
+ if (ret is not null)
+ global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release"));
+ return ret!;
+ }
+ [Export ("predictionFromFeatures:usingState:error:")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe static IMLFeatureProvider? GetPrediction (this MLModel This, IMLFeatureProvider inputFeatures, MLState state, out NSError error)
+ {
+ var inputFeatures__handle__ = inputFeatures!.GetNonNullHandle (nameof (inputFeatures));
+ var state__handle__ = state!.GetNonNullHandle (nameof (state));
+ IntPtr errorValue = IntPtr.Zero;
+ IMLFeatureProvider? ret;
+ ret = Runtime.GetINativeObject<IMLFeatureProvider> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr_ref_IntPtr (This.Handle, selPredictionFromFeatures_UsingState_Error_XHandle, inputFeatures__handle__, state__handle__, &errorValue), false)!;
+ error = Runtime.GetNSObject<NSError> (errorValue)!;
+ return ret!;
+ }
+ [Export ("predictionFromFeatures:usingState:options:error:")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe static IMLFeatureProvider? GetPrediction (this MLModel This, IMLFeatureProvider inputFeatures, MLState state, MLPredictionOptions options, out NSError error)
+ {
+ var inputFeatures__handle__ = inputFeatures!.GetNonNullHandle (nameof (inputFeatures));
+ var state__handle__ = state!.GetNonNullHandle (nameof (state));
+ var options__handle__ = options!.GetNonNullHandle (nameof (options));
+ IntPtr errorValue = IntPtr.Zero;
+ IMLFeatureProvider? ret;
+ ret = Runtime.GetINativeObject<IMLFeatureProvider> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr_IntPtr_ref_IntPtr (This.Handle, selPredictionFromFeatures_UsingState_Options_Error_XHandle, inputFeatures__handle__, state__handle__, options__handle__, &errorValue), false)!;
+ error = Runtime.GetNSObject<NSError> (errorValue)!;
+ return ret!;
+ }
+ [Export ("predictionFromFeatures:usingState:options:completionHandler:")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe static IMLFeatureProvider? GetPrediction (this MLModel This, IMLFeatureProvider inputFeatures, MLState state, MLPredictionOptions options, [BlockProxy (typeof (ObjCRuntime.Trampolines.NIDMLStateGetPredictionCompletionHandler))]MLStateGetPredictionCompletionHandler completionHandler)
+ {
+ var inputFeatures__handle__ = inputFeatures!.GetNonNullHandle (nameof (inputFeatures));
+ var state__handle__ = state!.GetNonNullHandle (nameof (state));
+ var options__handle__ = options!.GetNonNullHandle (nameof (options));
+ if (completionHandler is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (completionHandler));
+ using var block_completionHandler = Trampolines.SDMLStateGetPredictionCompletionHandler.CreateBlock (completionHandler);
+ BlockLiteral *block_ptr_completionHandler = &block_completionHandler;
+ return Runtime.GetINativeObject<IMLFeatureProvider> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr_IntPtr_IntPtr (This.Handle, selPredictionFromFeatures_UsingState_Options_CompletionHandler_XHandle, inputFeatures__handle__, state__handle__, options__handle__, (IntPtr) block_ptr_completionHandler), false)!;
+ }
+ } /* class MLModel_MLState */
+}
diff --git a/old/mac/full/CoreML/MLMultiArray.g.cs b/new/mac/full/CoreML/MLMultiArray.g.cs
index 174f418..46a2a1e 100644
--- a/old/mac/full/CoreML/MLMultiArray.g.cs
+++ b/new/mac/full/CoreML/MLMultiArray.g.cs
@@ -77,6 +77,9 @@ namespace CoreML {
const string selInitWithShape_DataType_Error_X = "initWithShape:dataType:error:";
static readonly IntPtr selInitWithShape_DataType_Error_XHandle = Selector.GetHandle ("initWithShape:dataType:error:");
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selInitWithShape_DataType_Strides_X = "initWithShape:dataType:strides:";
+ static readonly IntPtr selInitWithShape_DataType_Strides_XHandle = Selector.GetHandle ("initWithShape:dataType:strides:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
const string selMultiArrayByConcatenatingMultiArrays_AlongAxis_DataType_X = "multiArrayByConcatenatingMultiArrays:alongAxis:dataType:";
static readonly IntPtr selMultiArrayByConcatenatingMultiArrays_AlongAxis_DataType_XHandle = Selector.GetHandle ("multiArrayByConcatenatingMultiArrays:alongAxis:dataType:");
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
@@ -101,6 +104,9 @@ namespace CoreML {
const string selStridesX = "strides";
static readonly IntPtr selStridesXHandle = Selector.GetHandle ("strides");
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selTransferToMultiArray_X = "transferToMultiArray:";
+ static readonly IntPtr selTransferToMultiArray_XHandle = Selector.GetHandle ("transferToMultiArray:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
static readonly IntPtr class_ptr = Class.GetHandle ("MLMultiArray");
/// <summary>The Objective-C class handle for this class.</summary>
/// <value>The pointer to the Objective-C class.</value>
@@ -212,6 +218,30 @@ namespace CoreML {
nsa_shape.Dispose ();
error = Runtime.GetNSObject<NSError> (errorValue)!;
}
+ [Export ("initWithShape:dataType:strides:")]
+ [Introduced (PlatformName.iOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.TvOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.WatchOS, 11,0, ObjCRuntime.PlatformArchitecture.All)]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public MLMultiArray (NSNumber[] shape, MLMultiArrayDataType dataType, NSNumber[] strides)
+ : base (NSObjectFlag.Empty)
+ {
+ if (shape is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (shape));
+ if (strides is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (strides));
+ var nsa_shape = NSArray.FromNSObjects (shape);
+ var nsa_strides = NSArray.FromNSObjects (strides);
+ if (IsDirectBinding) {
+ InitializeHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr_IntPtr (this.Handle, selInitWithShape_DataType_Strides_XHandle, nsa_shape.Handle, (IntPtr) (long) dataType, nsa_strides.Handle), "initWithShape:dataType:strides:");
+ } else {
+ InitializeHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr_IntPtr (this.SuperHandle, selInitWithShape_DataType_Strides_XHandle, nsa_shape.Handle, (IntPtr) (long) dataType, nsa_strides.Handle), "initWithShape:dataType:strides:");
+ }
+ nsa_shape.Dispose ();
+ nsa_strides.Dispose ();
+ }
[Export ("initWithDataPointer:shape:dataType:strides:deallocator:error:")]
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public unsafe MLMultiArray (global::System.IntPtr dataPointer, NSNumber[] shape, MLMultiArrayDataType dataType, NSNumber[] strides, [BlockProxy (typeof (ObjCRuntime.Trampolines.NIDActionArity1V40))]global::System.Action<global::System.IntPtr>? deallocator, out NSError error)
@@ -415,6 +445,22 @@ namespace CoreML {
var obj__handle__ = obj!.GetNonNullHandle (nameof (obj));
global::ObjCRuntime.Messaging.void_objc_msgSend_IntPtr_IntPtr (this.Handle, selSetObject_ForKeyedSubscript_XHandle, obj__handle__, key);
}
+ [Export ("transferToMultiArray:")]
+ [Introduced (PlatformName.iOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.TvOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.WatchOS, 11,0, ObjCRuntime.PlatformArchitecture.All)]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual void TransferToMultiArray (MLMultiArray destinationMultiArray)
+ {
+ var destinationMultiArray__handle__ = destinationMultiArray!.GetNonNullHandle (nameof (destinationMultiArray));
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_IntPtr (this.Handle, selTransferToMultiArray_XHandle, destinationMultiArray__handle__);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr (this.SuperHandle, selTransferToMultiArray_XHandle, destinationMultiArray__handle__);
+ }
+ }
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public virtual nint Count {
[Export ("count")]
diff --git a/old/mac/full/CoreML/MLMultiArrayDataType.g.cs b/new/mac/full/CoreML/MLMultiArrayDataType.g.cs
index ec24ef9..865e831 100644
--- a/old/mac/full/CoreML/MLMultiArrayDataType.g.cs
+++ b/new/mac/full/CoreML/MLMultiArrayDataType.g.cs
@@ -50,10 +50,10 @@ namespace CoreML {
Float64 = 65600,
Float32 = 65568,
[Introduced (PlatformName.MacOSX, 12,0, ObjCRuntime.PlatformArchitecture.All)]
- [Unavailable (PlatformName.iOS, ObjCRuntime.PlatformArchitecture.All)]
- [Unavailable (PlatformName.MacCatalyst, ObjCRuntime.PlatformArchitecture.All)]
- [Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
- [Unavailable (PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.WatchOS, 9,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.TvOS, 16,0, ObjCRuntime.PlatformArchitecture.All)]
Float16 = 65552,
Float = 65568,
Int32 = 131104,
diff --git a/old/mac/full/CoreML/MLOptimizationHints.g.cs b/new/mac/full/CoreML/MLOptimizationHints.g.cs
index 956b5e5..5c76c6f 100644
--- a/old/mac/full/CoreML/MLOptimizationHints.g.cs
+++ b/new/mac/full/CoreML/MLOptimizationHints.g.cs
@@ -66,6 +66,12 @@ namespace CoreML {
const string selSetReshapeFrequency_X = "setReshapeFrequency:";
static readonly IntPtr selSetReshapeFrequency_XHandle = Selector.GetHandle ("setReshapeFrequency:");
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selSetSpecializationStrategy_X = "setSpecializationStrategy:";
+ static readonly IntPtr selSetSpecializationStrategy_XHandle = Selector.GetHandle ("setSpecializationStrategy:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selSpecializationStrategyX = "specializationStrategy";
+ static readonly IntPtr selSpecializationStrategyXHandle = Selector.GetHandle ("specializationStrategy");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
static readonly IntPtr class_ptr = Class.GetHandle ("MLOptimizationHints");
/// <summary>The Objective-C class handle for this class.</summary>
/// <value>The pointer to the Objective-C class.</value>
@@ -221,5 +227,41 @@ namespace CoreML {
}
}
}
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [Introduced (PlatformName.WatchOS, 11,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.TvOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ public virtual MLSpecializationStrategy SpecializationStrategy {
+ [Introduced (PlatformName.WatchOS, 11,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.TvOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Export ("specializationStrategy", ArgumentSemantic.UnsafeUnretained)]
+ get {
+ MLSpecializationStrategy ret;
+ if (IsDirectBinding) {
+ ret = (MLSpecializationStrategy) (long) global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, selSpecializationStrategyXHandle);
+ } else {
+ ret = (MLSpecializationStrategy) (long) global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, selSpecializationStrategyXHandle);
+ }
+ return ret!;
+ }
+ [Introduced (PlatformName.WatchOS, 11,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.TvOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Export ("setSpecializationStrategy:", ArgumentSemantic.UnsafeUnretained)]
+ set {
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_IntPtr (this.Handle, selSetSpecializationStrategy_XHandle, (IntPtr) (long) value);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr (this.SuperHandle, selSetSpecializationStrategy_XHandle, (IntPtr) (long) value);
+ }
+ }
+ }
} /* class MLOptimizationHints */
}
diff --git a/new/mac/full/CoreML/MLSpecializationStrategy.g.cs b/new/mac/full/CoreML/MLSpecializationStrategy.g.cs
new file mode 100644
index 0000000..01a8d31
--- /dev/null
+++ b/new/mac/full/CoreML/MLSpecializationStrategy.g.cs
@@ -0,0 +1,56 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using QTKit;
+using Metal;
+using CoreML;
+using OpenGL;
+using AppKit;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Contacts;
+using Security;
+using CloudKit;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using ObjCRuntime;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using FileProvider;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace CoreML {
+ [Introduced (PlatformName.WatchOS, 11,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.TvOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Native]
+ public enum MLSpecializationStrategy : long {
+ Default = 0,
+ FastPrediction = 1,
+ }
+}
diff --git a/new/mac/full/CoreML/MLState.g.cs b/new/mac/full/CoreML/MLState.g.cs
new file mode 100644
index 0000000..45bc714
--- /dev/null
+++ b/new/mac/full/CoreML/MLState.g.cs
@@ -0,0 +1,150 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using QTKit;
+using Metal;
+using CoreML;
+using OpenGL;
+using AppKit;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Contacts;
+using Security;
+using CloudKit;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using ObjCRuntime;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using FileProvider;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace CoreML {
+ [Register("MLState", true)]
+ [Introduced (PlatformName.WatchOS, 11,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.TvOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ public unsafe partial class MLState : NSObject {
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selGetMultiArrayForStateNamed_Handler_X = "getMultiArrayForStateNamed:handler:";
+ static readonly IntPtr selGetMultiArrayForStateNamed_Handler_XHandle = Selector.GetHandle ("getMultiArrayForStateNamed:handler:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ static readonly IntPtr class_ptr = Class.GetHandle ("MLState");
+ /// <summary>The Objective-C class handle for this class.</summary>
+ /// <value>The pointer to the Objective-C class.</value>
+ /// <remarks>
+ /// Each managed class mirrors an unmanaged Objective-C class.
+ /// This value contains the pointer to the Objective-C class.
+ /// It is similar to calling the managed <see cref="ObjCRuntime.Class.GetHandle(string)" /> or the native <see href="https://developer.apple.com/documentation/objectivec/1418952-objc_getclass">objc_getClass</see> method with the type name.
+ /// </remarks>
+ public override IntPtr ClassHandle { get { return class_ptr; } }
+ /// <summary>Constructor to call on derived classes to skip initialization and merely allocate the object.</summary>
+ /// <param name="t">Unused sentinel value, pass NSObjectFlag.Empty.</param>
+ /// <remarks>
+ /// <para>
+ /// This constructor should be called by derived classes when they completely construct the object in managed code and merely want the runtime to allocate and initialize the <see cref="Foundation.NSObject" />.
+ /// This is required to implement the two-step initialization process that Objective-C uses, the first step is to perform the object allocation, the second step is to initialize the object.
+ /// When developers invoke this constructor, they take advantage of a direct path that goes all the way up to <see cref="Foundation.NSObject" /> to merely allocate the object's memory and bind the Objective-C and C# objects together.
+ /// The actual initialization of the object is up to the developer.
+ /// </para>
+ /// <para>
+ /// This constructor is typically used by the binding generator to allocate the object, but prevent the actual initialization to take place.
+ /// Once the allocation has taken place, the constructor has to initialize the object.
+ /// With constructors generated by the binding generator this means that it manually invokes one of the "init" methods to initialize the object.
+ /// </para>
+ /// <para>It is the developer's responsibility to completely initialize the object if they chain up using this constructor chain.</para>
+ /// <para>
+ /// In general, if the developer's constructor invokes the corresponding base implementation, then it should also call an Objective-C init method.
+ /// If this is not the case, developers should instead chain to the proper constructor in their class.
+ /// </para>
+ /// <para>
+ /// The argument value is ignored and merely ensures that the only code that is executed is the construction phase is the basic <see cref="Foundation.NSObject" /> allocation and runtime type registration.
+ /// Typically the chaining would look like this:
+ /// </para>
+ /// <example>
+ /// <code lang="csharp lang-csharp"><![CDATA[
+ /// //
+ /// // The NSObjectFlag constructor merely allocates the object and registers the C# class with the Objective-C runtime if necessary.
+ /// // No actual initXxx method is invoked, that is done later in the constructor
+ /// //
+ /// // This is taken from the iOS SDK's source code for the UIView class:
+ /// //
+ /// [Export ("initWithFrame:")]
+ /// public UIView (System.Drawing.RectangleF frame) : base (NSObjectFlag.Empty)
+ /// {
+ /// // Invoke the init method now.
+ /// var initWithFrame = new Selector ("initWithFrame:").Handle;
+ /// if (IsDirectBinding) {
+ /// Handle = ObjCRuntime.Messaging.IntPtr_objc_msgSend_CGRect (this.Handle, initWithFrame, frame);
+ /// } else {
+ /// Handle = ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper_CGRect (this.SuperHandle, initWithFrame, frame);
+ /// }
+ /// }
+ /// ]]></code>
+ /// </example>
+ /// </remarks>
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected MLState (NSObjectFlag t) : base (t)
+ {
+ }
+
+ /// <summary>A constructor used when creating managed representations of unmanaged objects. Called by the runtime.</summary>
+ /// <param name="handle">Pointer (handle) to the unmanaged object.</param>
+ /// <remarks>
+ /// <para>
+ /// This constructor is invoked by the runtime infrastructure (<see cref="ObjCRuntime.Runtime.GetNSObject(System.IntPtr)" />) to create a new managed representation for a pointer to an unmanaged Objective-C object.
+ /// Developers should not invoke this method directly, instead they should call <see cref="ObjCRuntime.Runtime.GetNSObject(System.IntPtr)" /> as it will prevent two instances of a managed object pointing to the same native object.
+ /// </para>
+ /// </remarks>
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected internal MLState (IntPtr handle) : base (handle)
+ {
+ }
+
+ [Export ("getMultiArrayForStateNamed:handler:")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual void GetMultiArrayForState (string stateName, [BlockProxy (typeof (ObjCRuntime.Trampolines.NIDMLStateGetMultiArrayForStateHandler))]MLStateGetMultiArrayForStateHandler handler)
+ {
+ if (stateName is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (stateName));
+ if (handler is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (handler));
+ var nsstateName = CFString.CreateNative (stateName);
+ using var block_handler = Trampolines.SDMLStateGetMultiArrayForStateHandler.CreateBlock (handler);
+ BlockLiteral *block_ptr_handler = &block_handler;
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_IntPtr_IntPtr (this.Handle, selGetMultiArrayForStateNamed_Handler_XHandle, nsstateName, (IntPtr) block_ptr_handler);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr_IntPtr (this.SuperHandle, selGetMultiArrayForStateNamed_Handler_XHandle, nsstateName, (IntPtr) block_ptr_handler);
+ }
+ CFString.ReleaseNative (nsstateName);
+ }
+ } /* class MLState */
+}
diff --git a/new/mac/full/CoreML/MLStateConstraint.g.cs b/new/mac/full/CoreML/MLStateConstraint.g.cs
new file mode 100644
index 0000000..56a0754
--- /dev/null
+++ b/new/mac/full/CoreML/MLStateConstraint.g.cs
@@ -0,0 +1,198 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using QTKit;
+using Metal;
+using CoreML;
+using OpenGL;
+using AppKit;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Contacts;
+using Security;
+using CloudKit;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using ObjCRuntime;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using FileProvider;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace CoreML {
+ [Register("MLStateConstraint", true)]
+ [Introduced (PlatformName.WatchOS, 11,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.TvOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ public unsafe partial class MLStateConstraint : NSObject, INSCoding, INSSecureCoding {
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selBufferShapeX = "bufferShape";
+ static readonly IntPtr selBufferShapeXHandle = Selector.GetHandle ("bufferShape");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selDataTypeX = "dataType";
+ static readonly IntPtr selDataTypeXHandle = Selector.GetHandle ("dataType");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selEncodeWithCoder_X = "encodeWithCoder:";
+ static readonly IntPtr selEncodeWithCoder_XHandle = Selector.GetHandle ("encodeWithCoder:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selInitWithCoder_X = "initWithCoder:";
+ static readonly IntPtr selInitWithCoder_XHandle = Selector.GetHandle ("initWithCoder:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ static readonly IntPtr class_ptr = Class.GetHandle ("MLStateConstraint");
+ /// <summary>The Objective-C class handle for this class.</summary>
+ /// <value>The pointer to the Objective-C class.</value>
+ /// <remarks>
+ /// Each managed class mirrors an unmanaged Objective-C class.
+ /// This value contains the pointer to the Objective-C class.
+ /// It is similar to calling the managed <see cref="ObjCRuntime.Class.GetHandle(string)" /> or the native <see href="https://developer.apple.com/documentation/objectivec/1418952-objc_getclass">objc_getClass</see> method with the type name.
+ /// </remarks>
+ public override IntPtr ClassHandle { get { return class_ptr; } }
+ /// <summary>A constructor that initializes the object from the data stored in the unarchiver object.</summary>
+ /// <param name="coder">The unarchiver object.</param>
+ /// <remarks>
+ /// <para>This constructor is provided to allow the class to be initialized from an unarchiver (for example, during NIB deserialization). This is part of the <see cref="Foundation.NSCoding" /> protocol.</para>
+ /// <para>If developers want to create a subclass of this object and continue to support deserialization from an archive, they should implement a constructor with an identical signature: taking a single parameter of type <see cref="Foundation.NSCoder" /> and decorate it with the <c>[Export("initWithCoder:"]</c> attribute.</para>
+ /// <para>The state of this object can also be serialized by using the <see cref="Foundation.INSCoding.EncodeTo" /> companion method.</para>
+ /// </remarks>
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [DesignatedInitializer]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ [Export ("initWithCoder:")]
+ public MLStateConstraint (NSCoder coder) : base (NSObjectFlag.Empty)
+ {
+ if (IsDirectBinding) {
+ InitializeHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend_IntPtr (this.Handle, Selector.InitWithCoder, coder.Handle), "initWithCoder:");
+ } else {
+ InitializeHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper_IntPtr (this.SuperHandle, Selector.InitWithCoder, coder.Handle), "initWithCoder:");
+ }
+ }
+
+ /// <summary>Constructor to call on derived classes to skip initialization and merely allocate the object.</summary>
+ /// <param name="t">Unused sentinel value, pass NSObjectFlag.Empty.</param>
+ /// <remarks>
+ /// <para>
+ /// This constructor should be called by derived classes when they completely construct the object in managed code and merely want the runtime to allocate and initialize the <see cref="Foundation.NSObject" />.
+ /// This is required to implement the two-step initialization process that Objective-C uses, the first step is to perform the object allocation, the second step is to initialize the object.
+ /// When developers invoke this constructor, they take advantage of a direct path that goes all the way up to <see cref="Foundation.NSObject" /> to merely allocate the object's memory and bind the Objective-C and C# objects together.
+ /// The actual initialization of the object is up to the developer.
+ /// </para>
+ /// <para>
+ /// This constructor is typically used by the binding generator to allocate the object, but prevent the actual initialization to take place.
+ /// Once the allocation has taken place, the constructor has to initialize the object.
+ /// With constructors generated by the binding generator this means that it manually invokes one of the "init" methods to initialize the object.
+ /// </para>
+ /// <para>It is the developer's responsibility to completely initialize the object if they chain up using this constructor chain.</para>
+ /// <para>
+ /// In general, if the developer's constructor invokes the corresponding base implementation, then it should also call an Objective-C init method.
+ /// If this is not the case, developers should instead chain to the proper constructor in their class.
+ /// </para>
+ /// <para>
+ /// The argument value is ignored and merely ensures that the only code that is executed is the construction phase is the basic <see cref="Foundation.NSObject" /> allocation and runtime type registration.
+ /// Typically the chaining would look like this:
+ /// </para>
+ /// <example>
+ /// <code lang="csharp lang-csharp"><![CDATA[
+ /// //
+ /// // The NSObjectFlag constructor merely allocates the object and registers the C# class with the Objective-C runtime if necessary.
+ /// // No actual initXxx method is invoked, that is done later in the constructor
+ /// //
+ /// // This is taken from the iOS SDK's source code for the UIView class:
+ /// //
+ /// [Export ("initWithFrame:")]
+ /// public UIView (System.Drawing.RectangleF frame) : base (NSObjectFlag.Empty)
+ /// {
+ /// // Invoke the init method now.
+ /// var initWithFrame = new Selector ("initWithFrame:").Handle;
+ /// if (IsDirectBinding) {
+ /// Handle = ObjCRuntime.Messaging.IntPtr_objc_msgSend_CGRect (this.Handle, initWithFrame, frame);
+ /// } else {
+ /// Handle = ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper_CGRect (this.SuperHandle, initWithFrame, frame);
+ /// }
+ /// }
+ /// ]]></code>
+ /// </example>
+ /// </remarks>
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected MLStateConstraint (NSObjectFlag t) : base (t)
+ {
+ }
+
+ /// <summary>A constructor used when creating managed representations of unmanaged objects. Called by the runtime.</summary>
+ /// <param name="handle">Pointer (handle) to the unmanaged object.</param>
+ /// <remarks>
+ /// <para>
+ /// This constructor is invoked by the runtime infrastructure (<see cref="ObjCRuntime.Runtime.GetNSObject(System.IntPtr)" />) to create a new managed representation for a pointer to an unmanaged Objective-C object.
+ /// Developers should not invoke this method directly, instead they should call <see cref="ObjCRuntime.Runtime.GetNSObject(System.IntPtr)" /> as it will prevent two instances of a managed object pointing to the same native object.
+ /// </para>
+ /// </remarks>
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected internal MLStateConstraint (IntPtr handle) : base (handle)
+ {
+ }
+
+ [Export ("encodeWithCoder:")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual void EncodeTo (NSCoder encoder)
+ {
+ var encoder__handle__ = encoder!.GetNonNullHandle (nameof (encoder));
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_IntPtr (this.Handle, selEncodeWithCoder_XHandle, encoder__handle__);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr (this.SuperHandle, selEncodeWithCoder_XHandle, encoder__handle__);
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual NSNumber[] BufferShape {
+ [Export ("bufferShape")]
+ get {
+ NSNumber[]? ret;
+ if (IsDirectBinding) {
+ ret = CFArray.ArrayFromHandle<NSNumber>(global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, selBufferShapeXHandle))!;
+ } else {
+ ret = CFArray.ArrayFromHandle<NSNumber>(global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, selBufferShapeXHandle))!;
+ }
+ return ret!;
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual MLMultiArrayDataType DataType {
+ [Export ("dataType")]
+ get {
+ MLMultiArrayDataType ret;
+ if (IsDirectBinding) {
+ ret = (MLMultiArrayDataType) (long) global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, selDataTypeXHandle);
+ } else {
+ ret = (MLMultiArrayDataType) (long) global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, selDataTypeXHandle);
+ }
+ return ret!;
+ }
+ }
+ } /* class MLStateConstraint */
+}
diff --git a/old/mac/full/ObjCRuntime/Trampolines.g.cs b/new/mac/full/ObjCRuntime/Trampolines.g.cs
index aba1c5d..b7bad6c 100644
--- a/old/mac/full/ObjCRuntime/Trampolines.g.cs
+++ b/new/mac/full/ObjCRuntime/Trampolines.g.cs
@@ -6516,6 +6516,223 @@ namespace ObjCRuntime {
}
} /* class NIDCLGeocodeCompletionHandler */
[UnmanagedFunctionPointerAttribute (CallingConvention.Cdecl)]
+ [UserDelegateType (typeof (global::CoreML.MLModelAssetGetFunctionNamesCompletionHandler))]
+ unsafe internal delegate void DMLModelAssetGetFunctionNamesCompletionHandler (IntPtr block, IntPtr functionNames, IntPtr error);
+ //
+ // This class bridges native block invocations that call into C#
+ //
+ static internal class SDMLModelAssetGetFunctionNamesCompletionHandler {
+ unsafe static internal readonly DMLModelAssetGetFunctionNamesCompletionHandler Handler = Invoke;
+ [MonoPInvokeCallback (typeof (DMLModelAssetGetFunctionNamesCompletionHandler))]
+ [UserDelegateType (typeof (global::CoreML.MLModelAssetGetFunctionNamesCompletionHandler))]
+ internal static unsafe void Invoke (IntPtr block, IntPtr functionNames, IntPtr error) {
+ var del = BlockLiteral.GetTarget<global::CoreML.MLModelAssetGetFunctionNamesCompletionHandler> (block);
+ if (del is not null) {
+ del (CFArray.StringArrayFromHandle (functionNames)!, Runtime.GetNSObject<NSError> (error)!);
+ }
+ }
+ internal static unsafe BlockLiteral CreateNullableBlock (global::CoreML.MLModelAssetGetFunctionNamesCompletionHandler? callback)
+ {
+ if (callback is null)
+ return default (BlockLiteral);
+ return CreateBlock (callback);
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ internal static unsafe BlockLiteral CreateBlock (global::CoreML.MLModelAssetGetFunctionNamesCompletionHandler callback)
+ {
+ var block = new BlockLiteral ();
+ block.SetupBlockUnsafe (Handler, callback);
+ return block;
+ }
+ } /* class SDMLModelAssetGetFunctionNamesCompletionHandler */
+ internal sealed class NIDMLModelAssetGetFunctionNamesCompletionHandler : TrampolineBlockBase {
+ DMLModelAssetGetFunctionNamesCompletionHandler invoker;
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe NIDMLModelAssetGetFunctionNamesCompletionHandler (BlockLiteral *block) : base (block)
+ {
+ invoker = block->GetDelegateForBlock<DMLModelAssetGetFunctionNamesCompletionHandler> ();
+ }
+ [Preserve (Conditional=true)]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe static global::CoreML.MLModelAssetGetFunctionNamesCompletionHandler? Create (IntPtr block)
+ {
+ if (block == IntPtr.Zero)
+ return null;
+ var del = (global::CoreML.MLModelAssetGetFunctionNamesCompletionHandler) GetExistingManagedDelegate (block);
+ return del ?? new NIDMLModelAssetGetFunctionNamesCompletionHandler ((BlockLiteral *) block).Invoke;
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ unsafe void Invoke (string[]? functionNames, NSError? error)
+ {
+ var error__handle__ = error.GetHandle ();
+ var nsa_functionNames = functionNames is null ? null : NSArray.FromStrings (functionNames);
+ invoker (BlockPointer, nsa_functionNames.GetHandle (), error__handle__);
+ if (nsa_functionNames is not null)
+ nsa_functionNames.Dispose ();
+ }
+ } /* class NIDMLModelAssetGetFunctionNamesCompletionHandler */
+ [UnmanagedFunctionPointerAttribute (CallingConvention.Cdecl)]
+ [UserDelegateType (typeof (global::CoreML.MLModelAssetGetModelDescriptionCompletionHandler))]
+ unsafe internal delegate void DMLModelAssetGetModelDescriptionCompletionHandler (IntPtr block, IntPtr modelDescription, IntPtr error);
+ //
+ // This class bridges native block invocations that call into C#
+ //
+ static internal class SDMLModelAssetGetModelDescriptionCompletionHandler {
+ unsafe static internal readonly DMLModelAssetGetModelDescriptionCompletionHandler Handler = Invoke;
+ [MonoPInvokeCallback (typeof (DMLModelAssetGetModelDescriptionCompletionHandler))]
+ [UserDelegateType (typeof (global::CoreML.MLModelAssetGetModelDescriptionCompletionHandler))]
+ internal static unsafe void Invoke (IntPtr block, IntPtr modelDescription, IntPtr error) {
+ var del = BlockLiteral.GetTarget<global::CoreML.MLModelAssetGetModelDescriptionCompletionHandler> (block);
+ if (del is not null) {
+ del ( Runtime.GetNSObject<MLModelDescription> (modelDescription)!, Runtime.GetNSObject<NSError> (error)!);
+ }
+ }
+ internal static unsafe BlockLiteral CreateNullableBlock (global::CoreML.MLModelAssetGetModelDescriptionCompletionHandler? callback)
+ {
+ if (callback is null)
+ return default (BlockLiteral);
+ return CreateBlock (callback);
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ internal static unsafe BlockLiteral CreateBlock (global::CoreML.MLModelAssetGetModelDescriptionCompletionHandler callback)
+ {
+ var block = new BlockLiteral ();
+ block.SetupBlockUnsafe (Handler, callback);
+ return block;
+ }
+ } /* class SDMLModelAssetGetModelDescriptionCompletionHandler */
+ internal sealed class NIDMLModelAssetGetModelDescriptionCompletionHandler : TrampolineBlockBase {
+ DMLModelAssetGetModelDescriptionCompletionHandler invoker;
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe NIDMLModelAssetGetModelDescriptionCompletionHandler (BlockLiteral *block) : base (block)
+ {
+ invoker = block->GetDelegateForBlock<DMLModelAssetGetModelDescriptionCompletionHandler> ();
+ }
+ [Preserve (Conditional=true)]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe static global::CoreML.MLModelAssetGetModelDescriptionCompletionHandler? Create (IntPtr block)
+ {
+ if (block == IntPtr.Zero)
+ return null;
+ var del = (global::CoreML.MLModelAssetGetModelDescriptionCompletionHandler) GetExistingManagedDelegate (block);
+ return del ?? new NIDMLModelAssetGetModelDescriptionCompletionHandler ((BlockLiteral *) block).Invoke;
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ unsafe void Invoke (global::CoreML.MLModelDescription? modelDescription, NSError? error)
+ {
+ var modelDescription__handle__ = modelDescription.GetHandle ();
+ var error__handle__ = error.GetHandle ();
+ invoker (BlockPointer, modelDescription__handle__, error__handle__);
+ }
+ } /* class NIDMLModelAssetGetModelDescriptionCompletionHandler */
+ [UnmanagedFunctionPointerAttribute (CallingConvention.Cdecl)]
+ [UserDelegateType (typeof (global::CoreML.MLStateGetMultiArrayForStateHandler))]
+ unsafe internal delegate void DMLStateGetMultiArrayForStateHandler (IntPtr block, IntPtr buffer);
+ //
+ // This class bridges native block invocations that call into C#
+ //
+ static internal class SDMLStateGetMultiArrayForStateHandler {
+ unsafe static internal readonly DMLStateGetMultiArrayForStateHandler Handler = Invoke;
+ [MonoPInvokeCallback (typeof (DMLStateGetMultiArrayForStateHandler))]
+ [UserDelegateType (typeof (global::CoreML.MLStateGetMultiArrayForStateHandler))]
+ internal static unsafe void Invoke (IntPtr block, IntPtr buffer) {
+ var del = BlockLiteral.GetTarget<global::CoreML.MLStateGetMultiArrayForStateHandler> (block);
+ if (del is not null) {
+ del ( Runtime.GetNSObject<MLMultiArray> (buffer)!);
+ }
+ }
+ internal static unsafe BlockLiteral CreateNullableBlock (global::CoreML.MLStateGetMultiArrayForStateHandler? callback)
+ {
+ if (callback is null)
+ return default (BlockLiteral);
+ return CreateBlock (callback);
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ internal static unsafe BlockLiteral CreateBlock (global::CoreML.MLStateGetMultiArrayForStateHandler callback)
+ {
+ var block = new BlockLiteral ();
+ block.SetupBlockUnsafe (Handler, callback);
+ return block;
+ }
+ } /* class SDMLStateGetMultiArrayForStateHandler */
+ internal sealed class NIDMLStateGetMultiArrayForStateHandler : TrampolineBlockBase {
+ DMLStateGetMultiArrayForStateHandler invoker;
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe NIDMLStateGetMultiArrayForStateHandler (BlockLiteral *block) : base (block)
+ {
+ invoker = block->GetDelegateForBlock<DMLStateGetMultiArrayForStateHandler> ();
+ }
+ [Preserve (Conditional=true)]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe static global::CoreML.MLStateGetMultiArrayForStateHandler? Create (IntPtr block)
+ {
+ if (block == IntPtr.Zero)
+ return null;
+ var del = (global::CoreML.MLStateGetMultiArrayForStateHandler) GetExistingManagedDelegate (block);
+ return del ?? new NIDMLStateGetMultiArrayForStateHandler ((BlockLiteral *) block).Invoke;
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ unsafe void Invoke (global::CoreML.MLMultiArray buffer)
+ {
+ var buffer__handle__ = buffer.GetHandle ();
+ invoker (BlockPointer, buffer__handle__);
+ }
+ } /* class NIDMLStateGetMultiArrayForStateHandler */
+ [UnmanagedFunctionPointerAttribute (CallingConvention.Cdecl)]
+ [UserDelegateType (typeof (global::CoreML.MLStateGetPredictionCompletionHandler))]
+ unsafe internal delegate void DMLStateGetPredictionCompletionHandler (IntPtr block, IntPtr output, IntPtr error);
+ //
+ // This class bridges native block invocations that call into C#
+ //
+ static internal class SDMLStateGetPredictionCompletionHandler {
+ unsafe static internal readonly DMLStateGetPredictionCompletionHandler Handler = Invoke;
+ [MonoPInvokeCallback (typeof (DMLStateGetPredictionCompletionHandler))]
+ [UserDelegateType (typeof (global::CoreML.MLStateGetPredictionCompletionHandler))]
+ internal static unsafe void Invoke (IntPtr block, IntPtr output, IntPtr error) {
+ var del = BlockLiteral.GetTarget<global::CoreML.MLStateGetPredictionCompletionHandler> (block);
+ if (del is not null) {
+ del ( Runtime.GetINativeObject<CoreML.IMLFeatureProvider> (output, false)!, Runtime.GetNSObject<NSError> (error)!);
+ }
+ }
+ internal static unsafe BlockLiteral CreateNullableBlock (global::CoreML.MLStateGetPredictionCompletionHandler? callback)
+ {
+ if (callback is null)
+ return default (BlockLiteral);
+ return CreateBlock (callback);
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ internal static unsafe BlockLiteral CreateBlock (global::CoreML.MLStateGetPredictionCompletionHandler callback)
+ {
+ var block = new BlockLiteral ();
+ block.SetupBlockUnsafe (Handler, callback);
+ return block;
+ }
+ } /* class SDMLStateGetPredictionCompletionHandler */
+ internal sealed class NIDMLStateGetPredictionCompletionHandler : TrampolineBlockBase {
+ DMLStateGetPredictionCompletionHandler invoker;
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe NIDMLStateGetPredictionCompletionHandler (BlockLiteral *block) : base (block)
+ {
+ invoker = block->GetDelegateForBlock<DMLStateGetPredictionCompletionHandler> ();
+ }
+ [Preserve (Conditional=true)]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe static global::CoreML.MLStateGetPredictionCompletionHandler? Create (IntPtr block)
+ {
+ if (block == IntPtr.Zero)
+ return null;
+ var del = (global::CoreML.MLStateGetPredictionCompletionHandler) GetExistingManagedDelegate (block);
+ return del ?? new NIDMLStateGetPredictionCompletionHandler ((BlockLiteral *) block).Invoke;
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ unsafe void Invoke (global::CoreML.IMLFeatureProvider? output, NSError error)
+ {
+ var output__handle__ = output.GetHandle ();
+ var error__handle__ = error.GetHandle ();
+ invoker (BlockPointer, output__handle__, error__handle__);
+ }
+ } /* class NIDMLStateGetPredictionCompletionHandler */
+ [UnmanagedFunctionPointerAttribute (CallingConvention.Cdecl)]
[UserDelegateType (typeof (global::CoreMidi.MidiCIDiscoveryResponseDelegate))]
unsafe internal delegate void DMidiCIDiscoveryResponseDelegate (IntPtr block, IntPtr discoveredNodes);
//
diff --git a/old/mac/full/SupportDelegates.g.cs b/new/mac/full/SupportDelegates.g.cs
index 26d5452..748fa0b 100644
--- a/old/mac/full/SupportDelegates.g.cs
+++ b/new/mac/full/SupportDelegates.g.cs
@@ -326,6 +326,13 @@ namespace CoreLocation {
public delegate void CLGeocodeCompletionHandler (CLPlacemark[] placemarks, NSError error);
public delegate bool CLLocationManagerEventArgs (CLLocationManager manager);
}
+namespace CoreML {
+ #nullable enable
+ public delegate void MLModelAssetGetFunctionNamesCompletionHandler (String[]? functionNames, NSError? error);
+ public delegate void MLModelAssetGetModelDescriptionCompletionHandler (MLModelDescription? modelDescription, NSError? error);
+ public delegate void MLStateGetMultiArrayForStateHandler (MLMultiArray buffer);
+ public delegate void MLStateGetPredictionCompletionHandler (IMLFeatureProvider? output, NSError error);
+}
namespace CoreMidi {
#nullable enable
public delegate void MidiCIDiscoveryResponseDelegate (CoreMidi.MidiCIDiscoveredNode[] discoveredNodes);
diff --git a/old/mac/mobile/CoreML/MLFeatureDescription.g.cs b/new/mac/mobile/CoreML/MLFeatureDescription.g.cs
index 5c1ccce..99664fd 100644
--- a/old/mac/mobile/CoreML/MLFeatureDescription.g.cs
+++ b/new/mac/mobile/CoreML/MLFeatureDescription.g.cs
@@ -77,6 +77,9 @@ namespace CoreML {
const string selSequenceConstraintX = "sequenceConstraint";
static readonly IntPtr selSequenceConstraintXHandle = Selector.GetHandle ("sequenceConstraint");
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selStateConstraintX = "stateConstraint";
+ static readonly IntPtr selStateConstraintXHandle = Selector.GetHandle ("stateConstraint");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
const string selTypeX = "type";
static readonly IntPtr selTypeXHandle = Selector.GetHandle ("type");
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
@@ -322,6 +325,29 @@ namespace CoreML {
}
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [Introduced (PlatformName.TvOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.WatchOS, 11,0, ObjCRuntime.PlatformArchitecture.All)]
+ public virtual MLStateConstraint? StateConstraint {
+ [Introduced (PlatformName.TvOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.WatchOS, 11,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Export ("stateConstraint")]
+ get {
+ MLStateConstraint? ret;
+ if (IsDirectBinding) {
+ ret = Runtime.GetNSObject<MLStateConstraint> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, selStateConstraintXHandle))!;
+ } else {
+ ret = Runtime.GetNSObject<MLStateConstraint> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, selStateConstraintXHandle))!;
+ }
+ return ret!;
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public virtual MLFeatureType Type {
[Export ("type")]
get {
diff --git a/old/mac/mobile/CoreML/MLFeatureType.g.cs b/new/mac/mobile/CoreML/MLFeatureType.g.cs
index bc5a28c..7ec896d 100644
--- a/old/mac/mobile/CoreML/MLFeatureType.g.cs
+++ b/new/mac/mobile/CoreML/MLFeatureType.g.cs
@@ -57,5 +57,11 @@ namespace CoreML {
[Introduced (PlatformName.TvOS, 12,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.iOS, 12,0, ObjCRuntime.PlatformArchitecture.All)]
Sequence = 7,
+ [Introduced (PlatformName.WatchOS, 11,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.TvOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ State = 8,
}
}
diff --git a/old/mac/mobile/CoreML/MLModelAsset.g.cs b/new/mac/mobile/CoreML/MLModelAsset.g.cs
index 19ca408..8d8fd8f 100644
--- a/old/mac/mobile/CoreML/MLModelAsset.g.cs
+++ b/new/mac/mobile/CoreML/MLModelAsset.g.cs
@@ -50,10 +50,25 @@ namespace CoreML {
[Introduced (PlatformName.iOS, 16,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.MacCatalyst, 16,0, ObjCRuntime.PlatformArchitecture.All)]
public unsafe partial class MLModelAsset : NSObject {
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selFunctionNamesWithCompletionHandler_X = "functionNamesWithCompletionHandler:";
+ static readonly IntPtr selFunctionNamesWithCompletionHandler_XHandle = Selector.GetHandle ("functionNamesWithCompletionHandler:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selModelAssetWithSpecificationData_BlobMapping_Error_X = "modelAssetWithSpecificationData:blobMapping:error:";
+ static readonly IntPtr selModelAssetWithSpecificationData_BlobMapping_Error_XHandle = Selector.GetHandle ("modelAssetWithSpecificationData:blobMapping:error:");
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
const string selModelAssetWithSpecificationData_Error_X = "modelAssetWithSpecificationData:error:";
static readonly IntPtr selModelAssetWithSpecificationData_Error_XHandle = Selector.GetHandle ("modelAssetWithSpecificationData:error:");
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selModelAssetWithURL_Error_X = "modelAssetWithURL:error:";
+ static readonly IntPtr selModelAssetWithURL_Error_XHandle = Selector.GetHandle ("modelAssetWithURL:error:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selModelDescriptionOfFunctionNamed_CompletionHandler_X = "modelDescriptionOfFunctionNamed:completionHandler:";
+ static readonly IntPtr selModelDescriptionOfFunctionNamed_CompletionHandler_XHandle = Selector.GetHandle ("modelDescriptionOfFunctionNamed:completionHandler:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selModelDescriptionWithCompletionHandler_X = "modelDescriptionWithCompletionHandler:";
+ static readonly IntPtr selModelDescriptionWithCompletionHandler_XHandle = Selector.GetHandle ("modelDescriptionWithCompletionHandler:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
static readonly IntPtr class_ptr = Class.GetHandle ("MLModelAsset");
/// <summary>The Objective-C class handle for this class.</summary>
/// <value>The pointer to the Objective-C class.</value>
@@ -140,5 +155,99 @@ namespace CoreML {
error = Runtime.GetNSObject<NSError> (errorValue)!;
return ret!;
}
+ [Export ("modelAssetWithURL:error:")]
+ [Introduced (PlatformName.WatchOS, 11,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.TvOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe static MLModelAsset? Create (NSUrl compiledModelUrl, out NSError? error)
+ {
+ var compiledModelUrl__handle__ = compiledModelUrl!.GetNonNullHandle (nameof (compiledModelUrl));
+ IntPtr errorValue = IntPtr.Zero;
+ MLModelAsset? ret;
+ ret = Runtime.GetNSObject<MLModelAsset> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend_IntPtr_ref_IntPtr (class_ptr, selModelAssetWithURL_Error_XHandle, compiledModelUrl__handle__, &errorValue))!;
+ error = Runtime.GetNSObject<NSError> (errorValue)!;
+ return ret!;
+ }
+ [Export ("modelAssetWithSpecificationData:blobMapping:error:")]
+ [Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.TvOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe static MLModelAsset? Create (NSData specificationData, NSDictionary<NSUrl, NSData> blobMapping, out NSError? error)
+ {
+ var specificationData__handle__ = specificationData!.GetNonNullHandle (nameof (specificationData));
+ var blobMapping__handle__ = blobMapping!.GetNonNullHandle (nameof (blobMapping));
+ IntPtr errorValue = IntPtr.Zero;
+ MLModelAsset? ret;
+ ret = Runtime.GetNSObject<MLModelAsset> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr_ref_IntPtr (class_ptr, selModelAssetWithSpecificationData_BlobMapping_Error_XHandle, specificationData__handle__, blobMapping__handle__, &errorValue))!;
+ error = Runtime.GetNSObject<NSError> (errorValue)!;
+ return ret!;
+ }
+ [Export ("functionNamesWithCompletionHandler:")]
+ [Introduced (PlatformName.WatchOS, 11,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.TvOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual void GetFunctionNames ([BlockProxy (typeof (ObjCRuntime.Trampolines.NIDMLModelAssetGetFunctionNamesCompletionHandler))]MLModelAssetGetFunctionNamesCompletionHandler handler)
+ {
+ if (handler is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (handler));
+ using var block_handler = Trampolines.SDMLModelAssetGetFunctionNamesCompletionHandler.CreateBlock (handler);
+ BlockLiteral *block_ptr_handler = &block_handler;
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_IntPtr (this.Handle, selFunctionNamesWithCompletionHandler_XHandle, (IntPtr) block_ptr_handler);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr (this.SuperHandle, selFunctionNamesWithCompletionHandler_XHandle, (IntPtr) block_ptr_handler);
+ }
+ }
+ [Export ("modelDescriptionWithCompletionHandler:")]
+ [Introduced (PlatformName.WatchOS, 11,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.TvOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual void GetModelDescription ([BlockProxy (typeof (ObjCRuntime.Trampolines.NIDMLModelAssetGetModelDescriptionCompletionHandler))]MLModelAssetGetModelDescriptionCompletionHandler handler)
+ {
+ if (handler is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (handler));
+ using var block_handler = Trampolines.SDMLModelAssetGetModelDescriptionCompletionHandler.CreateBlock (handler);
+ BlockLiteral *block_ptr_handler = &block_handler;
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_IntPtr (this.Handle, selModelDescriptionWithCompletionHandler_XHandle, (IntPtr) block_ptr_handler);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr (this.SuperHandle, selModelDescriptionWithCompletionHandler_XHandle, (IntPtr) block_ptr_handler);
+ }
+ }
+ [Export ("modelDescriptionOfFunctionNamed:completionHandler:")]
+ [Introduced (PlatformName.WatchOS, 11,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.TvOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual void GetModelDescription (string functionName, [BlockProxy (typeof (ObjCRuntime.Trampolines.NIDMLModelAssetGetModelDescriptionCompletionHandler))]MLModelAssetGetModelDescriptionCompletionHandler handler)
+ {
+ if (functionName is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (functionName));
+ if (handler is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (handler));
+ var nsfunctionName = CFString.CreateNative (functionName);
+ using var block_handler = Trampolines.SDMLModelAssetGetModelDescriptionCompletionHandler.CreateBlock (handler);
+ BlockLiteral *block_ptr_handler = &block_handler;
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_IntPtr_IntPtr (this.Handle, selModelDescriptionOfFunctionNamed_CompletionHandler_XHandle, nsfunctionName, (IntPtr) block_ptr_handler);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr_IntPtr (this.SuperHandle, selModelDescriptionOfFunctionNamed_CompletionHandler_XHandle, nsfunctionName, (IntPtr) block_ptr_handler);
+ }
+ CFString.ReleaseNative (nsfunctionName);
+ }
} /* class MLModelAsset */
}
diff --git a/old/mac/mobile/CoreML/MLModelConfiguration.g.cs b/new/mac/mobile/CoreML/MLModelConfiguration.g.cs
index 51e81b7..80c9d56 100644
--- a/old/mac/mobile/CoreML/MLModelConfiguration.g.cs
+++ b/new/mac/mobile/CoreML/MLModelConfiguration.g.cs
@@ -61,6 +61,9 @@ namespace CoreML {
const string selEncodeWithCoder_X = "encodeWithCoder:";
static readonly IntPtr selEncodeWithCoder_XHandle = Selector.GetHandle ("encodeWithCoder:");
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selFunctionNameX = "functionName";
+ static readonly IntPtr selFunctionNameXHandle = Selector.GetHandle ("functionName");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
const string selInitWithCoder_X = "initWithCoder:";
static readonly IntPtr selInitWithCoder_XHandle = Selector.GetHandle ("initWithCoder:");
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
@@ -82,6 +85,9 @@ namespace CoreML {
const string selSetComputeUnits_X = "setComputeUnits:";
static readonly IntPtr selSetComputeUnits_XHandle = Selector.GetHandle ("setComputeUnits:");
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selSetFunctionName_X = "setFunctionName:";
+ static readonly IntPtr selSetFunctionName_XHandle = Selector.GetHandle ("setFunctionName:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
const string selSetModelDisplayName_X = "setModelDisplayName:";
static readonly IntPtr selSetModelDisplayName_XHandle = Selector.GetHandle ("setModelDisplayName:");
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
@@ -280,6 +286,42 @@ namespace CoreML {
}
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [Introduced (PlatformName.WatchOS, 11,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.TvOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ public virtual string? FunctionName {
+ [Introduced (PlatformName.WatchOS, 11,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.TvOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Export ("functionName", ArgumentSemantic.Copy)]
+ get {
+ if (IsDirectBinding) {
+ return CFString.FromHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, selFunctionNameXHandle))!;
+ } else {
+ return CFString.FromHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, selFunctionNameXHandle))!;
+ }
+ }
+ [Introduced (PlatformName.WatchOS, 11,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.TvOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Export ("setFunctionName:", ArgumentSemantic.Copy)]
+ set {
+ var nsvalue = CFString.CreateNative (value);
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_IntPtr (this.Handle, selSetFunctionName_XHandle, nsvalue);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr (this.SuperHandle, selSetFunctionName_XHandle, nsvalue);
+ }
+ CFString.ReleaseNative (nsvalue);
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
[Introduced (PlatformName.WatchOS, 9,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.TvOS, 16,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.MacOSX, 13,0, ObjCRuntime.PlatformArchitecture.All)]
diff --git a/old/mac/mobile/CoreML/MLModelDescription.g.cs b/new/mac/mobile/CoreML/MLModelDescription.g.cs
index f1e9b63..7f340f2 100644
--- a/old/mac/mobile/CoreML/MLModelDescription.g.cs
+++ b/new/mac/mobile/CoreML/MLModelDescription.g.cs
@@ -77,6 +77,9 @@ namespace CoreML {
const string selPredictedProbabilitiesNameX = "predictedProbabilitiesName";
static readonly IntPtr selPredictedProbabilitiesNameXHandle = Selector.GetHandle ("predictedProbabilitiesName");
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selStateDescriptionsByNameX = "stateDescriptionsByName";
+ static readonly IntPtr selStateDescriptionsByNameXHandle = Selector.GetHandle ("stateDescriptionsByName");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
const string selTrainingInputDescriptionsByNameX = "trainingInputDescriptionsByName";
static readonly IntPtr selTrainingInputDescriptionsByNameXHandle = Selector.GetHandle ("trainingInputDescriptionsByName");
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
@@ -315,6 +318,29 @@ namespace CoreML {
}
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [Introduced (PlatformName.WatchOS, 11,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.TvOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ public virtual NSDictionary<NSString, MLFeatureDescription> StateDescriptionsByName {
+ [Introduced (PlatformName.WatchOS, 11,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.TvOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Export ("stateDescriptionsByName")]
+ get {
+ NSDictionary<NSString, MLFeatureDescription>? ret;
+ if (IsDirectBinding) {
+ ret = Runtime.GetNSObject<NSDictionary<NSString, MLFeatureDescription>> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, selStateDescriptionsByNameXHandle))!;
+ } else {
+ ret = Runtime.GetNSObject<NSDictionary<NSString, MLFeatureDescription>> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, selStateDescriptionsByNameXHandle))!;
+ }
+ return ret!;
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
[Introduced (PlatformName.WatchOS, 6,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.TvOS, 13,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.iOS, 13,0, ObjCRuntime.PlatformArchitecture.All)]
diff --git a/new/mac/mobile/CoreML/MLModel_MLState.g.cs b/new/mac/mobile/CoreML/MLModel_MLState.g.cs
new file mode 100644
index 0000000..76038a8
--- /dev/null
+++ b/new/mac/mobile/CoreML/MLModel_MLState.g.cs
@@ -0,0 +1,116 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using QTKit;
+using Metal;
+using CoreML;
+using OpenGL;
+using AppKit;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Contacts;
+using Security;
+using CloudKit;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using ObjCRuntime;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using FileProvider;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace CoreML {
+ [Introduced (PlatformName.WatchOS, 11,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.TvOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ public unsafe static partial class MLModel_MLState {
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selNewStateX = "newState";
+ static readonly IntPtr selNewStateXHandle = Selector.GetHandle ("newState");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selPredictionFromFeatures_UsingState_Error_X = "predictionFromFeatures:usingState:error:";
+ static readonly IntPtr selPredictionFromFeatures_UsingState_Error_XHandle = Selector.GetHandle ("predictionFromFeatures:usingState:error:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selPredictionFromFeatures_UsingState_Options_CompletionHandler_X = "predictionFromFeatures:usingState:options:completionHandler:";
+ static readonly IntPtr selPredictionFromFeatures_UsingState_Options_CompletionHandler_XHandle = Selector.GetHandle ("predictionFromFeatures:usingState:options:completionHandler:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selPredictionFromFeatures_UsingState_Options_Error_X = "predictionFromFeatures:usingState:options:error:";
+ static readonly IntPtr selPredictionFromFeatures_UsingState_Options_Error_XHandle = Selector.GetHandle ("predictionFromFeatures:usingState:options:error:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ static readonly IntPtr class_ptr = Class.GetHandle ("MLModel");
+ [Export ("newState")]
+ [return: ReleaseAttribute ()]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public static MLState CreateNewState (this MLModel This)
+ {
+ MLState? ret;
+ ret = Runtime.GetNSObject<MLState> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (This.Handle, selNewStateXHandle))!;
+ if (ret is not null)
+ global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release"));
+ return ret!;
+ }
+ [Export ("predictionFromFeatures:usingState:error:")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe static IMLFeatureProvider? GetPrediction (this MLModel This, IMLFeatureProvider inputFeatures, MLState state, out NSError error)
+ {
+ var inputFeatures__handle__ = inputFeatures!.GetNonNullHandle (nameof (inputFeatures));
+ var state__handle__ = state!.GetNonNullHandle (nameof (state));
+ IntPtr errorValue = IntPtr.Zero;
+ IMLFeatureProvider? ret;
+ ret = Runtime.GetINativeObject<IMLFeatureProvider> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr_ref_IntPtr (This.Handle, selPredictionFromFeatures_UsingState_Error_XHandle, inputFeatures__handle__, state__handle__, &errorValue), false)!;
+ error = Runtime.GetNSObject<NSError> (errorValue)!;
+ return ret!;
+ }
+ [Export ("predictionFromFeatures:usingState:options:error:")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe static IMLFeatureProvider? GetPrediction (this MLModel This, IMLFeatureProvider inputFeatures, MLState state, MLPredictionOptions options, out NSError error)
+ {
+ var inputFeatures__handle__ = inputFeatures!.GetNonNullHandle (nameof (inputFeatures));
+ var state__handle__ = state!.GetNonNullHandle (nameof (state));
+ var options__handle__ = options!.GetNonNullHandle (nameof (options));
+ IntPtr errorValue = IntPtr.Zero;
+ IMLFeatureProvider? ret;
+ ret = Runtime.GetINativeObject<IMLFeatureProvider> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr_IntPtr_ref_IntPtr (This.Handle, selPredictionFromFeatures_UsingState_Options_Error_XHandle, inputFeatures__handle__, state__handle__, options__handle__, &errorValue), false)!;
+ error = Runtime.GetNSObject<NSError> (errorValue)!;
+ return ret!;
+ }
+ [Export ("predictionFromFeatures:usingState:options:completionHandler:")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe static IMLFeatureProvider? GetPrediction (this MLModel This, IMLFeatureProvider inputFeatures, MLState state, MLPredictionOptions options, [BlockProxy (typeof (ObjCRuntime.Trampolines.NIDMLStateGetPredictionCompletionHandler))]MLStateGetPredictionCompletionHandler completionHandler)
+ {
+ var inputFeatures__handle__ = inputFeatures!.GetNonNullHandle (nameof (inputFeatures));
+ var state__handle__ = state!.GetNonNullHandle (nameof (state));
+ var options__handle__ = options!.GetNonNullHandle (nameof (options));
+ if (completionHandler is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (completionHandler));
+ using var block_completionHandler = Trampolines.SDMLStateGetPredictionCompletionHandler.CreateBlock (completionHandler);
+ BlockLiteral *block_ptr_completionHandler = &block_completionHandler;
+ return Runtime.GetINativeObject<IMLFeatureProvider> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr_IntPtr_IntPtr (This.Handle, selPredictionFromFeatures_UsingState_Options_CompletionHandler_XHandle, inputFeatures__handle__, state__handle__, options__handle__, (IntPtr) block_ptr_completionHandler), false)!;
+ }
+ } /* class MLModel_MLState */
+}
diff --git a/old/mac/mobile/CoreML/MLMultiArray.g.cs b/new/mac/mobile/CoreML/MLMultiArray.g.cs
index 174f418..46a2a1e 100644
--- a/old/mac/mobile/CoreML/MLMultiArray.g.cs
+++ b/new/mac/mobile/CoreML/MLMultiArray.g.cs
@@ -77,6 +77,9 @@ namespace CoreML {
const string selInitWithShape_DataType_Error_X = "initWithShape:dataType:error:";
static readonly IntPtr selInitWithShape_DataType_Error_XHandle = Selector.GetHandle ("initWithShape:dataType:error:");
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selInitWithShape_DataType_Strides_X = "initWithShape:dataType:strides:";
+ static readonly IntPtr selInitWithShape_DataType_Strides_XHandle = Selector.GetHandle ("initWithShape:dataType:strides:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
const string selMultiArrayByConcatenatingMultiArrays_AlongAxis_DataType_X = "multiArrayByConcatenatingMultiArrays:alongAxis:dataType:";
static readonly IntPtr selMultiArrayByConcatenatingMultiArrays_AlongAxis_DataType_XHandle = Selector.GetHandle ("multiArrayByConcatenatingMultiArrays:alongAxis:dataType:");
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
@@ -101,6 +104,9 @@ namespace CoreML {
const string selStridesX = "strides";
static readonly IntPtr selStridesXHandle = Selector.GetHandle ("strides");
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selTransferToMultiArray_X = "transferToMultiArray:";
+ static readonly IntPtr selTransferToMultiArray_XHandle = Selector.GetHandle ("transferToMultiArray:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
static readonly IntPtr class_ptr = Class.GetHandle ("MLMultiArray");
/// <summary>The Objective-C class handle for this class.</summary>
/// <value>The pointer to the Objective-C class.</value>
@@ -212,6 +218,30 @@ namespace CoreML {
nsa_shape.Dispose ();
error = Runtime.GetNSObject<NSError> (errorValue)!;
}
+ [Export ("initWithShape:dataType:strides:")]
+ [Introduced (PlatformName.iOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.TvOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.WatchOS, 11,0, ObjCRuntime.PlatformArchitecture.All)]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public MLMultiArray (NSNumber[] shape, MLMultiArrayDataType dataType, NSNumber[] strides)
+ : base (NSObjectFlag.Empty)
+ {
+ if (shape is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (shape));
+ if (strides is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (strides));
+ var nsa_shape = NSArray.FromNSObjects (shape);
+ var nsa_strides = NSArray.FromNSObjects (strides);
+ if (IsDirectBinding) {
+ InitializeHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr_IntPtr (this.Handle, selInitWithShape_DataType_Strides_XHandle, nsa_shape.Handle, (IntPtr) (long) dataType, nsa_strides.Handle), "initWithShape:dataType:strides:");
+ } else {
+ InitializeHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr_IntPtr (this.SuperHandle, selInitWithShape_DataType_Strides_XHandle, nsa_shape.Handle, (IntPtr) (long) dataType, nsa_strides.Handle), "initWithShape:dataType:strides:");
+ }
+ nsa_shape.Dispose ();
+ nsa_strides.Dispose ();
+ }
[Export ("initWithDataPointer:shape:dataType:strides:deallocator:error:")]
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public unsafe MLMultiArray (global::System.IntPtr dataPointer, NSNumber[] shape, MLMultiArrayDataType dataType, NSNumber[] strides, [BlockProxy (typeof (ObjCRuntime.Trampolines.NIDActionArity1V40))]global::System.Action<global::System.IntPtr>? deallocator, out NSError error)
@@ -415,6 +445,22 @@ namespace CoreML {
var obj__handle__ = obj!.GetNonNullHandle (nameof (obj));
global::ObjCRuntime.Messaging.void_objc_msgSend_IntPtr_IntPtr (this.Handle, selSetObject_ForKeyedSubscript_XHandle, obj__handle__, key);
}
+ [Export ("transferToMultiArray:")]
+ [Introduced (PlatformName.iOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.TvOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.WatchOS, 11,0, ObjCRuntime.PlatformArchitecture.All)]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual void TransferToMultiArray (MLMultiArray destinationMultiArray)
+ {
+ var destinationMultiArray__handle__ = destinationMultiArray!.GetNonNullHandle (nameof (destinationMultiArray));
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_IntPtr (this.Handle, selTransferToMultiArray_XHandle, destinationMultiArray__handle__);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr (this.SuperHandle, selTransferToMultiArray_XHandle, destinationMultiArray__handle__);
+ }
+ }
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public virtual nint Count {
[Export ("count")]
diff --git a/old/mac/mobile/CoreML/MLMultiArrayDataType.g.cs b/new/mac/mobile/CoreML/MLMultiArrayDataType.g.cs
index ec24ef9..865e831 100644
--- a/old/mac/mobile/CoreML/MLMultiArrayDataType.g.cs
+++ b/new/mac/mobile/CoreML/MLMultiArrayDataType.g.cs
@@ -50,10 +50,10 @@ namespace CoreML {
Float64 = 65600,
Float32 = 65568,
[Introduced (PlatformName.MacOSX, 12,0, ObjCRuntime.PlatformArchitecture.All)]
- [Unavailable (PlatformName.iOS, ObjCRuntime.PlatformArchitecture.All)]
- [Unavailable (PlatformName.MacCatalyst, ObjCRuntime.PlatformArchitecture.All)]
- [Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
- [Unavailable (PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.WatchOS, 9,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.TvOS, 16,0, ObjCRuntime.PlatformArchitecture.All)]
Float16 = 65552,
Float = 65568,
Int32 = 131104,
diff --git a/old/mac/mobile/CoreML/MLOptimizationHints.g.cs b/new/mac/mobile/CoreML/MLOptimizationHints.g.cs
index 956b5e5..5c76c6f 100644
--- a/old/mac/mobile/CoreML/MLOptimizationHints.g.cs
+++ b/new/mac/mobile/CoreML/MLOptimizationHints.g.cs
@@ -66,6 +66,12 @@ namespace CoreML {
const string selSetReshapeFrequency_X = "setReshapeFrequency:";
static readonly IntPtr selSetReshapeFrequency_XHandle = Selector.GetHandle ("setReshapeFrequency:");
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selSetSpecializationStrategy_X = "setSpecializationStrategy:";
+ static readonly IntPtr selSetSpecializationStrategy_XHandle = Selector.GetHandle ("setSpecializationStrategy:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selSpecializationStrategyX = "specializationStrategy";
+ static readonly IntPtr selSpecializationStrategyXHandle = Selector.GetHandle ("specializationStrategy");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
static readonly IntPtr class_ptr = Class.GetHandle ("MLOptimizationHints");
/// <summary>The Objective-C class handle for this class.</summary>
/// <value>The pointer to the Objective-C class.</value>
@@ -221,5 +227,41 @@ namespace CoreML {
}
}
}
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [Introduced (PlatformName.WatchOS, 11,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.TvOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ public virtual MLSpecializationStrategy SpecializationStrategy {
+ [Introduced (PlatformName.WatchOS, 11,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.TvOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Export ("specializationStrategy", ArgumentSemantic.UnsafeUnretained)]
+ get {
+ MLSpecializationStrategy ret;
+ if (IsDirectBinding) {
+ ret = (MLSpecializationStrategy) (long) global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, selSpecializationStrategyXHandle);
+ } else {
+ ret = (MLSpecializationStrategy) (long) global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, selSpecializationStrategyXHandle);
+ }
+ return ret!;
+ }
+ [Introduced (PlatformName.WatchOS, 11,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.TvOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Export ("setSpecializationStrategy:", ArgumentSemantic.UnsafeUnretained)]
+ set {
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_IntPtr (this.Handle, selSetSpecializationStrategy_XHandle, (IntPtr) (long) value);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr (this.SuperHandle, selSetSpecializationStrategy_XHandle, (IntPtr) (long) value);
+ }
+ }
+ }
} /* class MLOptimizationHints */
}
diff --git a/new/mac/mobile/CoreML/MLSpecializationStrategy.g.cs b/new/mac/mobile/CoreML/MLSpecializationStrategy.g.cs
new file mode 100644
index 0000000..01a8d31
--- /dev/null
+++ b/new/mac/mobile/CoreML/MLSpecializationStrategy.g.cs
@@ -0,0 +1,56 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using QTKit;
+using Metal;
+using CoreML;
+using OpenGL;
+using AppKit;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Contacts;
+using Security;
+using CloudKit;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using ObjCRuntime;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using FileProvider;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace CoreML {
+ [Introduced (PlatformName.WatchOS, 11,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.TvOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Native]
+ public enum MLSpecializationStrategy : long {
+ Default = 0,
+ FastPrediction = 1,
+ }
+}
diff --git a/new/mac/mobile/CoreML/MLState.g.cs b/new/mac/mobile/CoreML/MLState.g.cs
new file mode 100644
index 0000000..45bc714
--- /dev/null
+++ b/new/mac/mobile/CoreML/MLState.g.cs
@@ -0,0 +1,150 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using QTKit;
+using Metal;
+using CoreML;
+using OpenGL;
+using AppKit;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Contacts;
+using Security;
+using CloudKit;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using ObjCRuntime;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using FileProvider;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace CoreML {
+ [Register("MLState", true)]
+ [Introduced (PlatformName.WatchOS, 11,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.TvOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ public unsafe partial class MLState : NSObject {
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selGetMultiArrayForStateNamed_Handler_X = "getMultiArrayForStateNamed:handler:";
+ static readonly IntPtr selGetMultiArrayForStateNamed_Handler_XHandle = Selector.GetHandle ("getMultiArrayForStateNamed:handler:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ static readonly IntPtr class_ptr = Class.GetHandle ("MLState");
+ /// <summary>The Objective-C class handle for this class.</summary>
+ /// <value>The pointer to the Objective-C class.</value>
+ /// <remarks>
+ /// Each managed class mirrors an unmanaged Objective-C class.
+ /// This value contains the pointer to the Objective-C class.
+ /// It is similar to calling the managed <see cref="ObjCRuntime.Class.GetHandle(string)" /> or the native <see href="https://developer.apple.com/documentation/objectivec/1418952-objc_getclass">objc_getClass</see> method with the type name.
+ /// </remarks>
+ public override IntPtr ClassHandle { get { return class_ptr; } }
+ /// <summary>Constructor to call on derived classes to skip initialization and merely allocate the object.</summary>
+ /// <param name="t">Unused sentinel value, pass NSObjectFlag.Empty.</param>
+ /// <remarks>
+ /// <para>
+ /// This constructor should be called by derived classes when they completely construct the object in managed code and merely want the runtime to allocate and initialize the <see cref="Foundation.NSObject" />.
+ /// This is required to implement the two-step initialization process that Objective-C uses, the first step is to perform the object allocation, the second step is to initialize the object.
+ /// When developers invoke this constructor, they take advantage of a direct path that goes all the way up to <see cref="Foundation.NSObject" /> to merely allocate the object's memory and bind the Objective-C and C# objects together.
+ /// The actual initialization of the object is up to the developer.
+ /// </para>
+ /// <para>
+ /// This constructor is typically used by the binding generator to allocate the object, but prevent the actual initialization to take place.
+ /// Once the allocation has taken place, the constructor has to initialize the object.
+ /// With constructors generated by the binding generator this means that it manually invokes one of the "init" methods to initialize the object.
+ /// </para>
+ /// <para>It is the developer's responsibility to completely initialize the object if they chain up using this constructor chain.</para>
+ /// <para>
+ /// In general, if the developer's constructor invokes the corresponding base implementation, then it should also call an Objective-C init method.
+ /// If this is not the case, developers should instead chain to the proper constructor in their class.
+ /// </para>
+ /// <para>
+ /// The argument value is ignored and merely ensures that the only code that is executed is the construction phase is the basic <see cref="Foundation.NSObject" /> allocation and runtime type registration.
+ /// Typically the chaining would look like this:
+ /// </para>
+ /// <example>
+ /// <code lang="csharp lang-csharp"><![CDATA[
+ /// //
+ /// // The NSObjectFlag constructor merely allocates the object and registers the C# class with the Objective-C runtime if necessary.
+ /// // No actual initXxx method is invoked, that is done later in the constructor
+ /// //
+ /// // This is taken from the iOS SDK's source code for the UIView class:
+ /// //
+ /// [Export ("initWithFrame:")]
+ /// public UIView (System.Drawing.RectangleF frame) : base (NSObjectFlag.Empty)
+ /// {
+ /// // Invoke the init method now.
+ /// var initWithFrame = new Selector ("initWithFrame:").Handle;
+ /// if (IsDirectBinding) {
+ /// Handle = ObjCRuntime.Messaging.IntPtr_objc_msgSend_CGRect (this.Handle, initWithFrame, frame);
+ /// } else {
+ /// Handle = ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper_CGRect (this.SuperHandle, initWithFrame, frame);
+ /// }
+ /// }
+ /// ]]></code>
+ /// </example>
+ /// </remarks>
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected MLState (NSObjectFlag t) : base (t)
+ {
+ }
+
+ /// <summary>A constructor used when creating managed representations of unmanaged objects. Called by the runtime.</summary>
+ /// <param name="handle">Pointer (handle) to the unmanaged object.</param>
+ /// <remarks>
+ /// <para>
+ /// This constructor is invoked by the runtime infrastructure (<see cref="ObjCRuntime.Runtime.GetNSObject(System.IntPtr)" />) to create a new managed representation for a pointer to an unmanaged Objective-C object.
+ /// Developers should not invoke this method directly, instead they should call <see cref="ObjCRuntime.Runtime.GetNSObject(System.IntPtr)" /> as it will prevent two instances of a managed object pointing to the same native object.
+ /// </para>
+ /// </remarks>
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected internal MLState (IntPtr handle) : base (handle)
+ {
+ }
+
+ [Export ("getMultiArrayForStateNamed:handler:")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual void GetMultiArrayForState (string stateName, [BlockProxy (typeof (ObjCRuntime.Trampolines.NIDMLStateGetMultiArrayForStateHandler))]MLStateGetMultiArrayForStateHandler handler)
+ {
+ if (stateName is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (stateName));
+ if (handler is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (handler));
+ var nsstateName = CFString.CreateNative (stateName);
+ using var block_handler = Trampolines.SDMLStateGetMultiArrayForStateHandler.CreateBlock (handler);
+ BlockLiteral *block_ptr_handler = &block_handler;
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_IntPtr_IntPtr (this.Handle, selGetMultiArrayForStateNamed_Handler_XHandle, nsstateName, (IntPtr) block_ptr_handler);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr_IntPtr (this.SuperHandle, selGetMultiArrayForStateNamed_Handler_XHandle, nsstateName, (IntPtr) block_ptr_handler);
+ }
+ CFString.ReleaseNative (nsstateName);
+ }
+ } /* class MLState */
+}
diff --git a/new/mac/mobile/CoreML/MLStateConstraint.g.cs b/new/mac/mobile/CoreML/MLStateConstraint.g.cs
new file mode 100644
index 0000000..56a0754
--- /dev/null
+++ b/new/mac/mobile/CoreML/MLStateConstraint.g.cs
@@ -0,0 +1,198 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using QTKit;
+using Metal;
+using CoreML;
+using OpenGL;
+using AppKit;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Contacts;
+using Security;
+using CloudKit;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using ObjCRuntime;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using FileProvider;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace CoreML {
+ [Register("MLStateConstraint", true)]
+ [Introduced (PlatformName.WatchOS, 11,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.TvOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ public unsafe partial class MLStateConstraint : NSObject, INSCoding, INSSecureCoding {
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selBufferShapeX = "bufferShape";
+ static readonly IntPtr selBufferShapeXHandle = Selector.GetHandle ("bufferShape");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selDataTypeX = "dataType";
+ static readonly IntPtr selDataTypeXHandle = Selector.GetHandle ("dataType");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selEncodeWithCoder_X = "encodeWithCoder:";
+ static readonly IntPtr selEncodeWithCoder_XHandle = Selector.GetHandle ("encodeWithCoder:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selInitWithCoder_X = "initWithCoder:";
+ static readonly IntPtr selInitWithCoder_XHandle = Selector.GetHandle ("initWithCoder:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ static readonly IntPtr class_ptr = Class.GetHandle ("MLStateConstraint");
+ /// <summary>The Objective-C class handle for this class.</summary>
+ /// <value>The pointer to the Objective-C class.</value>
+ /// <remarks>
+ /// Each managed class mirrors an unmanaged Objective-C class.
+ /// This value contains the pointer to the Objective-C class.
+ /// It is similar to calling the managed <see cref="ObjCRuntime.Class.GetHandle(string)" /> or the native <see href="https://developer.apple.com/documentation/objectivec/1418952-objc_getclass">objc_getClass</see> method with the type name.
+ /// </remarks>
+ public override IntPtr ClassHandle { get { return class_ptr; } }
+ /// <summary>A constructor that initializes the object from the data stored in the unarchiver object.</summary>
+ /// <param name="coder">The unarchiver object.</param>
+ /// <remarks>
+ /// <para>This constructor is provided to allow the class to be initialized from an unarchiver (for example, during NIB deserialization). This is part of the <see cref="Foundation.NSCoding" /> protocol.</para>
+ /// <para>If developers want to create a subclass of this object and continue to support deserialization from an archive, they should implement a constructor with an identical signature: taking a single parameter of type <see cref="Foundation.NSCoder" /> and decorate it with the <c>[Export("initWithCoder:"]</c> attribute.</para>
+ /// <para>The state of this object can also be serialized by using the <see cref="Foundation.INSCoding.EncodeTo" /> companion method.</para>
+ /// </remarks>
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [DesignatedInitializer]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ [Export ("initWithCoder:")]
+ public MLStateConstraint (NSCoder coder) : base (NSObjectFlag.Empty)
+ {
+ if (IsDirectBinding) {
+ InitializeHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend_IntPtr (this.Handle, Selector.InitWithCoder, coder.Handle), "initWithCoder:");
+ } else {
+ InitializeHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper_IntPtr (this.SuperHandle, Selector.InitWithCoder, coder.Handle), "initWithCoder:");
+ }
+ }
+
+ /// <summary>Constructor to call on derived classes to skip initialization and merely allocate the object.</summary>
+ /// <param name="t">Unused sentinel value, pass NSObjectFlag.Empty.</param>
+ /// <remarks>
+ /// <para>
+ /// This constructor should be called by derived classes when they completely construct the object in managed code and merely want the runtime to allocate and initialize the <see cref="Foundation.NSObject" />.
+ /// This is required to implement the two-step initialization process that Objective-C uses, the first step is to perform the object allocation, the second step is to initialize the object.
+ /// When developers invoke this constructor, they take advantage of a direct path that goes all the way up to <see cref="Foundation.NSObject" /> to merely allocate the object's memory and bind the Objective-C and C# objects together.
+ /// The actual initialization of the object is up to the developer.
+ /// </para>
+ /// <para>
+ /// This constructor is typically used by the binding generator to allocate the object, but prevent the actual initialization to take place.
+ /// Once the allocation has taken place, the constructor has to initialize the object.
+ /// With constructors generated by the binding generator this means that it manually invokes one of the "init" methods to initialize the object.
+ /// </para>
+ /// <para>It is the developer's responsibility to completely initialize the object if they chain up using this constructor chain.</para>
+ /// <para>
+ /// In general, if the developer's constructor invokes the corresponding base implementation, then it should also call an Objective-C init method.
+ /// If this is not the case, developers should instead chain to the proper constructor in their class.
+ /// </para>
+ /// <para>
+ /// The argument value is ignored and merely ensures that the only code that is executed is the construction phase is the basic <see cref="Foundation.NSObject" /> allocation and runtime type registration.
+ /// Typically the chaining would look like this:
+ /// </para>
+ /// <example>
+ /// <code lang="csharp lang-csharp"><![CDATA[
+ /// //
+ /// // The NSObjectFlag constructor merely allocates the object and registers the C# class with the Objective-C runtime if necessary.
+ /// // No actual initXxx method is invoked, that is done later in the constructor
+ /// //
+ /// // This is taken from the iOS SDK's source code for the UIView class:
+ /// //
+ /// [Export ("initWithFrame:")]
+ /// public UIView (System.Drawing.RectangleF frame) : base (NSObjectFlag.Empty)
+ /// {
+ /// // Invoke the init method now.
+ /// var initWithFrame = new Selector ("initWithFrame:").Handle;
+ /// if (IsDirectBinding) {
+ /// Handle = ObjCRuntime.Messaging.IntPtr_objc_msgSend_CGRect (this.Handle, initWithFrame, frame);
+ /// } else {
+ /// Handle = ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper_CGRect (this.SuperHandle, initWithFrame, frame);
+ /// }
+ /// }
+ /// ]]></code>
+ /// </example>
+ /// </remarks>
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected MLStateConstraint (NSObjectFlag t) : base (t)
+ {
+ }
+
+ /// <summary>A constructor used when creating managed representations of unmanaged objects. Called by the runtime.</summary>
+ /// <param name="handle">Pointer (handle) to the unmanaged object.</param>
+ /// <remarks>
+ /// <para>
+ /// This constructor is invoked by the runtime infrastructure (<see cref="ObjCRuntime.Runtime.GetNSObject(System.IntPtr)" />) to create a new managed representation for a pointer to an unmanaged Objective-C object.
+ /// Developers should not invoke this method directly, instead they should call <see cref="ObjCRuntime.Runtime.GetNSObject(System.IntPtr)" /> as it will prevent two instances of a managed object pointing to the same native object.
+ /// </para>
+ /// </remarks>
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected internal MLStateConstraint (IntPtr handle) : base (handle)
+ {
+ }
+
+ [Export ("encodeWithCoder:")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual void EncodeTo (NSCoder encoder)
+ {
+ var encoder__handle__ = encoder!.GetNonNullHandle (nameof (encoder));
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_IntPtr (this.Handle, selEncodeWithCoder_XHandle, encoder__handle__);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr (this.SuperHandle, selEncodeWithCoder_XHandle, encoder__handle__);
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual NSNumber[] BufferShape {
+ [Export ("bufferShape")]
+ get {
+ NSNumber[]? ret;
+ if (IsDirectBinding) {
+ ret = CFArray.ArrayFromHandle<NSNumber>(global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, selBufferShapeXHandle))!;
+ } else {
+ ret = CFArray.ArrayFromHandle<NSNumber>(global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, selBufferShapeXHandle))!;
+ }
+ return ret!;
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual MLMultiArrayDataType DataType {
+ [Export ("dataType")]
+ get {
+ MLMultiArrayDataType ret;
+ if (IsDirectBinding) {
+ ret = (MLMultiArrayDataType) (long) global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, selDataTypeXHandle);
+ } else {
+ ret = (MLMultiArrayDataType) (long) global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, selDataTypeXHandle);
+ }
+ return ret!;
+ }
+ }
+ } /* class MLStateConstraint */
+}
diff --git a/old/mac/mobile/ObjCRuntime/Trampolines.g.cs b/new/mac/mobile/ObjCRuntime/Trampolines.g.cs
index aba1c5d..b7bad6c 100644
--- a/old/mac/mobile/ObjCRuntime/Trampolines.g.cs
+++ b/new/mac/mobile/ObjCRuntime/Trampolines.g.cs
@@ -6516,6 +6516,223 @@ namespace ObjCRuntime {
}
} /* class NIDCLGeocodeCompletionHandler */
[UnmanagedFunctionPointerAttribute (CallingConvention.Cdecl)]
+ [UserDelegateType (typeof (global::CoreML.MLModelAssetGetFunctionNamesCompletionHandler))]
+ unsafe internal delegate void DMLModelAssetGetFunctionNamesCompletionHandler (IntPtr block, IntPtr functionNames, IntPtr error);
+ //
+ // This class bridges native block invocations that call into C#
+ //
+ static internal class SDMLModelAssetGetFunctionNamesCompletionHandler {
+ unsafe static internal readonly DMLModelAssetGetFunctionNamesCompletionHandler Handler = Invoke;
+ [MonoPInvokeCallback (typeof (DMLModelAssetGetFunctionNamesCompletionHandler))]
+ [UserDelegateType (typeof (global::CoreML.MLModelAssetGetFunctionNamesCompletionHandler))]
+ internal static unsafe void Invoke (IntPtr block, IntPtr functionNames, IntPtr error) {
+ var del = BlockLiteral.GetTarget<global::CoreML.MLModelAssetGetFunctionNamesCompletionHandler> (block);
+ if (del is not null) {
+ del (CFArray.StringArrayFromHandle (functionNames)!, Runtime.GetNSObject<NSError> (error)!);
+ }
+ }
+ internal static unsafe BlockLiteral CreateNullableBlock (global::CoreML.MLModelAssetGetFunctionNamesCompletionHandler? callback)
+ {
+ if (callback is null)
+ return default (BlockLiteral);
+ return CreateBlock (callback);
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ internal static unsafe BlockLiteral CreateBlock (global::CoreML.MLModelAssetGetFunctionNamesCompletionHandler callback)
+ {
+ var block = new BlockLiteral ();
+ block.SetupBlockUnsafe (Handler, callback);
+ return block;
+ }
+ } /* class SDMLModelAssetGetFunctionNamesCompletionHandler */
+ internal sealed class NIDMLModelAssetGetFunctionNamesCompletionHandler : TrampolineBlockBase {
+ DMLModelAssetGetFunctionNamesCompletionHandler invoker;
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe NIDMLModelAssetGetFunctionNamesCompletionHandler (BlockLiteral *block) : base (block)
+ {
+ invoker = block->GetDelegateForBlock<DMLModelAssetGetFunctionNamesCompletionHandler> ();
+ }
+ [Preserve (Conditional=true)]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe static global::CoreML.MLModelAssetGetFunctionNamesCompletionHandler? Create (IntPtr block)
+ {
+ if (block == IntPtr.Zero)
+ return null;
+ var del = (global::CoreML.MLModelAssetGetFunctionNamesCompletionHandler) GetExistingManagedDelegate (block);
+ return del ?? new NIDMLModelAssetGetFunctionNamesCompletionHandler ((BlockLiteral *) block).Invoke;
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ unsafe void Invoke (string[]? functionNames, NSError? error)
+ {
+ var error__handle__ = error.GetHandle ();
+ var nsa_functionNames = functionNames is null ? null : NSArray.FromStrings (functionNames);
+ invoker (BlockPointer, nsa_functionNames.GetHandle (), error__handle__);
+ if (nsa_functionNames is not null)
+ nsa_functionNames.Dispose ();
+ }
+ } /* class NIDMLModelAssetGetFunctionNamesCompletionHandler */
+ [UnmanagedFunctionPointerAttribute (CallingConvention.Cdecl)]
+ [UserDelegateType (typeof (global::CoreML.MLModelAssetGetModelDescriptionCompletionHandler))]
+ unsafe internal delegate void DMLModelAssetGetModelDescriptionCompletionHandler (IntPtr block, IntPtr modelDescription, IntPtr error);
+ //
+ // This class bridges native block invocations that call into C#
+ //
+ static internal class SDMLModelAssetGetModelDescriptionCompletionHandler {
+ unsafe static internal readonly DMLModelAssetGetModelDescriptionCompletionHandler Handler = Invoke;
+ [MonoPInvokeCallback (typeof (DMLModelAssetGetModelDescriptionCompletionHandler))]
+ [UserDelegateType (typeof (global::CoreML.MLModelAssetGetModelDescriptionCompletionHandler))]
+ internal static unsafe void Invoke (IntPtr block, IntPtr modelDescription, IntPtr error) {
+ var del = BlockLiteral.GetTarget<global::CoreML.MLModelAssetGetModelDescriptionCompletionHandler> (block);
+ if (del is not null) {
+ del ( Runtime.GetNSObject<MLModelDescription> (modelDescription)!, Runtime.GetNSObject<NSError> (error)!);
+ }
+ }
+ internal static unsafe BlockLiteral CreateNullableBlock (global::CoreML.MLModelAssetGetModelDescriptionCompletionHandler? callback)
+ {
+ if (callback is null)
+ return default (BlockLiteral);
+ return CreateBlock (callback);
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ internal static unsafe BlockLiteral CreateBlock (global::CoreML.MLModelAssetGetModelDescriptionCompletionHandler callback)
+ {
+ var block = new BlockLiteral ();
+ block.SetupBlockUnsafe (Handler, callback);
+ return block;
+ }
+ } /* class SDMLModelAssetGetModelDescriptionCompletionHandler */
+ internal sealed class NIDMLModelAssetGetModelDescriptionCompletionHandler : TrampolineBlockBase {
+ DMLModelAssetGetModelDescriptionCompletionHandler invoker;
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe NIDMLModelAssetGetModelDescriptionCompletionHandler (BlockLiteral *block) : base (block)
+ {
+ invoker = block->GetDelegateForBlock<DMLModelAssetGetModelDescriptionCompletionHandler> ();
+ }
+ [Preserve (Conditional=true)]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe static global::CoreML.MLModelAssetGetModelDescriptionCompletionHandler? Create (IntPtr block)
+ {
+ if (block == IntPtr.Zero)
+ return null;
+ var del = (global::CoreML.MLModelAssetGetModelDescriptionCompletionHandler) GetExistingManagedDelegate (block);
+ return del ?? new NIDMLModelAssetGetModelDescriptionCompletionHandler ((BlockLiteral *) block).Invoke;
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ unsafe void Invoke (global::CoreML.MLModelDescription? modelDescription, NSError? error)
+ {
+ var modelDescription__handle__ = modelDescription.GetHandle ();
+ var error__handle__ = error.GetHandle ();
+ invoker (BlockPointer, modelDescription__handle__, error__handle__);
+ }
+ } /* class NIDMLModelAssetGetModelDescriptionCompletionHandler */
+ [UnmanagedFunctionPointerAttribute (CallingConvention.Cdecl)]
+ [UserDelegateType (typeof (global::CoreML.MLStateGetMultiArrayForStateHandler))]
+ unsafe internal delegate void DMLStateGetMultiArrayForStateHandler (IntPtr block, IntPtr buffer);
+ //
+ // This class bridges native block invocations that call into C#
+ //
+ static internal class SDMLStateGetMultiArrayForStateHandler {
+ unsafe static internal readonly DMLStateGetMultiArrayForStateHandler Handler = Invoke;
+ [MonoPInvokeCallback (typeof (DMLStateGetMultiArrayForStateHandler))]
+ [UserDelegateType (typeof (global::CoreML.MLStateGetMultiArrayForStateHandler))]
+ internal static unsafe void Invoke (IntPtr block, IntPtr buffer) {
+ var del = BlockLiteral.GetTarget<global::CoreML.MLStateGetMultiArrayForStateHandler> (block);
+ if (del is not null) {
+ del ( Runtime.GetNSObject<MLMultiArray> (buffer)!);
+ }
+ }
+ internal static unsafe BlockLiteral CreateNullableBlock (global::CoreML.MLStateGetMultiArrayForStateHandler? callback)
+ {
+ if (callback is null)
+ return default (BlockLiteral);
+ return CreateBlock (callback);
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ internal static unsafe BlockLiteral CreateBlock (global::CoreML.MLStateGetMultiArrayForStateHandler callback)
+ {
+ var block = new BlockLiteral ();
+ block.SetupBlockUnsafe (Handler, callback);
+ return block;
+ }
+ } /* class SDMLStateGetMultiArrayForStateHandler */
+ internal sealed class NIDMLStateGetMultiArrayForStateHandler : TrampolineBlockBase {
+ DMLStateGetMultiArrayForStateHandler invoker;
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe NIDMLStateGetMultiArrayForStateHandler (BlockLiteral *block) : base (block)
+ {
+ invoker = block->GetDelegateForBlock<DMLStateGetMultiArrayForStateHandler> ();
+ }
+ [Preserve (Conditional=true)]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe static global::CoreML.MLStateGetMultiArrayForStateHandler? Create (IntPtr block)
+ {
+ if (block == IntPtr.Zero)
+ return null;
+ var del = (global::CoreML.MLStateGetMultiArrayForStateHandler) GetExistingManagedDelegate (block);
+ return del ?? new NIDMLStateGetMultiArrayForStateHandler ((BlockLiteral *) block).Invoke;
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ unsafe void Invoke (global::CoreML.MLMultiArray buffer)
+ {
+ var buffer__handle__ = buffer.GetHandle ();
+ invoker (BlockPointer, buffer__handle__);
+ }
+ } /* class NIDMLStateGetMultiArrayForStateHandler */
+ [UnmanagedFunctionPointerAttribute (CallingConvention.Cdecl)]
+ [UserDelegateType (typeof (global::CoreML.MLStateGetPredictionCompletionHandler))]
+ unsafe internal delegate void DMLStateGetPredictionCompletionHandler (IntPtr block, IntPtr output, IntPtr error);
+ //
+ // This class bridges native block invocations that call into C#
+ //
+ static internal class SDMLStateGetPredictionCompletionHandler {
+ unsafe static internal readonly DMLStateGetPredictionCompletionHandler Handler = Invoke;
+ [MonoPInvokeCallback (typeof (DMLStateGetPredictionCompletionHandler))]
+ [UserDelegateType (typeof (global::CoreML.MLStateGetPredictionCompletionHandler))]
+ internal static unsafe void Invoke (IntPtr block, IntPtr output, IntPtr error) {
+ var del = BlockLiteral.GetTarget<global::CoreML.MLStateGetPredictionCompletionHandler> (block);
+ if (del is not null) {
+ del ( Runtime.GetINativeObject<CoreML.IMLFeatureProvider> (output, false)!, Runtime.GetNSObject<NSError> (error)!);
+ }
+ }
+ internal static unsafe BlockLiteral CreateNullableBlock (global::CoreML.MLStateGetPredictionCompletionHandler? callback)
+ {
+ if (callback is null)
+ return default (BlockLiteral);
+ return CreateBlock (callback);
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ internal static unsafe BlockLiteral CreateBlock (global::CoreML.MLStateGetPredictionCompletionHandler callback)
+ {
+ var block = new BlockLiteral ();
+ block.SetupBlockUnsafe (Handler, callback);
+ return block;
+ }
+ } /* class SDMLStateGetPredictionCompletionHandler */
+ internal sealed class NIDMLStateGetPredictionCompletionHandler : TrampolineBlockBase {
+ DMLStateGetPredictionCompletionHandler invoker;
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe NIDMLStateGetPredictionCompletionHandler (BlockLiteral *block) : base (block)
+ {
+ invoker = block->GetDelegateForBlock<DMLStateGetPredictionCompletionHandler> ();
+ }
+ [Preserve (Conditional=true)]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe static global::CoreML.MLStateGetPredictionCompletionHandler? Create (IntPtr block)
+ {
+ if (block == IntPtr.Zero)
+ return null;
+ var del = (global::CoreML.MLStateGetPredictionCompletionHandler) GetExistingManagedDelegate (block);
+ return del ?? new NIDMLStateGetPredictionCompletionHandler ((BlockLiteral *) block).Invoke;
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ unsafe void Invoke (global::CoreML.IMLFeatureProvider? output, NSError error)
+ {
+ var output__handle__ = output.GetHandle ();
+ var error__handle__ = error.GetHandle ();
+ invoker (BlockPointer, output__handle__, error__handle__);
+ }
+ } /* class NIDMLStateGetPredictionCompletionHandler */
+ [UnmanagedFunctionPointerAttribute (CallingConvention.Cdecl)]
[UserDelegateType (typeof (global::CoreMidi.MidiCIDiscoveryResponseDelegate))]
unsafe internal delegate void DMidiCIDiscoveryResponseDelegate (IntPtr block, IntPtr discoveredNodes);
//
diff --git a/old/mac/mobile/SupportDelegates.g.cs b/new/mac/mobile/SupportDelegates.g.cs
index 26d5452..748fa0b 100644
--- a/old/mac/mobile/SupportDelegates.g.cs
+++ b/new/mac/mobile/SupportDelegates.g.cs
@@ -326,6 +326,13 @@ namespace CoreLocation {
public delegate void CLGeocodeCompletionHandler (CLPlacemark[] placemarks, NSError error);
public delegate bool CLLocationManagerEventArgs (CLLocationManager manager);
}
+namespace CoreML {
+ #nullable enable
+ public delegate void MLModelAssetGetFunctionNamesCompletionHandler (String[]? functionNames, NSError? error);
+ public delegate void MLModelAssetGetModelDescriptionCompletionHandler (MLModelDescription? modelDescription, NSError? error);
+ public delegate void MLStateGetMultiArrayForStateHandler (MLMultiArray buffer);
+ public delegate void MLStateGetPredictionCompletionHandler (IMLFeatureProvider? output, NSError error);
+}
namespace CoreMidi {
#nullable enable
public delegate void MidiCIDiscoveryResponseDelegate (CoreMidi.MidiCIDiscoveredNode[] discoveredNodes);
diff --git a/old/tvos/tvos/CoreML/MLFeatureDescription.g.cs b/new/tvos/tvos/CoreML/MLFeatureDescription.g.cs
index e24d63d..671964c 100644
--- a/old/tvos/tvos/CoreML/MLFeatureDescription.g.cs
+++ b/new/tvos/tvos/CoreML/MLFeatureDescription.g.cs
@@ -286,6 +286,29 @@ namespace CoreML {
}
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [Introduced (PlatformName.TvOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.WatchOS, 11,0, ObjCRuntime.PlatformArchitecture.All)]
+ public virtual MLStateConstraint? StateConstraint {
+ [Introduced (PlatformName.TvOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.WatchOS, 11,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Export ("stateConstraint")]
+ get {
+ MLStateConstraint? ret;
+ if (IsDirectBinding) {
+ ret = Runtime.GetNSObject<MLStateConstraint> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, Selector.GetHandle ("stateConstraint")))!;
+ } else {
+ ret = Runtime.GetNSObject<MLStateConstraint> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, Selector.GetHandle ("stateConstraint")))!;
+ }
+ return ret!;
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public virtual MLFeatureType Type {
[Export ("type")]
get {
diff --git a/old/tvos/tvos/CoreML/MLFeatureType.g.cs b/new/tvos/tvos/CoreML/MLFeatureType.g.cs
index 66f3fe8..0196b6a 100644
--- a/old/tvos/tvos/CoreML/MLFeatureType.g.cs
+++ b/new/tvos/tvos/CoreML/MLFeatureType.g.cs
@@ -54,5 +54,11 @@ namespace CoreML {
[Introduced (PlatformName.TvOS, 12,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.iOS, 12,0, ObjCRuntime.PlatformArchitecture.All)]
Sequence = 7,
+ [Introduced (PlatformName.WatchOS, 11,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.TvOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ State = 8,
}
}
diff --git a/old/tvos/tvos/CoreML/MLModelAsset.g.cs b/new/tvos/tvos/CoreML/MLModelAsset.g.cs
index a73fbd6..6de7b7f 100644
--- a/old/tvos/tvos/CoreML/MLModelAsset.g.cs
+++ b/new/tvos/tvos/CoreML/MLModelAsset.g.cs
@@ -134,5 +134,99 @@ namespace CoreML {
error = Runtime.GetNSObject<NSError> (errorValue)!;
return ret!;
}
+ [Export ("modelAssetWithURL:error:")]
+ [Introduced (PlatformName.WatchOS, 11,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.TvOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe static MLModelAsset? Create (NSUrl compiledModelUrl, out NSError? error)
+ {
+ var compiledModelUrl__handle__ = compiledModelUrl!.GetNonNullHandle (nameof (compiledModelUrl));
+ IntPtr errorValue = IntPtr.Zero;
+ MLModelAsset? ret;
+ ret = Runtime.GetNSObject<MLModelAsset> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend_IntPtr_ref_IntPtr (class_ptr, Selector.GetHandle ("modelAssetWithURL:error:"), compiledModelUrl__handle__, &errorValue))!;
+ error = Runtime.GetNSObject<NSError> (errorValue)!;
+ return ret!;
+ }
+ [Export ("modelAssetWithSpecificationData:blobMapping:error:")]
+ [Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.TvOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe static MLModelAsset? Create (NSData specificationData, NSDictionary<NSUrl, NSData> blobMapping, out NSError? error)
+ {
+ var specificationData__handle__ = specificationData!.GetNonNullHandle (nameof (specificationData));
+ var blobMapping__handle__ = blobMapping!.GetNonNullHandle (nameof (blobMapping));
+ IntPtr errorValue = IntPtr.Zero;
+ MLModelAsset? ret;
+ ret = Runtime.GetNSObject<MLModelAsset> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr_ref_IntPtr (class_ptr, Selector.GetHandle ("modelAssetWithSpecificationData:blobMapping:error:"), specificationData__handle__, blobMapping__handle__, &errorValue))!;
+ error = Runtime.GetNSObject<NSError> (errorValue)!;
+ return ret!;
+ }
+ [Export ("functionNamesWithCompletionHandler:")]
+ [Introduced (PlatformName.WatchOS, 11,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.TvOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual void GetFunctionNames ([BlockProxy (typeof (ObjCRuntime.Trampolines.NIDMLModelAssetGetFunctionNamesCompletionHandler))]MLModelAssetGetFunctionNamesCompletionHandler handler)
+ {
+ if (handler is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (handler));
+ using var block_handler = Trampolines.SDMLModelAssetGetFunctionNamesCompletionHandler.CreateBlock (handler);
+ BlockLiteral *block_ptr_handler = &block_handler;
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_IntPtr (this.Handle, Selector.GetHandle ("functionNamesWithCompletionHandler:"), (IntPtr) block_ptr_handler);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr (this.SuperHandle, Selector.GetHandle ("functionNamesWithCompletionHandler:"), (IntPtr) block_ptr_handler);
+ }
+ }
+ [Export ("modelDescriptionWithCompletionHandler:")]
+ [Introduced (PlatformName.WatchOS, 11,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.TvOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual void GetModelDescription ([BlockProxy (typeof (ObjCRuntime.Trampolines.NIDMLModelAssetGetModelDescriptionCompletionHandler))]MLModelAssetGetModelDescriptionCompletionHandler handler)
+ {
+ if (handler is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (handler));
+ using var block_handler = Trampolines.SDMLModelAssetGetModelDescriptionCompletionHandler.CreateBlock (handler);
+ BlockLiteral *block_ptr_handler = &block_handler;
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_IntPtr (this.Handle, Selector.GetHandle ("modelDescriptionWithCompletionHandler:"), (IntPtr) block_ptr_handler);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr (this.SuperHandle, Selector.GetHandle ("modelDescriptionWithCompletionHandler:"), (IntPtr) block_ptr_handler);
+ }
+ }
+ [Export ("modelDescriptionOfFunctionNamed:completionHandler:")]
+ [Introduced (PlatformName.WatchOS, 11,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.TvOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual void GetModelDescription (string functionName, [BlockProxy (typeof (ObjCRuntime.Trampolines.NIDMLModelAssetGetModelDescriptionCompletionHandler))]MLModelAssetGetModelDescriptionCompletionHandler handler)
+ {
+ if (functionName is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (functionName));
+ if (handler is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (handler));
+ var nsfunctionName = CFString.CreateNative (functionName);
+ using var block_handler = Trampolines.SDMLModelAssetGetModelDescriptionCompletionHandler.CreateBlock (handler);
+ BlockLiteral *block_ptr_handler = &block_handler;
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_IntPtr_IntPtr (this.Handle, Selector.GetHandle ("modelDescriptionOfFunctionNamed:completionHandler:"), nsfunctionName, (IntPtr) block_ptr_handler);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr_IntPtr (this.SuperHandle, Selector.GetHandle ("modelDescriptionOfFunctionNamed:completionHandler:"), nsfunctionName, (IntPtr) block_ptr_handler);
+ }
+ CFString.ReleaseNative (nsfunctionName);
+ }
} /* class MLModelAsset */
}
diff --git a/old/tvos/tvos/CoreML/MLModelConfiguration.g.cs b/new/tvos/tvos/CoreML/MLModelConfiguration.g.cs
index f3de583..e0a2f11 100644
--- a/old/tvos/tvos/CoreML/MLModelConfiguration.g.cs
+++ b/new/tvos/tvos/CoreML/MLModelConfiguration.g.cs
@@ -232,6 +232,42 @@ namespace CoreML {
}
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [Introduced (PlatformName.WatchOS, 11,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.TvOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ public virtual string? FunctionName {
+ [Introduced (PlatformName.WatchOS, 11,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.TvOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Export ("functionName", ArgumentSemantic.Copy)]
+ get {
+ if (IsDirectBinding) {
+ return CFString.FromHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, Selector.GetHandle ("functionName")))!;
+ } else {
+ return CFString.FromHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, Selector.GetHandle ("functionName")))!;
+ }
+ }
+ [Introduced (PlatformName.WatchOS, 11,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.TvOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Export ("setFunctionName:", ArgumentSemantic.Copy)]
+ set {
+ var nsvalue = CFString.CreateNative (value);
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_IntPtr (this.Handle, Selector.GetHandle ("setFunctionName:"), nsvalue);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr (this.SuperHandle, Selector.GetHandle ("setFunctionName:"), nsvalue);
+ }
+ CFString.ReleaseNative (nsvalue);
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
[Introduced (PlatformName.WatchOS, 9,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.TvOS, 16,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.MacOSX, 13,0, ObjCRuntime.PlatformArchitecture.All)]
diff --git a/old/tvos/tvos/CoreML/MLModelDescription.g.cs b/new/tvos/tvos/CoreML/MLModelDescription.g.cs
index 53aede8..41d89d8 100644
--- a/old/tvos/tvos/CoreML/MLModelDescription.g.cs
+++ b/new/tvos/tvos/CoreML/MLModelDescription.g.cs
@@ -279,6 +279,29 @@ namespace CoreML {
}
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [Introduced (PlatformName.WatchOS, 11,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.TvOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ public virtual NSDictionary<NSString, MLFeatureDescription> StateDescriptionsByName {
+ [Introduced (PlatformName.WatchOS, 11,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.TvOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Export ("stateDescriptionsByName")]
+ get {
+ NSDictionary<NSString, MLFeatureDescription>? ret;
+ if (IsDirectBinding) {
+ ret = Runtime.GetNSObject<NSDictionary<NSString, MLFeatureDescription>> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, Selector.GetHandle ("stateDescriptionsByName")))!;
+ } else {
+ ret = Runtime.GetNSObject<NSDictionary<NSString, MLFeatureDescription>> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, Selector.GetHandle ("stateDescriptionsByName")))!;
+ }
+ return ret!;
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
[Introduced (PlatformName.WatchOS, 6,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.TvOS, 13,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.iOS, 13,0, ObjCRuntime.PlatformArchitecture.All)]
diff --git a/new/tvos/tvos/CoreML/MLModel_MLState.g.cs b/new/tvos/tvos/CoreML/MLModel_MLState.g.cs
new file mode 100644
index 0000000..d9814cf
--- /dev/null
+++ b/new/tvos/tvos/CoreML/MLModel_MLState.g.cs
@@ -0,0 +1,101 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Drawing;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using UIKit;
+using GLKit;
+using Metal;
+using CoreML;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Security;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using ObjCRuntime;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace CoreML {
+ [Introduced (PlatformName.WatchOS, 11,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.TvOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ public unsafe static partial class MLModel_MLState {
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ static readonly IntPtr class_ptr = Class.GetHandle ("MLModel");
+ [Export ("newState")]
+ [return: ReleaseAttribute ()]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public static MLState CreateNewState (this MLModel This)
+ {
+ MLState? ret;
+ ret = Runtime.GetNSObject<MLState> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (This.Handle, Selector.GetHandle ("newState")))!;
+ if (ret is not null)
+ global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release"));
+ return ret!;
+ }
+ [Export ("predictionFromFeatures:usingState:error:")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe static IMLFeatureProvider? GetPrediction (this MLModel This, IMLFeatureProvider inputFeatures, MLState state, out NSError error)
+ {
+ var inputFeatures__handle__ = inputFeatures!.GetNonNullHandle (nameof (inputFeatures));
+ var state__handle__ = state!.GetNonNullHandle (nameof (state));
+ IntPtr errorValue = IntPtr.Zero;
+ IMLFeatureProvider? ret;
+ ret = Runtime.GetINativeObject<IMLFeatureProvider> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr_ref_IntPtr (This.Handle, Selector.GetHandle ("predictionFromFeatures:usingState:error:"), inputFeatures__handle__, state__handle__, &errorValue), false)!;
+ error = Runtime.GetNSObject<NSError> (errorValue)!;
+ return ret!;
+ }
+ [Export ("predictionFromFeatures:usingState:options:error:")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe static IMLFeatureProvider? GetPrediction (this MLModel This, IMLFeatureProvider inputFeatures, MLState state, MLPredictionOptions options, out NSError error)
+ {
+ var inputFeatures__handle__ = inputFeatures!.GetNonNullHandle (nameof (inputFeatures));
+ var state__handle__ = state!.GetNonNullHandle (nameof (state));
+ var options__handle__ = options!.GetNonNullHandle (nameof (options));
+ IntPtr errorValue = IntPtr.Zero;
+ IMLFeatureProvider? ret;
+ ret = Runtime.GetINativeObject<IMLFeatureProvider> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr_IntPtr_ref_IntPtr (This.Handle, Selector.GetHandle ("predictionFromFeatures:usingState:options:error:"), inputFeatures__handle__, state__handle__, options__handle__, &errorValue), false)!;
+ error = Runtime.GetNSObject<NSError> (errorValue)!;
+ return ret!;
+ }
+ [Export ("predictionFromFeatures:usingState:options:completionHandler:")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe static IMLFeatureProvider? GetPrediction (this MLModel This, IMLFeatureProvider inputFeatures, MLState state, MLPredictionOptions options, [BlockProxy (typeof (ObjCRuntime.Trampolines.NIDMLStateGetPredictionCompletionHandler))]MLStateGetPredictionCompletionHandler completionHandler)
+ {
+ var inputFeatures__handle__ = inputFeatures!.GetNonNullHandle (nameof (inputFeatures));
+ var state__handle__ = state!.GetNonNullHandle (nameof (state));
+ var options__handle__ = options!.GetNonNullHandle (nameof (options));
+ if (completionHandler is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (completionHandler));
+ using var block_completionHandler = Trampolines.SDMLStateGetPredictionCompletionHandler.CreateBlock (completionHandler);
+ BlockLiteral *block_ptr_completionHandler = &block_completionHandler;
+ return Runtime.GetINativeObject<IMLFeatureProvider> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr_IntPtr_IntPtr (This.Handle, Selector.GetHandle ("predictionFromFeatures:usingState:options:completionHandler:"), inputFeatures__handle__, state__handle__, options__handle__, (IntPtr) block_ptr_completionHandler), false)!;
+ }
+ } /* class MLModel_MLState */
+}
diff --git a/old/tvos/tvos/CoreML/MLMultiArray.g.cs b/new/tvos/tvos/CoreML/MLMultiArray.g.cs
index 9b5a4cc..9430a71 100644
--- a/old/tvos/tvos/CoreML/MLMultiArray.g.cs
+++ b/new/tvos/tvos/CoreML/MLMultiArray.g.cs
@@ -155,6 +155,30 @@ namespace CoreML {
nsa_shape.Dispose ();
error = Runtime.GetNSObject<NSError> (errorValue)!;
}
+ [Export ("initWithShape:dataType:strides:")]
+ [Introduced (PlatformName.iOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.TvOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.WatchOS, 11,0, ObjCRuntime.PlatformArchitecture.All)]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public MLMultiArray (NSNumber[] shape, MLMultiArrayDataType dataType, NSNumber[] strides)
+ : base (NSObjectFlag.Empty)
+ {
+ if (shape is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (shape));
+ if (strides is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (strides));
+ var nsa_shape = NSArray.FromNSObjects (shape);
+ var nsa_strides = NSArray.FromNSObjects (strides);
+ if (IsDirectBinding) {
+ InitializeHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr_IntPtr (this.Handle, Selector.GetHandle ("initWithShape:dataType:strides:"), nsa_shape.Handle, (IntPtr) (long) dataType, nsa_strides.Handle), "initWithShape:dataType:strides:");
+ } else {
+ InitializeHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr_IntPtr (this.SuperHandle, Selector.GetHandle ("initWithShape:dataType:strides:"), nsa_shape.Handle, (IntPtr) (long) dataType, nsa_strides.Handle), "initWithShape:dataType:strides:");
+ }
+ nsa_shape.Dispose ();
+ nsa_strides.Dispose ();
+ }
[Export ("initWithDataPointer:shape:dataType:strides:deallocator:error:")]
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public unsafe MLMultiArray (global::System.IntPtr dataPointer, NSNumber[] shape, MLMultiArrayDataType dataType, NSNumber[] strides, [BlockProxy (typeof (ObjCRuntime.Trampolines.NIDActionArity1V22))]global::System.Action<global::System.IntPtr>? deallocator, out NSError error)
@@ -358,6 +382,22 @@ namespace CoreML {
var obj__handle__ = obj!.GetNonNullHandle (nameof (obj));
global::ObjCRuntime.Messaging.void_objc_msgSend_IntPtr_IntPtr (this.Handle, Selector.GetHandle ("setObject:forKeyedSubscript:"), obj__handle__, key);
}
+ [Export ("transferToMultiArray:")]
+ [Introduced (PlatformName.iOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.TvOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.WatchOS, 11,0, ObjCRuntime.PlatformArchitecture.All)]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual void TransferToMultiArray (MLMultiArray destinationMultiArray)
+ {
+ var destinationMultiArray__handle__ = destinationMultiArray!.GetNonNullHandle (nameof (destinationMultiArray));
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_IntPtr (this.Handle, Selector.GetHandle ("transferToMultiArray:"), destinationMultiArray__handle__);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr (this.SuperHandle, Selector.GetHandle ("transferToMultiArray:"), destinationMultiArray__handle__);
+ }
+ }
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public virtual nint Count {
[Export ("count")]
diff --git a/old/tvos/tvos/CoreML/MLMultiArrayDataType.g.cs b/new/tvos/tvos/CoreML/MLMultiArrayDataType.g.cs
index e2a9347..3203340 100644
--- a/old/tvos/tvos/CoreML/MLMultiArrayDataType.g.cs
+++ b/new/tvos/tvos/CoreML/MLMultiArrayDataType.g.cs
@@ -46,6 +46,12 @@ namespace CoreML {
Double = 65600,
Float64 = 65600,
Float32 = 65568,
+ [Introduced (PlatformName.MacOSX, 12,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.WatchOS, 9,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.TvOS, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ Float16 = 65552,
Float = 65568,
Int32 = 131104,
}
diff --git a/old/tvos/tvos/CoreML/MLOptimizationHints.g.cs b/new/tvos/tvos/CoreML/MLOptimizationHints.g.cs
index a10de6a..8193acc 100644
--- a/old/tvos/tvos/CoreML/MLOptimizationHints.g.cs
+++ b/new/tvos/tvos/CoreML/MLOptimizationHints.g.cs
@@ -203,5 +203,41 @@ namespace CoreML {
}
}
}
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [Introduced (PlatformName.WatchOS, 11,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.TvOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ public virtual MLSpecializationStrategy SpecializationStrategy {
+ [Introduced (PlatformName.WatchOS, 11,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.TvOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Export ("specializationStrategy", ArgumentSemantic.UnsafeUnretained)]
+ get {
+ MLSpecializationStrategy ret;
+ if (IsDirectBinding) {
+ ret = (MLSpecializationStrategy) (long) global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, Selector.GetHandle ("specializationStrategy"));
+ } else {
+ ret = (MLSpecializationStrategy) (long) global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, Selector.GetHandle ("specializationStrategy"));
+ }
+ return ret!;
+ }
+ [Introduced (PlatformName.WatchOS, 11,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.TvOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Export ("setSpecializationStrategy:", ArgumentSemantic.UnsafeUnretained)]
+ set {
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_IntPtr (this.Handle, Selector.GetHandle ("setSpecializationStrategy:"), (IntPtr) (long) value);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr (this.SuperHandle, Selector.GetHandle ("setSpecializationStrategy:"), (IntPtr) (long) value);
+ }
+ }
+ }
} /* class MLOptimizationHints */
}
diff --git a/new/tvos/tvos/CoreML/MLSpecializationStrategy.g.cs b/new/tvos/tvos/CoreML/MLSpecializationStrategy.g.cs
new file mode 100644
index 0000000..d416d1b
--- /dev/null
+++ b/new/tvos/tvos/CoreML/MLSpecializationStrategy.g.cs
@@ -0,0 +1,53 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Drawing;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using UIKit;
+using GLKit;
+using Metal;
+using CoreML;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Security;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using ObjCRuntime;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace CoreML {
+ [Introduced (PlatformName.WatchOS, 11,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.TvOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Native]
+ public enum MLSpecializationStrategy : long {
+ Default = 0,
+ FastPrediction = 1,
+ }
+}
diff --git a/new/tvos/tvos/CoreML/MLState.g.cs b/new/tvos/tvos/CoreML/MLState.g.cs
new file mode 100644
index 0000000..f38c4d0
--- /dev/null
+++ b/new/tvos/tvos/CoreML/MLState.g.cs
@@ -0,0 +1,144 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Drawing;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using UIKit;
+using GLKit;
+using Metal;
+using CoreML;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Security;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using ObjCRuntime;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace CoreML {
+ [Register("MLState", true)]
+ [Introduced (PlatformName.WatchOS, 11,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.TvOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ public unsafe partial class MLState : NSObject {
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ static readonly IntPtr class_ptr = Class.GetHandle ("MLState");
+ /// <summary>The Objective-C class handle for this class.</summary>
+ /// <value>The pointer to the Objective-C class.</value>
+ /// <remarks>
+ /// Each managed class mirrors an unmanaged Objective-C class.
+ /// This value contains the pointer to the Objective-C class.
+ /// It is similar to calling the managed <see cref="ObjCRuntime.Class.GetHandle(string)" /> or the native <see href="https://developer.apple.com/documentation/objectivec/1418952-objc_getclass">objc_getClass</see> method with the type name.
+ /// </remarks>
+ public override IntPtr ClassHandle { get { return class_ptr; } }
+ /// <summary>Constructor to call on derived classes to skip initialization and merely allocate the object.</summary>
+ /// <param name="t">Unused sentinel value, pass NSObjectFlag.Empty.</param>
+ /// <remarks>
+ /// <para>
+ /// This constructor should be called by derived classes when they completely construct the object in managed code and merely want the runtime to allocate and initialize the <see cref="Foundation.NSObject" />.
+ /// This is required to implement the two-step initialization process that Objective-C uses, the first step is to perform the object allocation, the second step is to initialize the object.
+ /// When developers invoke this constructor, they take advantage of a direct path that goes all the way up to <see cref="Foundation.NSObject" /> to merely allocate the object's memory and bind the Objective-C and C# objects together.
+ /// The actual initialization of the object is up to the developer.
+ /// </para>
+ /// <para>
+ /// This constructor is typically used by the binding generator to allocate the object, but prevent the actual initialization to take place.
+ /// Once the allocation has taken place, the constructor has to initialize the object.
+ /// With constructors generated by the binding generator this means that it manually invokes one of the "init" methods to initialize the object.
+ /// </para>
+ /// <para>It is the developer's responsibility to completely initialize the object if they chain up using this constructor chain.</para>
+ /// <para>
+ /// In general, if the developer's constructor invokes the corresponding base implementation, then it should also call an Objective-C init method.
+ /// If this is not the case, developers should instead chain to the proper constructor in their class.
+ /// </para>
+ /// <para>
+ /// The argument value is ignored and merely ensures that the only code that is executed is the construction phase is the basic <see cref="Foundation.NSObject" /> allocation and runtime type registration.
+ /// Typically the chaining would look like this:
+ /// </para>
+ /// <example>
+ /// <code lang="csharp lang-csharp"><![CDATA[
+ /// //
+ /// // The NSObjectFlag constructor merely allocates the object and registers the C# class with the Objective-C runtime if necessary.
+ /// // No actual initXxx method is invoked, that is done later in the constructor
+ /// //
+ /// // This is taken from the iOS SDK's source code for the UIView class:
+ /// //
+ /// [Export ("initWithFrame:")]
+ /// public UIView (System.Drawing.RectangleF frame) : base (NSObjectFlag.Empty)
+ /// {
+ /// // Invoke the init method now.
+ /// var initWithFrame = new Selector ("initWithFrame:").Handle;
+ /// if (IsDirectBinding) {
+ /// Handle = ObjCRuntime.Messaging.IntPtr_objc_msgSend_CGRect (this.Handle, initWithFrame, frame);
+ /// } else {
+ /// Handle = ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper_CGRect (this.SuperHandle, initWithFrame, frame);
+ /// }
+ /// }
+ /// ]]></code>
+ /// </example>
+ /// </remarks>
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected MLState (NSObjectFlag t) : base (t)
+ {
+ }
+
+ /// <summary>A constructor used when creating managed representations of unmanaged objects. Called by the runtime.</summary>
+ /// <param name="handle">Pointer (handle) to the unmanaged object.</param>
+ /// <remarks>
+ /// <para>
+ /// This constructor is invoked by the runtime infrastructure (<see cref="ObjCRuntime.Runtime.GetNSObject(System.IntPtr)" />) to create a new managed representation for a pointer to an unmanaged Objective-C object.
+ /// Developers should not invoke this method directly, instead they should call <see cref="ObjCRuntime.Runtime.GetNSObject(System.IntPtr)" /> as it will prevent two instances of a managed object pointing to the same native object.
+ /// </para>
+ /// </remarks>
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected internal MLState (IntPtr handle) : base (handle)
+ {
+ }
+
+ [Export ("getMultiArrayForStateNamed:handler:")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual void GetMultiArrayForState (string stateName, [BlockProxy (typeof (ObjCRuntime.Trampolines.NIDMLStateGetMultiArrayForStateHandler))]MLStateGetMultiArrayForStateHandler handler)
+ {
+ if (stateName is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (stateName));
+ if (handler is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (handler));
+ var nsstateName = CFString.CreateNative (stateName);
+ using var block_handler = Trampolines.SDMLStateGetMultiArrayForStateHandler.CreateBlock (handler);
+ BlockLiteral *block_ptr_handler = &block_handler;
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_IntPtr_IntPtr (this.Handle, Selector.GetHandle ("getMultiArrayForStateNamed:handler:"), nsstateName, (IntPtr) block_ptr_handler);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr_IntPtr (this.SuperHandle, Selector.GetHandle ("getMultiArrayForStateNamed:handler:"), nsstateName, (IntPtr) block_ptr_handler);
+ }
+ CFString.ReleaseNative (nsstateName);
+ }
+ } /* class MLState */
+}
diff --git a/new/tvos/tvos/CoreML/MLStateConstraint.g.cs b/new/tvos/tvos/CoreML/MLStateConstraint.g.cs
new file mode 100644
index 0000000..a42e1e6
--- /dev/null
+++ b/new/tvos/tvos/CoreML/MLStateConstraint.g.cs
@@ -0,0 +1,183 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Drawing;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using UIKit;
+using GLKit;
+using Metal;
+using CoreML;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Security;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using ObjCRuntime;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace CoreML {
+ [Register("MLStateConstraint", true)]
+ [Introduced (PlatformName.WatchOS, 11,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.TvOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ public unsafe partial class MLStateConstraint : NSObject, INSCoding, INSSecureCoding {
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ static readonly IntPtr class_ptr = Class.GetHandle ("MLStateConstraint");
+ /// <summary>The Objective-C class handle for this class.</summary>
+ /// <value>The pointer to the Objective-C class.</value>
+ /// <remarks>
+ /// Each managed class mirrors an unmanaged Objective-C class.
+ /// This value contains the pointer to the Objective-C class.
+ /// It is similar to calling the managed <see cref="ObjCRuntime.Class.GetHandle(string)" /> or the native <see href="https://developer.apple.com/documentation/objectivec/1418952-objc_getclass">objc_getClass</see> method with the type name.
+ /// </remarks>
+ public override IntPtr ClassHandle { get { return class_ptr; } }
+ /// <summary>A constructor that initializes the object from the data stored in the unarchiver object.</summary>
+ /// <param name="coder">The unarchiver object.</param>
+ /// <remarks>
+ /// <para>This constructor is provided to allow the class to be initialized from an unarchiver (for example, during NIB deserialization). This is part of the <see cref="Foundation.NSCoding" /> protocol.</para>
+ /// <para>If developers want to create a subclass of this object and continue to support deserialization from an archive, they should implement a constructor with an identical signature: taking a single parameter of type <see cref="Foundation.NSCoder" /> and decorate it with the <c>[Export("initWithCoder:"]</c> attribute.</para>
+ /// <para>The state of this object can also be serialized by using the <see cref="Foundation.INSCoding.EncodeTo" /> companion method.</para>
+ /// </remarks>
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [DesignatedInitializer]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ [Export ("initWithCoder:")]
+ public MLStateConstraint (NSCoder coder) : base (NSObjectFlag.Empty)
+ {
+ if (IsDirectBinding) {
+ InitializeHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend_IntPtr (this.Handle, Selector.GetHandle ("initWithCoder:"), coder.Handle), "initWithCoder:");
+ } else {
+ InitializeHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper_IntPtr (this.SuperHandle, Selector.GetHandle ("initWithCoder:"), coder.Handle), "initWithCoder:");
+ }
+ }
+
+ /// <summary>Constructor to call on derived classes to skip initialization and merely allocate the object.</summary>
+ /// <param name="t">Unused sentinel value, pass NSObjectFlag.Empty.</param>
+ /// <remarks>
+ /// <para>
+ /// This constructor should be called by derived classes when they completely construct the object in managed code and merely want the runtime to allocate and initialize the <see cref="Foundation.NSObject" />.
+ /// This is required to implement the two-step initialization process that Objective-C uses, the first step is to perform the object allocation, the second step is to initialize the object.
+ /// When developers invoke this constructor, they take advantage of a direct path that goes all the way up to <see cref="Foundation.NSObject" /> to merely allocate the object's memory and bind the Objective-C and C# objects together.
+ /// The actual initialization of the object is up to the developer.
+ /// </para>
+ /// <para>
+ /// This constructor is typically used by the binding generator to allocate the object, but prevent the actual initialization to take place.
+ /// Once the allocation has taken place, the constructor has to initialize the object.
+ /// With constructors generated by the binding generator this means that it manually invokes one of the "init" methods to initialize the object.
+ /// </para>
+ /// <para>It is the developer's responsibility to completely initialize the object if they chain up using this constructor chain.</para>
+ /// <para>
+ /// In general, if the developer's constructor invokes the corresponding base implementation, then it should also call an Objective-C init method.
+ /// If this is not the case, developers should instead chain to the proper constructor in their class.
+ /// </para>
+ /// <para>
+ /// The argument value is ignored and merely ensures that the only code that is executed is the construction phase is the basic <see cref="Foundation.NSObject" /> allocation and runtime type registration.
+ /// Typically the chaining would look like this:
+ /// </para>
+ /// <example>
+ /// <code lang="csharp lang-csharp"><![CDATA[
+ /// //
+ /// // The NSObjectFlag constructor merely allocates the object and registers the C# class with the Objective-C runtime if necessary.
+ /// // No actual initXxx method is invoked, that is done later in the constructor
+ /// //
+ /// // This is taken from the iOS SDK's source code for the UIView class:
+ /// //
+ /// [Export ("initWithFrame:")]
+ /// public UIView (System.Drawing.RectangleF frame) : base (NSObjectFlag.Empty)
+ /// {
+ /// // Invoke the init method now.
+ /// var initWithFrame = new Selector ("initWithFrame:").Handle;
+ /// if (IsDirectBinding) {
+ /// Handle = ObjCRuntime.Messaging.IntPtr_objc_msgSend_CGRect (this.Handle, initWithFrame, frame);
+ /// } else {
+ /// Handle = ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper_CGRect (this.SuperHandle, initWithFrame, frame);
+ /// }
+ /// }
+ /// ]]></code>
+ /// </example>
+ /// </remarks>
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected MLStateConstraint (NSObjectFlag t) : base (t)
+ {
+ }
+
+ /// <summary>A constructor used when creating managed representations of unmanaged objects. Called by the runtime.</summary>
+ /// <param name="handle">Pointer (handle) to the unmanaged object.</param>
+ /// <remarks>
+ /// <para>
+ /// This constructor is invoked by the runtime infrastructure (<see cref="ObjCRuntime.Runtime.GetNSObject(System.IntPtr)" />) to create a new managed representation for a pointer to an unmanaged Objective-C object.
+ /// Developers should not invoke this method directly, instead they should call <see cref="ObjCRuntime.Runtime.GetNSObject(System.IntPtr)" /> as it will prevent two instances of a managed object pointing to the same native object.
+ /// </para>
+ /// </remarks>
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected internal MLStateConstraint (IntPtr handle) : base (handle)
+ {
+ }
+
+ [Export ("encodeWithCoder:")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual void EncodeTo (NSCoder encoder)
+ {
+ var encoder__handle__ = encoder!.GetNonNullHandle (nameof (encoder));
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_IntPtr (this.Handle, Selector.GetHandle ("encodeWithCoder:"), encoder__handle__);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr (this.SuperHandle, Selector.GetHandle ("encodeWithCoder:"), encoder__handle__);
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual NSNumber[] BufferShape {
+ [Export ("bufferShape")]
+ get {
+ NSNumber[]? ret;
+ if (IsDirectBinding) {
+ ret = CFArray.ArrayFromHandle<NSNumber>(global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, Selector.GetHandle ("bufferShape")))!;
+ } else {
+ ret = CFArray.ArrayFromHandle<NSNumber>(global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, Selector.GetHandle ("bufferShape")))!;
+ }
+ return ret!;
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual MLMultiArrayDataType DataType {
+ [Export ("dataType")]
+ get {
+ MLMultiArrayDataType ret;
+ if (IsDirectBinding) {
+ ret = (MLMultiArrayDataType) (long) global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, Selector.GetHandle ("dataType"));
+ } else {
+ ret = (MLMultiArrayDataType) (long) global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, Selector.GetHandle ("dataType"));
+ }
+ return ret!;
+ }
+ }
+ } /* class MLStateConstraint */
+}
diff --git a/old/tvos/tvos/ObjCRuntime/Trampolines.g.cs b/new/tvos/tvos/ObjCRuntime/Trampolines.g.cs
index 88a00c6..165e153 100644
--- a/old/tvos/tvos/ObjCRuntime/Trampolines.g.cs
+++ b/new/tvos/tvos/ObjCRuntime/Trampolines.g.cs
@@ -3646,6 +3646,223 @@ namespace ObjCRuntime {
}
} /* class NIDCLServiceSessionCreateHandler */
[UnmanagedFunctionPointerAttribute (CallingConvention.Cdecl)]
+ [UserDelegateType (typeof (global::CoreML.MLModelAssetGetFunctionNamesCompletionHandler))]
+ unsafe internal delegate void DMLModelAssetGetFunctionNamesCompletionHandler (IntPtr block, IntPtr functionNames, IntPtr error);
+ //
+ // This class bridges native block invocations that call into C#
+ //
+ static internal class SDMLModelAssetGetFunctionNamesCompletionHandler {
+ unsafe static internal readonly DMLModelAssetGetFunctionNamesCompletionHandler Handler = Invoke;
+ [MonoPInvokeCallback (typeof (DMLModelAssetGetFunctionNamesCompletionHandler))]
+ [UserDelegateType (typeof (global::CoreML.MLModelAssetGetFunctionNamesCompletionHandler))]
+ internal static unsafe void Invoke (IntPtr block, IntPtr functionNames, IntPtr error) {
+ var del = BlockLiteral.GetTarget<global::CoreML.MLModelAssetGetFunctionNamesCompletionHandler> (block);
+ if (del is not null) {
+ del (CFArray.StringArrayFromHandle (functionNames)!, Runtime.GetNSObject<NSError> (error)!);
+ }
+ }
+ internal static unsafe BlockLiteral CreateNullableBlock (global::CoreML.MLModelAssetGetFunctionNamesCompletionHandler? callback)
+ {
+ if (callback is null)
+ return default (BlockLiteral);
+ return CreateBlock (callback);
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ internal static unsafe BlockLiteral CreateBlock (global::CoreML.MLModelAssetGetFunctionNamesCompletionHandler callback)
+ {
+ var block = new BlockLiteral ();
+ block.SetupBlockUnsafe (Handler, callback);
+ return block;
+ }
+ } /* class SDMLModelAssetGetFunctionNamesCompletionHandler */
+ internal sealed class NIDMLModelAssetGetFunctionNamesCompletionHandler : TrampolineBlockBase {
+ DMLModelAssetGetFunctionNamesCompletionHandler invoker;
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe NIDMLModelAssetGetFunctionNamesCompletionHandler (BlockLiteral *block) : base (block)
+ {
+ invoker = block->GetDelegateForBlock<DMLModelAssetGetFunctionNamesCompletionHandler> ();
+ }
+ [Preserve (Conditional=true)]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe static global::CoreML.MLModelAssetGetFunctionNamesCompletionHandler? Create (IntPtr block)
+ {
+ if (block == IntPtr.Zero)
+ return null;
+ var del = (global::CoreML.MLModelAssetGetFunctionNamesCompletionHandler) GetExistingManagedDelegate (block);
+ return del ?? new NIDMLModelAssetGetFunctionNamesCompletionHandler ((BlockLiteral *) block).Invoke;
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ unsafe void Invoke (string[]? functionNames, NSError? error)
+ {
+ var error__handle__ = error.GetHandle ();
+ var nsa_functionNames = functionNames is null ? null : NSArray.FromStrings (functionNames);
+ invoker (BlockPointer, nsa_functionNames.GetHandle (), error__handle__);
+ if (nsa_functionNames is not null)
+ nsa_functionNames.Dispose ();
+ }
+ } /* class NIDMLModelAssetGetFunctionNamesCompletionHandler */
+ [UnmanagedFunctionPointerAttribute (CallingConvention.Cdecl)]
+ [UserDelegateType (typeof (global::CoreML.MLModelAssetGetModelDescriptionCompletionHandler))]
+ unsafe internal delegate void DMLModelAssetGetModelDescriptionCompletionHandler (IntPtr block, IntPtr modelDescription, IntPtr error);
+ //
+ // This class bridges native block invocations that call into C#
+ //
+ static internal class SDMLModelAssetGetModelDescriptionCompletionHandler {
+ unsafe static internal readonly DMLModelAssetGetModelDescriptionCompletionHandler Handler = Invoke;
+ [MonoPInvokeCallback (typeof (DMLModelAssetGetModelDescriptionCompletionHandler))]
+ [UserDelegateType (typeof (global::CoreML.MLModelAssetGetModelDescriptionCompletionHandler))]
+ internal static unsafe void Invoke (IntPtr block, IntPtr modelDescription, IntPtr error) {
+ var del = BlockLiteral.GetTarget<global::CoreML.MLModelAssetGetModelDescriptionCompletionHandler> (block);
+ if (del is not null) {
+ del ( Runtime.GetNSObject<MLModelDescription> (modelDescription)!, Runtime.GetNSObject<NSError> (error)!);
+ }
+ }
+ internal static unsafe BlockLiteral CreateNullableBlock (global::CoreML.MLModelAssetGetModelDescriptionCompletionHandler? callback)
+ {
+ if (callback is null)
+ return default (BlockLiteral);
+ return CreateBlock (callback);
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ internal static unsafe BlockLiteral CreateBlock (global::CoreML.MLModelAssetGetModelDescriptionCompletionHandler callback)
+ {
+ var block = new BlockLiteral ();
+ block.SetupBlockUnsafe (Handler, callback);
+ return block;
+ }
+ } /* class SDMLModelAssetGetModelDescriptionCompletionHandler */
+ internal sealed class NIDMLModelAssetGetModelDescriptionCompletionHandler : TrampolineBlockBase {
+ DMLModelAssetGetModelDescriptionCompletionHandler invoker;
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe NIDMLModelAssetGetModelDescriptionCompletionHandler (BlockLiteral *block) : base (block)
+ {
+ invoker = block->GetDelegateForBlock<DMLModelAssetGetModelDescriptionCompletionHandler> ();
+ }
+ [Preserve (Conditional=true)]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe static global::CoreML.MLModelAssetGetModelDescriptionCompletionHandler? Create (IntPtr block)
+ {
+ if (block == IntPtr.Zero)
+ return null;
+ var del = (global::CoreML.MLModelAssetGetModelDescriptionCompletionHandler) GetExistingManagedDelegate (block);
+ return del ?? new NIDMLModelAssetGetModelDescriptionCompletionHandler ((BlockLiteral *) block).Invoke;
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ unsafe void Invoke (global::CoreML.MLModelDescription? modelDescription, NSError? error)
+ {
+ var modelDescription__handle__ = modelDescription.GetHandle ();
+ var error__handle__ = error.GetHandle ();
+ invoker (BlockPointer, modelDescription__handle__, error__handle__);
+ }
+ } /* class NIDMLModelAssetGetModelDescriptionCompletionHandler */
+ [UnmanagedFunctionPointerAttribute (CallingConvention.Cdecl)]
+ [UserDelegateType (typeof (global::CoreML.MLStateGetMultiArrayForStateHandler))]
+ unsafe internal delegate void DMLStateGetMultiArrayForStateHandler (IntPtr block, IntPtr buffer);
+ //
+ // This class bridges native block invocations that call into C#
+ //
+ static internal class SDMLStateGetMultiArrayForStateHandler {
+ unsafe static internal readonly DMLStateGetMultiArrayForStateHandler Handler = Invoke;
+ [MonoPInvokeCallback (typeof (DMLStateGetMultiArrayForStateHandler))]
+ [UserDelegateType (typeof (global::CoreML.MLStateGetMultiArrayForStateHandler))]
+ internal static unsafe void Invoke (IntPtr block, IntPtr buffer) {
+ var del = BlockLiteral.GetTarget<global::CoreML.MLStateGetMultiArrayForStateHandler> (block);
+ if (del is not null) {
+ del ( Runtime.GetNSObject<MLMultiArray> (buffer)!);
+ }
+ }
+ internal static unsafe BlockLiteral CreateNullableBlock (global::CoreML.MLStateGetMultiArrayForStateHandler? callback)
+ {
+ if (callback is null)
+ return default (BlockLiteral);
+ return CreateBlock (callback);
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ internal static unsafe BlockLiteral CreateBlock (global::CoreML.MLStateGetMultiArrayForStateHandler callback)
+ {
+ var block = new BlockLiteral ();
+ block.SetupBlockUnsafe (Handler, callback);
+ return block;
+ }
+ } /* class SDMLStateGetMultiArrayForStateHandler */
+ internal sealed class NIDMLStateGetMultiArrayForStateHandler : TrampolineBlockBase {
+ DMLStateGetMultiArrayForStateHandler invoker;
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe NIDMLStateGetMultiArrayForStateHandler (BlockLiteral *block) : base (block)
+ {
+ invoker = block->GetDelegateForBlock<DMLStateGetMultiArrayForStateHandler> ();
+ }
+ [Preserve (Conditional=true)]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe static global::CoreML.MLStateGetMultiArrayForStateHandler? Create (IntPtr block)
+ {
+ if (block == IntPtr.Zero)
+ return null;
+ var del = (global::CoreML.MLStateGetMultiArrayForStateHandler) GetExistingManagedDelegate (block);
+ return del ?? new NIDMLStateGetMultiArrayForStateHandler ((BlockLiteral *) block).Invoke;
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ unsafe void Invoke (global::CoreML.MLMultiArray buffer)
+ {
+ var buffer__handle__ = buffer.GetHandle ();
+ invoker (BlockPointer, buffer__handle__);
+ }
+ } /* class NIDMLStateGetMultiArrayForStateHandler */
+ [UnmanagedFunctionPointerAttribute (CallingConvention.Cdecl)]
+ [UserDelegateType (typeof (global::CoreML.MLStateGetPredictionCompletionHandler))]
+ unsafe internal delegate void DMLStateGetPredictionCompletionHandler (IntPtr block, IntPtr output, IntPtr error);
+ //
+ // This class bridges native block invocations that call into C#
+ //
+ static internal class SDMLStateGetPredictionCompletionHandler {
+ unsafe static internal readonly DMLStateGetPredictionCompletionHandler Handler = Invoke;
+ [MonoPInvokeCallback (typeof (DMLStateGetPredictionCompletionHandler))]
+ [UserDelegateType (typeof (global::CoreML.MLStateGetPredictionCompletionHandler))]
+ internal static unsafe void Invoke (IntPtr block, IntPtr output, IntPtr error) {
+ var del = BlockLiteral.GetTarget<global::CoreML.MLStateGetPredictionCompletionHandler> (block);
+ if (del is not null) {
+ del ( Runtime.GetINativeObject<CoreML.IMLFeatureProvider> (output, false)!, Runtime.GetNSObject<NSError> (error)!);
+ }
+ }
+ internal static unsafe BlockLiteral CreateNullableBlock (global::CoreML.MLStateGetPredictionCompletionHandler? callback)
+ {
+ if (callback is null)
+ return default (BlockLiteral);
+ return CreateBlock (callback);
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ internal static unsafe BlockLiteral CreateBlock (global::CoreML.MLStateGetPredictionCompletionHandler callback)
+ {
+ var block = new BlockLiteral ();
+ block.SetupBlockUnsafe (Handler, callback);
+ return block;
+ }
+ } /* class SDMLStateGetPredictionCompletionHandler */
+ internal sealed class NIDMLStateGetPredictionCompletionHandler : TrampolineBlockBase {
+ DMLStateGetPredictionCompletionHandler invoker;
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe NIDMLStateGetPredictionCompletionHandler (BlockLiteral *block) : base (block)
+ {
+ invoker = block->GetDelegateForBlock<DMLStateGetPredictionCompletionHandler> ();
+ }
+ [Preserve (Conditional=true)]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe static global::CoreML.MLStateGetPredictionCompletionHandler? Create (IntPtr block)
+ {
+ if (block == IntPtr.Zero)
+ return null;
+ var del = (global::CoreML.MLStateGetPredictionCompletionHandler) GetExistingManagedDelegate (block);
+ return del ?? new NIDMLStateGetPredictionCompletionHandler ((BlockLiteral *) block).Invoke;
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ unsafe void Invoke (global::CoreML.IMLFeatureProvider? output, NSError error)
+ {
+ var output__handle__ = output.GetHandle ();
+ var error__handle__ = error.GetHandle ();
+ invoker (BlockPointer, output__handle__, error__handle__);
+ }
+ } /* class NIDMLStateGetPredictionCompletionHandler */
+ [UnmanagedFunctionPointerAttribute (CallingConvention.Cdecl)]
[UserDelegateType (typeof (global::DeviceCheck.DCDeviceGenerateTokenCompletionHandler))]
unsafe internal delegate void DDCDeviceGenerateTokenCompletionHandler (IntPtr block, IntPtr token, IntPtr error);
//
diff --git a/old/tvos/tvos/SupportDelegates.g.cs b/new/tvos/tvos/SupportDelegates.g.cs
index 3619c87..b0d5e3d 100644
--- a/old/tvos/tvos/SupportDelegates.g.cs
+++ b/new/tvos/tvos/SupportDelegates.g.cs
@@ -142,6 +142,13 @@ namespace CoreLocation {
public delegate void CLGeocodeCompletionHandler (CLPlacemark[] placemarks, NSError error);
public delegate void CLServiceSessionCreateHandler (CLServiceSessionDiagnostic diagnostic);
}
+namespace CoreML {
+ #nullable enable
+ public delegate void MLModelAssetGetFunctionNamesCompletionHandler (String[]? functionNames, NSError? error);
+ public delegate void MLModelAssetGetModelDescriptionCompletionHandler (MLModelDescription? modelDescription, NSError? error);
+ public delegate void MLStateGetMultiArrayForStateHandler (MLMultiArray buffer);
+ public delegate void MLStateGetPredictionCompletionHandler (IMLFeatureProvider? output, NSError error);
+}
namespace DeviceCheck {
#nullable enable
/// <param name="token">The generated token.</param><param name="error">The error that was encountered, or <see langword="null" /> if no error occurred.</param><summary>A completion handler for DeviceCheck token generation.</summary>
diff --git a/old/watch/watch/CoreML/MLFeatureDescription.g.cs b/new/watch/watch/CoreML/MLFeatureDescription.g.cs
index d362762..2b69be5 100644
--- a/old/watch/watch/CoreML/MLFeatureDescription.g.cs
+++ b/new/watch/watch/CoreML/MLFeatureDescription.g.cs
@@ -276,6 +276,29 @@ namespace CoreML {
}
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [Introduced (PlatformName.TvOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.WatchOS, 11,0, ObjCRuntime.PlatformArchitecture.All)]
+ public virtual MLStateConstraint? StateConstraint {
+ [Introduced (PlatformName.TvOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.WatchOS, 11,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Export ("stateConstraint")]
+ get {
+ MLStateConstraint? ret;
+ if (IsDirectBinding) {
+ ret = Runtime.GetNSObject<MLStateConstraint> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, Selector.GetHandle ("stateConstraint")))!;
+ } else {
+ ret = Runtime.GetNSObject<MLStateConstraint> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, Selector.GetHandle ("stateConstraint")))!;
+ }
+ return ret!;
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public virtual MLFeatureType Type {
[Export ("type")]
get {
diff --git a/old/watch/watch/CoreML/MLFeatureType.g.cs b/new/watch/watch/CoreML/MLFeatureType.g.cs
index e5f0658..e932e48 100644
--- a/old/watch/watch/CoreML/MLFeatureType.g.cs
+++ b/new/watch/watch/CoreML/MLFeatureType.g.cs
@@ -44,5 +44,11 @@ namespace CoreML {
[Introduced (PlatformName.TvOS, 12,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.iOS, 12,0, ObjCRuntime.PlatformArchitecture.All)]
Sequence = 7,
+ [Introduced (PlatformName.WatchOS, 11,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.TvOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ State = 8,
}
}
diff --git a/old/watch/watch/CoreML/MLModelAsset.g.cs b/new/watch/watch/CoreML/MLModelAsset.g.cs
index 6c73b4a..fc9a21e 100644
--- a/old/watch/watch/CoreML/MLModelAsset.g.cs
+++ b/new/watch/watch/CoreML/MLModelAsset.g.cs
@@ -112,5 +112,82 @@ namespace CoreML {
{
}
+ [Export ("modelAssetWithURL:error:")]
+ [Introduced (PlatformName.WatchOS, 11,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.TvOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe static MLModelAsset? Create (NSUrl compiledModelUrl, out NSError? error)
+ {
+ var compiledModelUrl__handle__ = compiledModelUrl!.GetNonNullHandle (nameof (compiledModelUrl));
+ IntPtr errorValue = IntPtr.Zero;
+ MLModelAsset? ret;
+ ret = Runtime.GetNSObject<MLModelAsset> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend_IntPtr_ref_IntPtr (class_ptr, Selector.GetHandle ("modelAssetWithURL:error:"), compiledModelUrl__handle__, &errorValue))!;
+ error = Runtime.GetNSObject<NSError> (errorValue)!;
+ return ret!;
+ }
+ [Export ("functionNamesWithCompletionHandler:")]
+ [Introduced (PlatformName.WatchOS, 11,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.TvOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual void GetFunctionNames ([BlockProxy (typeof (ObjCRuntime.Trampolines.NIDMLModelAssetGetFunctionNamesCompletionHandler))]MLModelAssetGetFunctionNamesCompletionHandler handler)
+ {
+ if (handler is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (handler));
+ using var block_handler = Trampolines.SDMLModelAssetGetFunctionNamesCompletionHandler.CreateBlock (handler);
+ BlockLiteral *block_ptr_handler = &block_handler;
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_IntPtr (this.Handle, Selector.GetHandle ("functionNamesWithCompletionHandler:"), (IntPtr) block_ptr_handler);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr (this.SuperHandle, Selector.GetHandle ("functionNamesWithCompletionHandler:"), (IntPtr) block_ptr_handler);
+ }
+ }
+ [Export ("modelDescriptionWithCompletionHandler:")]
+ [Introduced (PlatformName.WatchOS, 11,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.TvOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual void GetModelDescription ([BlockProxy (typeof (ObjCRuntime.Trampolines.NIDMLModelAssetGetModelDescriptionCompletionHandler))]MLModelAssetGetModelDescriptionCompletionHandler handler)
+ {
+ if (handler is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (handler));
+ using var block_handler = Trampolines.SDMLModelAssetGetModelDescriptionCompletionHandler.CreateBlock (handler);
+ BlockLiteral *block_ptr_handler = &block_handler;
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_IntPtr (this.Handle, Selector.GetHandle ("modelDescriptionWithCompletionHandler:"), (IntPtr) block_ptr_handler);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr (this.SuperHandle, Selector.GetHandle ("modelDescriptionWithCompletionHandler:"), (IntPtr) block_ptr_handler);
+ }
+ }
+ [Export ("modelDescriptionOfFunctionNamed:completionHandler:")]
+ [Introduced (PlatformName.WatchOS, 11,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.TvOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual void GetModelDescription (string functionName, [BlockProxy (typeof (ObjCRuntime.Trampolines.NIDMLModelAssetGetModelDescriptionCompletionHandler))]MLModelAssetGetModelDescriptionCompletionHandler handler)
+ {
+ if (functionName is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (functionName));
+ if (handler is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (handler));
+ var nsfunctionName = CFString.CreateNative (functionName);
+ using var block_handler = Trampolines.SDMLModelAssetGetModelDescriptionCompletionHandler.CreateBlock (handler);
+ BlockLiteral *block_ptr_handler = &block_handler;
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_IntPtr_IntPtr (this.Handle, Selector.GetHandle ("modelDescriptionOfFunctionNamed:completionHandler:"), nsfunctionName, (IntPtr) block_ptr_handler);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr_IntPtr (this.SuperHandle, Selector.GetHandle ("modelDescriptionOfFunctionNamed:completionHandler:"), nsfunctionName, (IntPtr) block_ptr_handler);
+ }
+ CFString.ReleaseNative (nsfunctionName);
+ }
} /* class MLModelAsset */
}
diff --git a/old/watch/watch/CoreML/MLModelConfiguration.g.cs b/new/watch/watch/CoreML/MLModelConfiguration.g.cs
index d39f454..3933bf5 100644
--- a/old/watch/watch/CoreML/MLModelConfiguration.g.cs
+++ b/new/watch/watch/CoreML/MLModelConfiguration.g.cs
@@ -192,6 +192,42 @@ namespace CoreML {
}
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [Introduced (PlatformName.WatchOS, 11,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.TvOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ public virtual string? FunctionName {
+ [Introduced (PlatformName.WatchOS, 11,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.TvOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Export ("functionName", ArgumentSemantic.Copy)]
+ get {
+ if (IsDirectBinding) {
+ return CFString.FromHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, Selector.GetHandle ("functionName")))!;
+ } else {
+ return CFString.FromHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, Selector.GetHandle ("functionName")))!;
+ }
+ }
+ [Introduced (PlatformName.WatchOS, 11,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.TvOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Export ("setFunctionName:", ArgumentSemantic.Copy)]
+ set {
+ var nsvalue = CFString.CreateNative (value);
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_IntPtr (this.Handle, Selector.GetHandle ("setFunctionName:"), nsvalue);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr (this.SuperHandle, Selector.GetHandle ("setFunctionName:"), nsvalue);
+ }
+ CFString.ReleaseNative (nsvalue);
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
[Introduced (PlatformName.WatchOS, 9,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.TvOS, 16,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.MacOSX, 13,0, ObjCRuntime.PlatformArchitecture.All)]
diff --git a/old/watch/watch/CoreML/MLModelDescription.g.cs b/new/watch/watch/CoreML/MLModelDescription.g.cs
index 247a0b5..0cec553 100644
--- a/old/watch/watch/CoreML/MLModelDescription.g.cs
+++ b/new/watch/watch/CoreML/MLModelDescription.g.cs
@@ -269,6 +269,29 @@ namespace CoreML {
}
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [Introduced (PlatformName.WatchOS, 11,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.TvOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ public virtual NSDictionary<NSString, MLFeatureDescription> StateDescriptionsByName {
+ [Introduced (PlatformName.WatchOS, 11,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.TvOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Export ("stateDescriptionsByName")]
+ get {
+ NSDictionary<NSString, MLFeatureDescription>? ret;
+ if (IsDirectBinding) {
+ ret = Runtime.GetNSObject<NSDictionary<NSString, MLFeatureDescription>> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, Selector.GetHandle ("stateDescriptionsByName")))!;
+ } else {
+ ret = Runtime.GetNSObject<NSDictionary<NSString, MLFeatureDescription>> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, Selector.GetHandle ("stateDescriptionsByName")))!;
+ }
+ return ret!;
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
[Introduced (PlatformName.WatchOS, 6,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.TvOS, 13,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.iOS, 13,0, ObjCRuntime.PlatformArchitecture.All)]
diff --git a/new/watch/watch/CoreML/MLModel_MLState.g.cs b/new/watch/watch/CoreML/MLModel_MLState.g.cs
new file mode 100644
index 0000000..fa55a12
--- /dev/null
+++ b/new/watch/watch/CoreML/MLModel_MLState.g.cs
@@ -0,0 +1,91 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Drawing;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using UIKit;
+using CoreML;
+using Network;
+using SceneKit;
+using Contacts;
+using CoreVideo;
+using CoreMedia;
+using SpriteKit;
+using Foundation;
+using ObjCRuntime;
+using MediaPlayer;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using CoreFoundation;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace CoreML {
+ [Introduced (PlatformName.WatchOS, 11,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.TvOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ public unsafe static partial class MLModel_MLState {
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ static readonly IntPtr class_ptr = Class.GetHandle ("MLModel");
+ [Export ("newState")]
+ [return: ReleaseAttribute ()]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public static MLState CreateNewState (this MLModel This)
+ {
+ MLState? ret;
+ ret = Runtime.GetNSObject<MLState> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (This.Handle, Selector.GetHandle ("newState")))!;
+ if (ret is not null)
+ global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release"));
+ return ret!;
+ }
+ [Export ("predictionFromFeatures:usingState:error:")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe static IMLFeatureProvider? GetPrediction (this MLModel This, IMLFeatureProvider inputFeatures, MLState state, out NSError error)
+ {
+ var inputFeatures__handle__ = inputFeatures!.GetNonNullHandle (nameof (inputFeatures));
+ var state__handle__ = state!.GetNonNullHandle (nameof (state));
+ IntPtr errorValue = IntPtr.Zero;
+ IMLFeatureProvider? ret;
+ ret = Runtime.GetINativeObject<IMLFeatureProvider> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr_ref_IntPtr (This.Handle, Selector.GetHandle ("predictionFromFeatures:usingState:error:"), inputFeatures__handle__, state__handle__, &errorValue), false)!;
+ error = Runtime.GetNSObject<NSError> (errorValue)!;
+ return ret!;
+ }
+ [Export ("predictionFromFeatures:usingState:options:error:")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe static IMLFeatureProvider? GetPrediction (this MLModel This, IMLFeatureProvider inputFeatures, MLState state, MLPredictionOptions options, out NSError error)
+ {
+ var inputFeatures__handle__ = inputFeatures!.GetNonNullHandle (nameof (inputFeatures));
+ var state__handle__ = state!.GetNonNullHandle (nameof (state));
+ var options__handle__ = options!.GetNonNullHandle (nameof (options));
+ IntPtr errorValue = IntPtr.Zero;
+ IMLFeatureProvider? ret;
+ ret = Runtime.GetINativeObject<IMLFeatureProvider> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr_IntPtr_ref_IntPtr (This.Handle, Selector.GetHandle ("predictionFromFeatures:usingState:options:error:"), inputFeatures__handle__, state__handle__, options__handle__, &errorValue), false)!;
+ error = Runtime.GetNSObject<NSError> (errorValue)!;
+ return ret!;
+ }
+ [Export ("predictionFromFeatures:usingState:options:completionHandler:")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe static IMLFeatureProvider? GetPrediction (this MLModel This, IMLFeatureProvider inputFeatures, MLState state, MLPredictionOptions options, [BlockProxy (typeof (ObjCRuntime.Trampolines.NIDMLStateGetPredictionCompletionHandler))]MLStateGetPredictionCompletionHandler completionHandler)
+ {
+ var inputFeatures__handle__ = inputFeatures!.GetNonNullHandle (nameof (inputFeatures));
+ var state__handle__ = state!.GetNonNullHandle (nameof (state));
+ var options__handle__ = options!.GetNonNullHandle (nameof (options));
+ if (completionHandler is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (completionHandler));
+ using var block_completionHandler = Trampolines.SDMLStateGetPredictionCompletionHandler.CreateBlock (completionHandler);
+ BlockLiteral *block_ptr_completionHandler = &block_completionHandler;
+ return Runtime.GetINativeObject<IMLFeatureProvider> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr_IntPtr_IntPtr (This.Handle, Selector.GetHandle ("predictionFromFeatures:usingState:options:completionHandler:"), inputFeatures__handle__, state__handle__, options__handle__, (IntPtr) block_ptr_completionHandler), false)!;
+ }
+ } /* class MLModel_MLState */
+}
diff --git a/old/watch/watch/CoreML/MLMultiArray.g.cs b/new/watch/watch/CoreML/MLMultiArray.g.cs
index 6437112..83ab739 100644
--- a/old/watch/watch/CoreML/MLMultiArray.g.cs
+++ b/new/watch/watch/CoreML/MLMultiArray.g.cs
@@ -145,6 +145,30 @@ namespace CoreML {
nsa_shape.Dispose ();
error = Runtime.GetNSObject<NSError> (errorValue)!;
}
+ [Export ("initWithShape:dataType:strides:")]
+ [Introduced (PlatformName.iOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.TvOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.WatchOS, 11,0, ObjCRuntime.PlatformArchitecture.All)]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public MLMultiArray (NSNumber[] shape, MLMultiArrayDataType dataType, NSNumber[] strides)
+ : base (NSObjectFlag.Empty)
+ {
+ if (shape is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (shape));
+ if (strides is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (strides));
+ var nsa_shape = NSArray.FromNSObjects (shape);
+ var nsa_strides = NSArray.FromNSObjects (strides);
+ if (IsDirectBinding) {
+ InitializeHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr_IntPtr (this.Handle, Selector.GetHandle ("initWithShape:dataType:strides:"), nsa_shape.Handle, (IntPtr) (long) dataType, nsa_strides.Handle), "initWithShape:dataType:strides:");
+ } else {
+ InitializeHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr_IntPtr (this.SuperHandle, Selector.GetHandle ("initWithShape:dataType:strides:"), nsa_shape.Handle, (IntPtr) (long) dataType, nsa_strides.Handle), "initWithShape:dataType:strides:");
+ }
+ nsa_shape.Dispose ();
+ nsa_strides.Dispose ();
+ }
[Export ("initWithDataPointer:shape:dataType:strides:deallocator:error:")]
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public unsafe MLMultiArray (global::System.IntPtr dataPointer, NSNumber[] shape, MLMultiArrayDataType dataType, NSNumber[] strides, [BlockProxy (typeof (ObjCRuntime.Trampolines.NIDActionArity1V25))]global::System.Action<global::System.IntPtr>? deallocator, out NSError error)
@@ -348,6 +372,22 @@ namespace CoreML {
var obj__handle__ = obj!.GetNonNullHandle (nameof (obj));
global::ObjCRuntime.Messaging.void_objc_msgSend_IntPtr_IntPtr (this.Handle, Selector.GetHandle ("setObject:forKeyedSubscript:"), obj__handle__, key);
}
+ [Export ("transferToMultiArray:")]
+ [Introduced (PlatformName.iOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.TvOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.WatchOS, 11,0, ObjCRuntime.PlatformArchitecture.All)]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual void TransferToMultiArray (MLMultiArray destinationMultiArray)
+ {
+ var destinationMultiArray__handle__ = destinationMultiArray!.GetNonNullHandle (nameof (destinationMultiArray));
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_IntPtr (this.Handle, Selector.GetHandle ("transferToMultiArray:"), destinationMultiArray__handle__);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr (this.SuperHandle, Selector.GetHandle ("transferToMultiArray:"), destinationMultiArray__handle__);
+ }
+ }
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public virtual nint Count {
[Export ("count")]
diff --git a/old/watch/watch/CoreML/MLMultiArrayDataType.g.cs b/new/watch/watch/CoreML/MLMultiArrayDataType.g.cs
index 85f8bae..3fb59ba 100644
--- a/old/watch/watch/CoreML/MLMultiArrayDataType.g.cs
+++ b/new/watch/watch/CoreML/MLMultiArrayDataType.g.cs
@@ -36,6 +36,12 @@ namespace CoreML {
Double = 65600,
Float64 = 65600,
Float32 = 65568,
+ [Introduced (PlatformName.MacOSX, 12,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.WatchOS, 9,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.TvOS, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ Float16 = 65552,
Float = 65568,
Int32 = 131104,
}
diff --git a/old/watch/watch/CoreML/MLOptimizationHints.g.cs b/new/watch/watch/CoreML/MLOptimizationHints.g.cs
index 05bc691..283a4cb 100644
--- a/old/watch/watch/CoreML/MLOptimizationHints.g.cs
+++ b/new/watch/watch/CoreML/MLOptimizationHints.g.cs
@@ -193,5 +193,41 @@ namespace CoreML {
}
}
}
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [Introduced (PlatformName.WatchOS, 11,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.TvOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ public virtual MLSpecializationStrategy SpecializationStrategy {
+ [Introduced (PlatformName.WatchOS, 11,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.TvOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Export ("specializationStrategy", ArgumentSemantic.UnsafeUnretained)]
+ get {
+ MLSpecializationStrategy ret;
+ if (IsDirectBinding) {
+ ret = (MLSpecializationStrategy) (long) global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, Selector.GetHandle ("specializationStrategy"));
+ } else {
+ ret = (MLSpecializationStrategy) (long) global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, Selector.GetHandle ("specializationStrategy"));
+ }
+ return ret!;
+ }
+ [Introduced (PlatformName.WatchOS, 11,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.TvOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Export ("setSpecializationStrategy:", ArgumentSemantic.UnsafeUnretained)]
+ set {
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_IntPtr (this.Handle, Selector.GetHandle ("setSpecializationStrategy:"), (IntPtr) (long) value);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr (this.SuperHandle, Selector.GetHandle ("setSpecializationStrategy:"), (IntPtr) (long) value);
+ }
+ }
+ }
} /* class MLOptimizationHints */
}
diff --git a/new/watch/watch/CoreML/MLSpecializationStrategy.g.cs b/new/watch/watch/CoreML/MLSpecializationStrategy.g.cs
new file mode 100644
index 0000000..5839ec3
--- /dev/null
+++ b/new/watch/watch/CoreML/MLSpecializationStrategy.g.cs
@@ -0,0 +1,43 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Drawing;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using UIKit;
+using CoreML;
+using Network;
+using SceneKit;
+using Contacts;
+using CoreVideo;
+using CoreMedia;
+using SpriteKit;
+using Foundation;
+using ObjCRuntime;
+using MediaPlayer;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using CoreFoundation;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace CoreML {
+ [Introduced (PlatformName.WatchOS, 11,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.TvOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Native]
+ public enum MLSpecializationStrategy : long {
+ Default = 0,
+ FastPrediction = 1,
+ }
+}
diff --git a/new/watch/watch/CoreML/MLState.g.cs b/new/watch/watch/CoreML/MLState.g.cs
new file mode 100644
index 0000000..3cb7ddc
--- /dev/null
+++ b/new/watch/watch/CoreML/MLState.g.cs
@@ -0,0 +1,134 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Drawing;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using UIKit;
+using CoreML;
+using Network;
+using SceneKit;
+using Contacts;
+using CoreVideo;
+using CoreMedia;
+using SpriteKit;
+using Foundation;
+using ObjCRuntime;
+using MediaPlayer;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using CoreFoundation;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace CoreML {
+ [Register("MLState", true)]
+ [Introduced (PlatformName.WatchOS, 11,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.TvOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ public unsafe partial class MLState : NSObject {
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ static readonly IntPtr class_ptr = Class.GetHandle ("MLState");
+ /// <summary>The Objective-C class handle for this class.</summary>
+ /// <value>The pointer to the Objective-C class.</value>
+ /// <remarks>
+ /// Each managed class mirrors an unmanaged Objective-C class.
+ /// This value contains the pointer to the Objective-C class.
+ /// It is similar to calling the managed <see cref="ObjCRuntime.Class.GetHandle(string)" /> or the native <see href="https://developer.apple.com/documentation/objectivec/1418952-objc_getclass">objc_getClass</see> method with the type name.
+ /// </remarks>
+ public override IntPtr ClassHandle { get { return class_ptr; } }
+ /// <summary>Constructor to call on derived classes to skip initialization and merely allocate the object.</summary>
+ /// <param name="t">Unused sentinel value, pass NSObjectFlag.Empty.</param>
+ /// <remarks>
+ /// <para>
+ /// This constructor should be called by derived classes when they completely construct the object in managed code and merely want the runtime to allocate and initialize the <see cref="Foundation.NSObject" />.
+ /// This is required to implement the two-step initialization process that Objective-C uses, the first step is to perform the object allocation, the second step is to initialize the object.
+ /// When developers invoke this constructor, they take advantage of a direct path that goes all the way up to <see cref="Foundation.NSObject" /> to merely allocate the object's memory and bind the Objective-C and C# objects together.
+ /// The actual initialization of the object is up to the developer.
+ /// </para>
+ /// <para>
+ /// This constructor is typically used by the binding generator to allocate the object, but prevent the actual initialization to take place.
+ /// Once the allocation has taken place, the constructor has to initialize the object.
+ /// With constructors generated by the binding generator this means that it manually invokes one of the "init" methods to initialize the object.
+ /// </para>
+ /// <para>It is the developer's responsibility to completely initialize the object if they chain up using this constructor chain.</para>
+ /// <para>
+ /// In general, if the developer's constructor invokes the corresponding base implementation, then it should also call an Objective-C init method.
+ /// If this is not the case, developers should instead chain to the proper constructor in their class.
+ /// </para>
+ /// <para>
+ /// The argument value is ignored and merely ensures that the only code that is executed is the construction phase is the basic <see cref="Foundation.NSObject" /> allocation and runtime type registration.
+ /// Typically the chaining would look like this:
+ /// </para>
+ /// <example>
+ /// <code lang="csharp lang-csharp"><![CDATA[
+ /// //
+ /// // The NSObjectFlag constructor merely allocates the object and registers the C# class with the Objective-C runtime if necessary.
+ /// // No actual initXxx method is invoked, that is done later in the constructor
+ /// //
+ /// // This is taken from the iOS SDK's source code for the UIView class:
+ /// //
+ /// [Export ("initWithFrame:")]
+ /// public UIView (System.Drawing.RectangleF frame) : base (NSObjectFlag.Empty)
+ /// {
+ /// // Invoke the init method now.
+ /// var initWithFrame = new Selector ("initWithFrame:").Handle;
+ /// if (IsDirectBinding) {
+ /// Handle = ObjCRuntime.Messaging.IntPtr_objc_msgSend_CGRect (this.Handle, initWithFrame, frame);
+ /// } else {
+ /// Handle = ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper_CGRect (this.SuperHandle, initWithFrame, frame);
+ /// }
+ /// }
+ /// ]]></code>
+ /// </example>
+ /// </remarks>
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected MLState (NSObjectFlag t) : base (t)
+ {
+ }
+
+ /// <summary>A constructor used when creating managed representations of unmanaged objects. Called by the runtime.</summary>
+ /// <param name="handle">Pointer (handle) to the unmanaged object.</param>
+ /// <remarks>
+ /// <para>
+ /// This constructor is invoked by the runtime infrastructure (<see cref="ObjCRuntime.Runtime.GetNSObject(System.IntPtr)" />) to create a new managed representation for a pointer to an unmanaged Objective-C object.
+ /// Developers should not invoke this method directly, instead they should call <see cref="ObjCRuntime.Runtime.GetNSObject(System.IntPtr)" /> as it will prevent two instances of a managed object pointing to the same native object.
+ /// </para>
+ /// </remarks>
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected internal MLState (IntPtr handle) : base (handle)
+ {
+ }
+
+ [Export ("getMultiArrayForStateNamed:handler:")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual void GetMultiArrayForState (string stateName, [BlockProxy (typeof (ObjCRuntime.Trampolines.NIDMLStateGetMultiArrayForStateHandler))]MLStateGetMultiArrayForStateHandler handler)
+ {
+ if (stateName is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (stateName));
+ if (handler is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (handler));
+ var nsstateName = CFString.CreateNative (stateName);
+ using var block_handler = Trampolines.SDMLStateGetMultiArrayForStateHandler.CreateBlock (handler);
+ BlockLiteral *block_ptr_handler = &block_handler;
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_IntPtr_IntPtr (this.Handle, Selector.GetHandle ("getMultiArrayForStateNamed:handler:"), nsstateName, (IntPtr) block_ptr_handler);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr_IntPtr (this.SuperHandle, Selector.GetHandle ("getMultiArrayForStateNamed:handler:"), nsstateName, (IntPtr) block_ptr_handler);
+ }
+ CFString.ReleaseNative (nsstateName);
+ }
+ } /* class MLState */
+}
diff --git a/new/watch/watch/CoreML/MLStateConstraint.g.cs b/new/watch/watch/CoreML/MLStateConstraint.g.cs
new file mode 100644
index 0000000..595ef0c
--- /dev/null
+++ b/new/watch/watch/CoreML/MLStateConstraint.g.cs
@@ -0,0 +1,173 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Drawing;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using UIKit;
+using CoreML;
+using Network;
+using SceneKit;
+using Contacts;
+using CoreVideo;
+using CoreMedia;
+using SpriteKit;
+using Foundation;
+using ObjCRuntime;
+using MediaPlayer;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using CoreFoundation;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace CoreML {
+ [Register("MLStateConstraint", true)]
+ [Introduced (PlatformName.WatchOS, 11,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.TvOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 15,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 18,0, ObjCRuntime.PlatformArchitecture.All)]
+ public unsafe partial class MLStateConstraint : NSObject, INSCoding, INSSecureCoding {
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ static readonly IntPtr class_ptr = Class.GetHandle ("MLStateConstraint");
+ /// <summary>The Objective-C class handle for this class.</summary>
+ /// <value>The pointer to the Objective-C class.</value>
+ /// <remarks>
+ /// Each managed class mirrors an unmanaged Objective-C class.
+ /// This value contains the pointer to the Objective-C class.
+ /// It is similar to calling the managed <see cref="ObjCRuntime.Class.GetHandle(string)" /> or the native <see href="https://developer.apple.com/documentation/objectivec/1418952-objc_getclass">objc_getClass</see> method with the type name.
+ /// </remarks>
+ public override IntPtr ClassHandle { get { return class_ptr; } }
+ /// <summary>A constructor that initializes the object from the data stored in the unarchiver object.</summary>
+ /// <param name="coder">The unarchiver object.</param>
+ /// <remarks>
+ /// <para>This constructor is provided to allow the class to be initialized from an unarchiver (for example, during NIB deserialization). This is part of the <see cref="Foundation.NSCoding" /> protocol.</para>
+ /// <para>If developers want to create a subclass of this object and continue to support deserialization from an archive, they should implement a constructor with an identical signature: taking a single parameter of type <see cref="Foundation.NSCoder" /> and decorate it with the <c>[Export("initWithCoder:"]</c> attribute.</para>
+ /// <para>The state of this object can also be serialized by using the <see cref="Foundation.INSCoding.EncodeTo" /> companion method.</para>
+ /// </remarks>
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [DesignatedInitializer]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ [Export ("initWithCoder:")]
+ public MLStateConstraint (NSCoder coder) : base (NSObjectFlag.Empty)
+ {
+ if (IsDirectBinding) {
+ InitializeHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend_IntPtr (this.Handle, Selector.GetHandle ("initWithCoder:"), coder.Handle), "initWithCoder:");
+ } else {
+ InitializeHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper_IntPtr (this.SuperHandle, Selector.GetHandle ("initWithCoder:"), coder.Handle), "initWithCoder:");
+ }
+ }
+
+ /// <summary>Constructor to call on derived classes to skip initialization and merely allocate the object.</summary>
+ /// <param name="t">Unused sentinel value, pass NSObjectFlag.Empty.</param>
+ /// <remarks>
+ /// <para>
+ /// This constructor should be called by derived classes when they completely construct the object in managed code and merely want the runtime to allocate and initialize the <see cref="Foundation.NSObject" />.
+ /// This is required to implement the two-step initialization process that Objective-C uses, the first step is to perform the object allocation, the second step is to initialize the object.
+ /// When developers invoke this constructor, they take advantage of a direct path that goes all the way up to <see cref="Foundation.NSObject" /> to merely allocate the object's memory and bind the Objective-C and C# objects together.
+ /// The actual initialization of the object is up to the developer.
+ /// </para>
+ /// <para>
+ /// This constructor is typically used by the binding generator to allocate the object, but prevent the actual initialization to take place.
+ /// Once the allocation has taken place, the constructor has to initialize the object.
+ /// With constructors generated by the binding generator this means that it manually invokes one of the "init" methods to initialize the object.
+ /// </para>
+ /// <para>It is the developer's responsibility to completely initialize the object if they chain up using this constructor chain.</para>
+ /// <para>
+ /// In general, if the developer's constructor invokes the corresponding base implementation, then it should also call an Objective-C init method.
+ /// If this is not the case, developers should instead chain to the proper constructor in their class.
+ /// </para>
+ /// <para>
+ /// The argument value is ignored and merely ensures that the only code that is executed is the construction phase is the basic <see cref="Foundation.NSObject" /> allocation and runtime type registration.
+ /// Typically the chaining would look like this:
+ /// </para>
+ /// <example>
+ /// <code lang="csharp lang-csharp"><![CDATA[
+ /// //
+ /// // The NSObjectFlag constructor merely allocates the object and registers the C# class with the Objective-C runtime if necessary.
+ /// // No actual initXxx method is invoked, that is done later in the constructor
+ /// //
+ /// // This is taken from the iOS SDK's source code for the UIView class:
+ /// //
+ /// [Export ("initWithFrame:")]
+ /// public UIView (System.Drawing.RectangleF frame) : base (NSObjectFlag.Empty)
+ /// {
+ /// // Invoke the init method now.
+ /// var initWithFrame = new Selector ("initWithFrame:").Handle;
+ /// if (IsDirectBinding) {
+ /// Handle = ObjCRuntime.Messaging.IntPtr_objc_msgSend_CGRect (this.Handle, initWithFrame, frame);
+ /// } else {
+ /// Handle = ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper_CGRect (this.SuperHandle, initWithFrame, frame);
+ /// }
+ /// }
+ /// ]]></code>
+ /// </example>
+ /// </remarks>
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected MLStateConstraint (NSObjectFlag t) : base (t)
+ {
+ }
+
+ /// <summary>A constructor used when creating managed representations of unmanaged objects. Called by the runtime.</summary>
+ /// <param name="handle">Pointer (handle) to the unmanaged object.</param>
+ /// <remarks>
+ /// <para>
+ /// This constructor is invoked by the runtime infrastructure (<see cref="ObjCRuntime.Runtime.GetNSObject(System.IntPtr)" />) to create a new managed representation for a pointer to an unmanaged Objective-C object.
+ /// Developers should not invoke this method directly, instead they should call <see cref="ObjCRuntime.Runtime.GetNSObject(System.IntPtr)" /> as it will prevent two instances of a managed object pointing to the same native object.
+ /// </para>
+ /// </remarks>
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected internal MLStateConstraint (IntPtr handle) : base (handle)
+ {
+ }
+
+ [Export ("encodeWithCoder:")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual void EncodeTo (NSCoder encoder)
+ {
+ var encoder__handle__ = encoder!.GetNonNullHandle (nameof (encoder));
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_IntPtr (this.Handle, Selector.GetHandle ("encodeWithCoder:"), encoder__handle__);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr (this.SuperHandle, Selector.GetHandle ("encodeWithCoder:"), encoder__handle__);
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual NSNumber[] BufferShape {
+ [Export ("bufferShape")]
+ get {
+ NSNumber[]? ret;
+ if (IsDirectBinding) {
+ ret = CFArray.ArrayFromHandle<NSNumber>(global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, Selector.GetHandle ("bufferShape")))!;
+ } else {
+ ret = CFArray.ArrayFromHandle<NSNumber>(global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, Selector.GetHandle ("bufferShape")))!;
+ }
+ return ret!;
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual MLMultiArrayDataType DataType {
+ [Export ("dataType")]
+ get {
+ MLMultiArrayDataType ret;
+ if (IsDirectBinding) {
+ ret = (MLMultiArrayDataType) (long) global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, Selector.GetHandle ("dataType"));
+ } else {
+ ret = (MLMultiArrayDataType) (long) global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, Selector.GetHandle ("dataType"));
+ }
+ return ret!;
+ }
+ }
+ } /* class MLStateConstraint */
+}
diff --git a/old/watch/watch/ObjCRuntime/Trampolines.g.cs b/new/watch/watch/ObjCRuntime/Trampolines.g.cs
index 3e474f7..e138ebf 100644
--- a/old/watch/watch/ObjCRuntime/Trampolines.g.cs
+++ b/new/watch/watch/ObjCRuntime/Trampolines.g.cs
@@ -2717,6 +2717,223 @@ namespace ObjCRuntime {
}
} /* class NIDRequestHistoricalLocationsCompletionHandler */
[UnmanagedFunctionPointerAttribute (CallingConvention.Cdecl)]
+ [UserDelegateType (typeof (global::CoreML.MLModelAssetGetFunctionNamesCompletionHandler))]
+ unsafe internal delegate void DMLModelAssetGetFunctionNamesCompletionHandler (IntPtr block, IntPtr functionNames, IntPtr error);
+ //
+ // This class bridges native block invocations that call into C#
+ //
+ static internal class SDMLModelAssetGetFunctionNamesCompletionHandler {
+ unsafe static internal readonly DMLModelAssetGetFunctionNamesCompletionHandler Handler = Invoke;
+ [MonoPInvokeCallback (typeof (DMLModelAssetGetFunctionNamesCompletionHandler))]
+ [UserDelegateType (typeof (global::CoreML.MLModelAssetGetFunctionNamesCompletionHandler))]
+ internal static unsafe void Invoke (IntPtr block, IntPtr functionNames, IntPtr error) {
+ var del = BlockLiteral.GetTarget<global::CoreML.MLModelAssetGetFunctionNamesCompletionHandler> (block);
+ if (del is not null) {
+ del (CFArray.StringArrayFromHandle (functionNames)!, Runtime.GetNSObject<NSError> (error)!);
+ }
+ }
+ internal static unsafe BlockLiteral CreateNullableBlock (global::CoreML.MLModelAssetGetFunctionNamesCompletionHandler? callback)
+ {
+ if (callback is null)
+ return default (BlockLiteral);
+ return CreateBlock (callback);
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ internal static unsafe BlockLiteral CreateBlock (global::CoreML.MLModelAssetGetFunctionNamesCompletionHandler callback)
+ {
+ var block = new BlockLiteral ();
+ block.SetupBlockUnsafe (Handler, callback);
+ return block;
+ }
+ } /* class SDMLModelAssetGetFunctionNamesCompletionHandler */
+ internal sealed class NIDMLModelAssetGetFunctionNamesCompletionHandler : TrampolineBlockBase {
+ DMLModelAssetGetFunctionNamesCompletionHandler invoker;
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe NIDMLModelAssetGetFunctionNamesCompletionHandler (BlockLiteral *block) : base (block)
+ {
+ invoker = block->GetDelegateForBlock<DMLModelAssetGetFunctionNamesCompletionHandler> ();
+ }
+ [Preserve (Conditional=true)]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe static global::CoreML.MLModelAssetGetFunctionNamesCompletionHandler? Create (IntPtr block)
+ {
+ if (block == IntPtr.Zero)
+ return null;
+ var del = (global::CoreML.MLModelAssetGetFunctionNamesCompletionHandler) GetExistingManagedDelegate (block);
+ return del ?? new NIDMLModelAssetGetFunctionNamesCompletionHandler ((BlockLiteral *) block).Invoke;
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ unsafe void Invoke (string[]? functionNames, NSError? error)
+ {
+ var error__handle__ = error.GetHandle ();
+ var nsa_functionNames = functionNames is null ? null : NSArray.FromStrings (functionNames);
+ invoker (BlockPointer, nsa_functionNames.GetHandle (), error__handle__);
+ if (nsa_functionNames is not null)
+ nsa_functionNames.Dispose ();
+ }
+ } /* class NIDMLModelAssetGetFunctionNamesCompletionHandler */
+ [UnmanagedFunctionPointerAttribute (CallingConvention.Cdecl)]
+ [UserDelegateType (typeof (global::CoreML.MLModelAssetGetModelDescriptionCompletionHandler))]
+ unsafe internal delegate void DMLModelAssetGetModelDescriptionCompletionHandler (IntPtr block, IntPtr modelDescription, IntPtr error);
+ //
+ // This class bridges native block invocations that call into C#
+ //
+ static internal class SDMLModelAssetGetModelDescriptionCompletionHandler {
+ unsafe static internal readonly DMLModelAssetGetModelDescriptionCompletionHandler Handler = Invoke;
+ [MonoPInvokeCallback (typeof (DMLModelAssetGetModelDescriptionCompletionHandler))]
+ [UserDelegateType (typeof (global::CoreML.MLModelAssetGetModelDescriptionCompletionHandler))]
+ internal static unsafe void Invoke (IntPtr block, IntPtr modelDescription, IntPtr error) {
+ var del = BlockLiteral.GetTarget<global::CoreML.MLModelAssetGetModelDescriptionCompletionHandler> (block);
+ if (del is not null) {
+ del ( Runtime.GetNSObject<MLModelDescription> (modelDescription)!, Runtime.GetNSObject<NSError> (error)!);
+ }
+ }
+ internal static unsafe BlockLiteral CreateNullableBlock (global::CoreML.MLModelAssetGetModelDescriptionCompletionHandler? callback)
+ {
+ if (callback is null)
+ return default (BlockLiteral);
+ return CreateBlock (callback);
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ internal static unsafe BlockLiteral CreateBlock (global::CoreML.MLModelAssetGetModelDescriptionCompletionHandler callback)
+ {
+ var block = new BlockLiteral ();
+ block.SetupBlockUnsafe (Handler, callback);
+ return block;
+ }
+ } /* class SDMLModelAssetGetModelDescriptionCompletionHandler */
+ internal sealed class NIDMLModelAssetGetModelDescriptionCompletionHandler : TrampolineBlockBase {
+ DMLModelAssetGetModelDescriptionCompletionHandler invoker;
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe NIDMLModelAssetGetModelDescriptionCompletionHandler (BlockLiteral *block) : base (block)
+ {
+ invoker = block->GetDelegateForBlock<DMLModelAssetGetModelDescriptionCompletionHandler> ();
+ }
+ [Preserve (Conditional=true)]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe static global::CoreML.MLModelAssetGetModelDescriptionCompletionHandler? Create (IntPtr block)
+ {
+ if (block == IntPtr.Zero)
+ return null;
+ var del = (global::CoreML.MLModelAssetGetModelDescriptionCompletionHandler) GetExistingManagedDelegate (block);
+ return del ?? new NIDMLModelAssetGetModelDescriptionCompletionHandler ((BlockLiteral *) block).Invoke;
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ unsafe void Invoke (global::CoreML.MLModelDescription? modelDescription, NSError? error)
+ {
+ var modelDescription__handle__ = modelDescription.GetHandle ();
+ var error__handle__ = error.GetHandle ();
+ invoker (BlockPointer, modelDescription__handle__, error__handle__);
+ }
+ } /* class NIDMLModelAssetGetModelDescriptionCompletionHandler */
+ [UnmanagedFunctionPointerAttribute (CallingConvention.Cdecl)]
+ [UserDelegateType (typeof (global::CoreML.MLStateGetMultiArrayForStateHandler))]
+ unsafe internal delegate void DMLStateGetMultiArrayForStateHandler (IntPtr block, IntPtr buffer);
+ //
+ // This class bridges native block invocations that call into C#
+ //
+ static internal class SDMLStateGetMultiArrayForStateHandler {
+ unsafe static internal readonly DMLStateGetMultiArrayForStateHandler Handler = Invoke;
+ [MonoPInvokeCallback (typeof (DMLStateGetMultiArrayForStateHandler))]
+ [UserDelegateType (typeof (global::CoreML.MLStateGetMultiArrayForStateHandler))]
+ internal static unsafe void Invoke (IntPtr block, IntPtr buffer) {
+ var del = BlockLiteral.GetTarget<global::CoreML.MLStateGetMultiArrayForStateHandler> (block);
+ if (del is not null) {
+ del ( Runtime.GetNSObject<MLMultiArray> (buffer)!);
+ }
+ }
+ internal static unsafe BlockLiteral CreateNullableBlock (global::CoreML.MLStateGetMultiArrayForStateHandler? callback)
+ {
+ if (callback is null)
+ return default (BlockLiteral);
+ return CreateBlock (callback);
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ internal static unsafe BlockLiteral CreateBlock (global::CoreML.MLStateGetMultiArrayForStateHandler callback)
+ {
+ var block = new BlockLiteral ();
+ block.SetupBlockUnsafe (Handler, callback);
+ return block;
+ }
+ } /* class SDMLStateGetMultiArrayForStateHandler */
+ internal sealed class NIDMLStateGetMultiArrayForStateHandler : TrampolineBlockBase {
+ DMLStateGetMultiArrayForStateHandler invoker;
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe NIDMLStateGetMultiArrayForStateHandler (BlockLiteral *block) : base (block)
+ {
+ invoker = block->GetDelegateForBlock<DMLStateGetMultiArrayForStateHandler> ();
+ }
+ [Preserve (Conditional=true)]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe static global::CoreML.MLStateGetMultiArrayForStateHandler? Create (IntPtr block)
+ {
+ if (block == IntPtr.Zero)
+ return null;
+ var del = (global::CoreML.MLStateGetMultiArrayForStateHandler) GetExistingManagedDelegate (block);
+ return del ?? new NIDMLStateGetMultiArrayForStateHandler ((BlockLiteral *) block).Invoke;
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ unsafe void Invoke (global::CoreML.MLMultiArray buffer)
+ {
+ var buffer__handle__ = buffer.GetHandle ();
+ invoker (BlockPointer, buffer__handle__);
+ }
+ } /* class NIDMLStateGetMultiArrayForStateHandler */
+ [UnmanagedFunctionPointerAttribute (CallingConvention.Cdecl)]
+ [UserDelegateType (typeof (global::CoreML.MLStateGetPredictionCompletionHandler))]
+ unsafe internal delegate void DMLStateGetPredictionCompletionHandler (IntPtr block, IntPtr output, IntPtr error);
+ //
+ // This class bridges native block invocations that call into C#
+ //
+ static internal class SDMLStateGetPredictionCompletionHandler {
+ unsafe static internal readonly DMLStateGetPredictionCompletionHandler Handler = Invoke;
+ [MonoPInvokeCallback (typeof (DMLStateGetPredictionCompletionHandler))]
+ [UserDelegateType (typeof (global::CoreML.MLStateGetPredictionCompletionHandler))]
+ internal static unsafe void Invoke (IntPtr block, IntPtr output, IntPtr error) {
+ var del = BlockLiteral.GetTarget<global::CoreML.MLStateGetPredictionCompletionHandler> (block);
+ if (del is not null) {
+ del ( Runtime.GetINativeObject<CoreML.IMLFeatureProvider> (output, false)!, Runtime.GetNSObject<NSError> (error)!);
+ }
+ }
+ internal static unsafe BlockLiteral CreateNullableBlock (global::CoreML.MLStateGetPredictionCompletionHandler? callback)
+ {
+ if (callback is null)
+ return default (BlockLiteral);
+ return CreateBlock (callback);
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ internal static unsafe BlockLiteral CreateBlock (global::CoreML.MLStateGetPredictionCompletionHandler callback)
+ {
+ var block = new BlockLiteral ();
+ block.SetupBlockUnsafe (Handler, callback);
+ return block;
+ }
+ } /* class SDMLStateGetPredictionCompletionHandler */
+ internal sealed class NIDMLStateGetPredictionCompletionHandler : TrampolineBlockBase {
+ DMLStateGetPredictionCompletionHandler invoker;
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe NIDMLStateGetPredictionCompletionHandler (BlockLiteral *block) : base (block)
+ {
+ invoker = block->GetDelegateForBlock<DMLStateGetPredictionCompletionHandler> ();
+ }
+ [Preserve (Conditional=true)]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe static global::CoreML.MLStateGetPredictionCompletionHandler? Create (IntPtr block)
+ {
+ if (block == IntPtr.Zero)
+ return null;
+ var del = (global::CoreML.MLStateGetPredictionCompletionHandler) GetExistingManagedDelegate (block);
+ return del ?? new NIDMLStateGetPredictionCompletionHandler ((BlockLiteral *) block).Invoke;
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ unsafe void Invoke (global::CoreML.IMLFeatureProvider? output, NSError error)
+ {
+ var output__handle__ = output.GetHandle ();
+ var error__handle__ = error.GetHandle ();
+ invoker (BlockPointer, output__handle__, error__handle__);
+ }
+ } /* class NIDMLStateGetPredictionCompletionHandler */
+ [UnmanagedFunctionPointerAttribute (CallingConvention.Cdecl)]
[UserDelegateType (typeof (global::CoreMotion.CMAccelerometerHandler))]
unsafe internal delegate void DCMAccelerometerHandler (IntPtr block, IntPtr data, IntPtr error);
//
diff --git a/old/watch/watch/SupportDelegates.g.cs b/new/watch/watch/SupportDelegates.g.cs
index 3103e78..ff5a079 100644
--- a/old/watch/watch/SupportDelegates.g.cs
+++ b/new/watch/watch/SupportDelegates.g.cs
@@ -106,6 +106,13 @@ namespace CoreLocation {
public delegate void CLServiceSessionCreateHandler (CLServiceSessionDiagnostic diagnostic);
public delegate void RequestHistoricalLocationsCompletionHandler (CLLocation[] locations, NSError? error);
}
+namespace CoreML {
+ #nullable enable
+ public delegate void MLModelAssetGetFunctionNamesCompletionHandler (String[]? functionNames, NSError? error);
+ public delegate void MLModelAssetGetModelDescriptionCompletionHandler (MLModelDescription? modelDescription, NSError? error);
+ public delegate void MLStateGetMultiArrayForStateHandler (MLMultiArray buffer);
+ public delegate void MLStateGetPredictionCompletionHandler (IMLFeatureProvider? output, NSError error);
+}
namespace CoreMotion {
#nullable enable
/// <param name="data">The accelerometer data for this event.</param><param name="error">An error, or null if there have been no errors.</param><summary>A delegate signature used to receive events from <see cref="T:CoreMotion.CMMotionManager" /></summary><remarks><para>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment