共用方式為


SFSpeechRecognizer.GetRecognitionTask 方法

定義

多載

GetRecognitionTask(SFSpeechRecognitionRequest, ISFSpeechRecognitionTaskDelegate)

SFSpeechRecognitionTask 取 的 request ,這會呼叫 回傳回 aDelegate

GetRecognitionTask(SFSpeechRecognitionRequest, Action<SFSpeechRecognitionResult,NSError>)

SFSpeechRecognitionTaskrequest 取得 的 , resultHandler 並視需要以非同步方式呼叫 。

GetRecognitionTask(SFSpeechRecognitionRequest, ISFSpeechRecognitionTaskDelegate)

SFSpeechRecognitionTask 取 的 request ,這會呼叫 回傳回 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

參數

傳回

屬性

適用於

GetRecognitionTask(SFSpeechRecognitionRequest, Action<SFSpeechRecognitionResult,NSError>)

SFSpeechRecognitionTaskrequest 取得 的 , resultHandler 並視需要以非同步方式呼叫 。

[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

參數

傳回

屬性

備註

在大部分情況下, resultHandler 會在背景執行緒上多次呼叫 。

適用於