Trait SFSpeechRecognitionTaskDelegate

Source
pub unsafe trait SFSpeechRecognitionTaskDelegate: NSObjectProtocol {
    // Provided methods
    unsafe fn speechRecognitionDidDetectSpeech(
        &self,
        task: &SFSpeechRecognitionTask,
    )
       where Self: Sized + Message { ... }
    unsafe fn speechRecognitionTask_didHypothesizeTranscription(
        &self,
        task: &SFSpeechRecognitionTask,
        transcription: &SFTranscription,
    )
       where Self: Sized + Message { ... }
    unsafe fn speechRecognitionTask_didFinishRecognition(
        &self,
        task: &SFSpeechRecognitionTask,
        recognition_result: &SFSpeechRecognitionResult,
    )
       where Self: Sized + Message { ... }
    unsafe fn speechRecognitionTaskFinishedReadingAudio(
        &self,
        task: &SFSpeechRecognitionTask,
    )
       where Self: Sized + Message { ... }
    unsafe fn speechRecognitionTaskWasCancelled(
        &self,
        task: &SFSpeechRecognitionTask,
    )
       where Self: Sized + Message { ... }
    unsafe fn speechRecognitionTask_didFinishSuccessfully(
        &self,
        task: &SFSpeechRecognitionTask,
        successfully: bool,
    )
       where Self: Sized + Message { ... }
    unsafe fn speechRecognitionTask_didProcessAudioDuration(
        &self,
        task: &SFSpeechRecognitionTask,
        duration: NSTimeInterval,
    )
       where Self: Sized + Message { ... }
}
Available on crate feature SFSpeechRecognitionTask only.
Expand description

Provided Methods§

Source

unsafe fn speechRecognitionDidDetectSpeech( &self, task: &SFSpeechRecognitionTask, )
where Self: Sized + Message,

Source

unsafe fn speechRecognitionTask_didHypothesizeTranscription( &self, task: &SFSpeechRecognitionTask, transcription: &SFTranscription, )
where Self: Sized + Message,

Available on crate feature SFTranscription only.
Source

unsafe fn speechRecognitionTask_didFinishRecognition( &self, task: &SFSpeechRecognitionTask, recognition_result: &SFSpeechRecognitionResult, )
where Self: Sized + Message,

Available on crate feature SFSpeechRecognitionResult only.
Source

unsafe fn speechRecognitionTaskFinishedReadingAudio( &self, task: &SFSpeechRecognitionTask, )
where Self: Sized + Message,

Source

unsafe fn speechRecognitionTaskWasCancelled( &self, task: &SFSpeechRecognitionTask, )
where Self: Sized + Message,

Source

unsafe fn speechRecognitionTask_didFinishSuccessfully( &self, task: &SFSpeechRecognitionTask, successfully: bool, )
where Self: Sized + Message,

Source

unsafe fn speechRecognitionTask_didProcessAudioDuration( &self, task: &SFSpeechRecognitionTask, duration: NSTimeInterval, )
where Self: Sized + Message,

Trait Implementations§

Source§

impl ProtocolType for dyn SFSpeechRecognitionTaskDelegate

Source§

const NAME: &'static str = "SFSpeechRecognitionTaskDelegate"

The name of the Objective-C protocol that this type represents. Read more
Source§

fn protocol() -> Option<&'static AnyProtocol>

Get a reference to the Objective-C protocol object that this type represents. Read more
Source§

impl<T> ImplementedBy<T> for dyn SFSpeechRecognitionTaskDelegate

Implementations on Foreign Types§

Source§

impl<T> SFSpeechRecognitionTaskDelegate for ProtocolObject<T>

Implementors§