NSSpeechSynthesizerDelegate

Trait NSSpeechSynthesizerDelegate 

Source
pub unsafe trait NSSpeechSynthesizerDelegate: NSObjectProtocol + MainThreadOnly {
    // Provided methods
    unsafe fn speechSynthesizer_didFinishSpeaking(
        &self,
        sender: &NSSpeechSynthesizer,
        finished_speaking: bool,
    )
       where Self: Sized + Message { ... }
    unsafe fn speechSynthesizer_willSpeakWord_ofString(
        &self,
        sender: &NSSpeechSynthesizer,
        character_range: NSRange,
        string: &NSString,
    )
       where Self: Sized + Message { ... }
    unsafe fn speechSynthesizer_willSpeakPhoneme(
        &self,
        sender: &NSSpeechSynthesizer,
        phoneme_opcode: c_short,
    )
       where Self: Sized + Message { ... }
    unsafe fn speechSynthesizer_didEncounterErrorAtIndex_ofString_message(
        &self,
        sender: &NSSpeechSynthesizer,
        character_index: NSUInteger,
        string: &NSString,
        message: &NSString,
    )
       where Self: Sized + Message { ... }
    unsafe fn speechSynthesizer_didEncounterSyncMessage(
        &self,
        sender: &NSSpeechSynthesizer,
        message: &NSString,
    )
       where Self: Sized + Message { ... }
}
👎Deprecated: Use AVSpeechSynthesizer in AVFoundation instead
Available on crate feature NSSpeechSynthesizer only.
Expand description

Provided Methods§

Source

unsafe fn speechSynthesizer_didFinishSpeaking( &self, sender: &NSSpeechSynthesizer, finished_speaking: bool, )
where Self: Sized + Message,

👎Deprecated: Use AVSpeechSynthesizer in AVFoundation instead
Source

unsafe fn speechSynthesizer_willSpeakWord_ofString( &self, sender: &NSSpeechSynthesizer, character_range: NSRange, string: &NSString, )
where Self: Sized + Message,

👎Deprecated: Use AVSpeechSynthesizer in AVFoundation instead
Source

unsafe fn speechSynthesizer_willSpeakPhoneme( &self, sender: &NSSpeechSynthesizer, phoneme_opcode: c_short, )
where Self: Sized + Message,

👎Deprecated: Use AVSpeechSynthesizer in AVFoundation instead
Source

unsafe fn speechSynthesizer_didEncounterErrorAtIndex_ofString_message( &self, sender: &NSSpeechSynthesizer, character_index: NSUInteger, string: &NSString, message: &NSString, )
where Self: Sized + Message,

👎Deprecated: Use AVSpeechSynthesizer in AVFoundation instead
Source

unsafe fn speechSynthesizer_didEncounterSyncMessage( &self, sender: &NSSpeechSynthesizer, message: &NSString, )
where Self: Sized + Message,

👎Deprecated: Use AVSpeechSynthesizer in AVFoundation instead

Trait Implementations§

Source§

impl ProtocolType for dyn NSSpeechSynthesizerDelegate

Source§

const NAME: &'static str = "NSSpeechSynthesizerDelegate"

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 NSSpeechSynthesizerDelegate

Implementations on Foreign Types§

Source§

impl<T> NSSpeechSynthesizerDelegate for ProtocolObject<T>

Implementors§