Skip to content

Instantly share code, notes, and snippets.

@vs-mobiletools-engineering-service2
Created September 21, 2023 01:41
Show Gist options
  • Save vs-mobiletools-engineering-service2/9af79223a60291e7a392512d664e7bbc to your computer and use it in GitHub Desktop.
Save vs-mobiletools-engineering-service2/9af79223a60291e7a392512d664e7bbc to your computer and use it in GitHub Desktop.
previous-api-comparison/mac-api-diff.md
title description author ms.author ms.date ms.topic ms.assetid ms.prod
Xamarin.Mac SDK API diff
List of API changes for Xamarin.Mac.
spouliot
sepoulio
9/20/2023
article
f833f3cb-eea7-c1b8-a706-dfbb597746ea
xamarin

Xamarin.Mac SDK API diff

Namespace Speech

Type Changed: Speech.SFSpeechRecognitionRequest

Added property:

public virtual SFSpeechLanguageModelConfiguration CustomizedLanguageModel { get; set; }

New Type: Speech.SFAnalysisContextTag

public class SFAnalysisContextTag {
	// constructors
	public SFAnalysisContextTag ();
	// properties
	public static Foundation.NSString LeftContext { get; }
	public static Foundation.NSString RightContext { get; }
	public static Foundation.NSString SelectedText { get; }
}

New Type: Speech.SFSpeechErrorCode

[Serializable]
public enum SFSpeechErrorCode {
	InternalServiceError = 1,
	MalformedSupplementalModel = 8,
	UndefinedTemplateClassName = 7,
}

New Type: Speech.SFSpeechErrorCodeExtensions

public static class SFSpeechErrorCodeExtensions {
	// methods
	public static Foundation.NSString GetDomain (this SFSpeechErrorCode self);
}

New Type: Speech.SFSpeechLanguageModel

public class SFSpeechLanguageModel : Foundation.NSObject {
	// constructors
	protected SFSpeechLanguageModel (Foundation.NSObjectFlag t);
	protected SFSpeechLanguageModel (IntPtr handle);
	// properties
	public override IntPtr ClassHandle { get; }
	// methods
	public static void PrepareCustomModel (Foundation.NSUrl asset, string clientIdentifier, SFSpeechLanguageModelConfiguration configuration, System.Action<Foundation.NSError> completion);
	public static void PrepareCustomModel (Foundation.NSUrl asset, string clientIdentifier, SFSpeechLanguageModelConfiguration configuration, bool ignoresCache, System.Action<Foundation.NSError> completion);
	public static System.Threading.Tasks.Task PrepareCustomModelAsync (Foundation.NSUrl asset, string clientIdentifier, SFSpeechLanguageModelConfiguration configuration);
	public static System.Threading.Tasks.Task PrepareCustomModelAsync (Foundation.NSUrl asset, string clientIdentifier, SFSpeechLanguageModelConfiguration configuration, bool ignoresCache);
}

New Type: Speech.SFSpeechLanguageModelConfiguration

public class SFSpeechLanguageModelConfiguration : Foundation.NSObject, Foundation.INSCopying, ObjCRuntime.INativeObject, System.IDisposable {
	// constructors
	public SFSpeechLanguageModelConfiguration ();
	protected SFSpeechLanguageModelConfiguration (Foundation.NSObjectFlag t);
	public SFSpeechLanguageModelConfiguration (Foundation.NSUrl languageModel);
	protected SFSpeechLanguageModelConfiguration (IntPtr handle);
	public SFSpeechLanguageModelConfiguration (Foundation.NSUrl languageModel, Foundation.NSUrl vocabulary);
	// properties
	public override IntPtr ClassHandle { get; }
	public virtual Foundation.NSUrl LanguageModel { get; }
	public virtual Foundation.NSUrl Vocabulary { get; }
	// methods
	public virtual Foundation.NSObject Copy (Foundation.NSZone zone);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment