Edit

Share via


SFSpeechRecognizer.GetRecognitionTask Method

Definition

Overloads

GetRecognitionTask(SFSpeechRecognitionRequest, ISFSpeechRecognitionTaskDelegate)

Retrieves the SFSpeechRecognitionTask for the request, which will call back to the aDelegate.

GetRecognitionTask(SFSpeechRecognitionRequest, Action<SFSpeechRecognitionResult,NSError>)

Gets the SFSpeechRecognitionTask for the request and asynchronously calls the resultHandler as needed.

GetRecognitionTask(SFSpeechRecognitionRequest, ISFSpeechRecognitionTaskDelegate)

Retrieves the SFSpeechRecognitionTask for the request, which will call back to the aDelegate.

[Foundation.Export("recognitionTaskWithRequest:delegate:")]
public virtual Speech.SFSpeechRecognitionTask GetRecognitionTask (Speech.SFSpeechRecognitionRequest request, Speech.ISFSpeechRecognitionTaskDelegate delegate);
abstract member GetRecognitionTask : Speech.SFSpeechRecognitionRequest * Speech.ISFSpeechRecognitionTaskDelegate -> Speech.SFSpeechRecognitionTask
override this.GetRecognitionTask : Speech.SFSpeechRecognitionRequest * Speech.ISFSpeechRecognitionTaskDelegate -> Speech.SFSpeechRecognitionTask

Parameters

Returns

Attributes

Applies to

GetRecognitionTask(SFSpeechRecognitionRequest, Action<SFSpeechRecognitionResult,NSError>)

Gets the SFSpeechRecognitionTask for the request and asynchronously calls the resultHandler as needed.

[Foundation.Export("recognitionTaskWithRequest:resultHandler:")]
public virtual Speech.SFSpeechRecognitionTask GetRecognitionTask (Speech.SFSpeechRecognitionRequest request, Action<Speech.SFSpeechRecognitionResult,Foundation.NSError> resultHandler);
abstract member GetRecognitionTask : Speech.SFSpeechRecognitionRequest * Action<Speech.SFSpeechRecognitionResult, Foundation.NSError> -> Speech.SFSpeechRecognitionTask
override this.GetRecognitionTask : Speech.SFSpeechRecognitionRequest * Action<Speech.SFSpeechRecognitionResult, Foundation.NSError> -> Speech.SFSpeechRecognitionTask

Parameters

Returns

Attributes

Remarks

In most circumstances, the resultHandler will be called more than once, on a background thread.

Applies to