Trait AVAudioRecorderDelegate

Source
pub unsafe trait AVAudioRecorderDelegate: NSObjectProtocol {
    // Provided methods
    unsafe fn audioRecorderDidFinishRecording_successfully(
        &self,
        recorder: &AVAudioRecorder,
        flag: bool,
    )
       where Self: Sized + Message { ... }
    unsafe fn audioRecorderEncodeErrorDidOccur_error(
        &self,
        recorder: &AVAudioRecorder,
        error: Option<&NSError>,
    )
       where Self: Sized + Message { ... }
}
Available on crate feature AVAudioRecorder only.
Expand description

A protocol for delegates of AVAudioRecorder.

See also Apple’s documentation

Provided Methods§

Source

unsafe fn audioRecorderDidFinishRecording_successfully( &self, recorder: &AVAudioRecorder, flag: bool, )
where Self: Sized + Message,

This callback method is called when a recording has been finished or stopped.

This method is NOT called if the recorder is stopped due to an interruption.

Source

unsafe fn audioRecorderEncodeErrorDidOccur_error( &self, recorder: &AVAudioRecorder, error: Option<&NSError>, )
where Self: Sized + Message,

This callback method is called when an error occurs while encoding.

If an error occurs while encoding it will be reported to the delegate.

Trait Implementations§

Source§

impl ProtocolType for dyn AVAudioRecorderDelegate

Source§

const NAME: &'static str = "AVAudioRecorderDelegate"

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 AVAudioRecorderDelegate

Implementations on Foreign Types§

Source§

impl<T> AVAudioRecorderDelegate for ProtocolObject<T>

Implementors§