title | description | author | ms.author | ms.date | ms.topic | ms.assetid | ms.prod |
---|---|---|---|---|---|---|---|
Xamarin.WatchOS SDK API diff |
List of API changes for Xamarin.WatchOS. |
spouliot |
sepoulio |
9/4/2024 |
article |
289956a5-831b-6f5b-d311-9cb0809a0070 |
xamarin |
Added property:
public virtual MLStateConstraint StateConstraint { get; }
Added value:
State = 8,
Added methods:
public static MLModelAsset Create (Foundation.NSUrl compiledModelUrl, out Foundation.NSError error);
public virtual void GetFunctionNames (MLModelAssetGetFunctionNamesCompletionHandler handler);
public virtual void GetModelDescription (MLModelAssetGetModelDescriptionCompletionHandler handler);
public virtual void GetModelDescription (string functionName, MLModelAssetGetModelDescriptionCompletionHandler handler);
Added property:
public virtual string FunctionName { get; set; }
Added property:
public virtual Foundation.NSDictionary<Foundation.NSString,CoreML.MLFeatureDescription> StateDescriptionsByName { get; }
Added constructor:
public MLMultiArray (Foundation.NSNumber[] shape, MLMultiArrayDataType dataType, Foundation.NSNumber[] strides);
Added method:
public virtual void TransferToMultiArray (MLMultiArray destinationMultiArray);
Added value:
Float16 = 65552,
Added property:
public virtual MLSpecializationStrategy SpecializationStrategy { get; set; }
public sealed delegate MLModelAssetGetFunctionNamesCompletionHandler : System.MulticastDelegate {
// constructors
public MLModelAssetGetFunctionNamesCompletionHandler (object object, IntPtr method);
// methods
public virtual System.IAsyncResult BeginInvoke (string[] functionNames, Foundation.NSError error, System.AsyncCallback callback, object object);
public virtual void EndInvoke (System.IAsyncResult result);
public virtual void Invoke (string[] functionNames, Foundation.NSError error);
}
public sealed delegate MLModelAssetGetModelDescriptionCompletionHandler : System.MulticastDelegate {
// constructors
public MLModelAssetGetModelDescriptionCompletionHandler (object object, IntPtr method);
// methods
public virtual System.IAsyncResult BeginInvoke (MLModelDescription modelDescription, Foundation.NSError error, System.AsyncCallback callback, object object);
public virtual void EndInvoke (System.IAsyncResult result);
public virtual void Invoke (MLModelDescription modelDescription, Foundation.NSError error);
}
public static class MLModel_MLState {
// methods
public static MLState CreateNewState (this MLModel This);
public static IMLFeatureProvider GetPrediction (this MLModel This, IMLFeatureProvider inputFeatures, MLState state, out Foundation.NSError error);
public static IMLFeatureProvider GetPrediction (this MLModel This, IMLFeatureProvider inputFeatures, MLState state, MLPredictionOptions options, MLStateGetPredictionCompletionHandler completionHandler);
public static IMLFeatureProvider GetPrediction (this MLModel This, IMLFeatureProvider inputFeatures, MLState state, MLPredictionOptions options, out Foundation.NSError error);
}
[Serializable]
public enum MLSpecializationStrategy {
Default = 0,
FastPrediction = 1,
}
public class MLState : Foundation.NSObject {
// constructors
protected MLState (Foundation.NSObjectFlag t);
protected MLState (IntPtr handle);
// properties
public override IntPtr ClassHandle { get; }
// methods
public virtual void GetMultiArrayForState (string stateName, MLStateGetMultiArrayForStateHandler handler);
}
public class MLStateConstraint : Foundation.NSObject, Foundation.INSCoding, Foundation.INSSecureCoding, ObjCRuntime.INativeObject, System.IDisposable {
// constructors
public MLStateConstraint (Foundation.NSCoder coder);
protected MLStateConstraint (Foundation.NSObjectFlag t);
protected MLStateConstraint (IntPtr handle);
// properties
public virtual Foundation.NSNumber[] BufferShape { get; }
public override IntPtr ClassHandle { get; }
public virtual MLMultiArrayDataType DataType { get; }
// methods
public virtual void EncodeTo (Foundation.NSCoder encoder);
}
public sealed delegate MLStateGetMultiArrayForStateHandler : System.MulticastDelegate {
// constructors
public MLStateGetMultiArrayForStateHandler (object object, IntPtr method);
// methods
public virtual System.IAsyncResult BeginInvoke (MLMultiArray buffer, System.AsyncCallback callback, object object);
public virtual void EndInvoke (System.IAsyncResult result);
public virtual void Invoke (MLMultiArray buffer);
}
public sealed delegate MLStateGetPredictionCompletionHandler : System.MulticastDelegate {
// constructors
public MLStateGetPredictionCompletionHandler (object object, IntPtr method);
// methods
public virtual System.IAsyncResult BeginInvoke (IMLFeatureProvider output, Foundation.NSError error, System.AsyncCallback callback, object object);
public virtual void EndInvoke (System.IAsyncResult result);
public virtual void Invoke (IMLFeatureProvider output, Foundation.NSError error);
}