SCRecordingOutputDelegate

Trait SCRecordingOutputDelegate 

Source
pub unsafe trait SCRecordingOutputDelegate: NSObjectProtocol {
    // Provided methods
    unsafe fn recordingOutputDidStartRecording(
        &self,
        recording_output: &SCRecordingOutput,
    )
       where Self: Sized + Message { ... }
    unsafe fn recordingOutput_didFailWithError(
        &self,
        recording_output: &SCRecordingOutput,
        error: &NSError,
    )
       where Self: Sized + Message { ... }
    unsafe fn recordingOutputDidFinishRecording(
        &self,
        recording_output: &SCRecordingOutput,
    )
       where Self: Sized + Message { ... }
}
Available on crate feature SCRecordingOutput only.
Expand description

Defines an interface for delegates of SCRecordingOutput to respond to events that occur in the process of recording to file.

See also Apple’s documentation

Provided Methods§

Source

unsafe fn recordingOutputDidStartRecording( &self, recording_output: &SCRecordingOutput, )
where Self: Sized + Message,

recordingOutputDidStartRecording:

Parameter recordingOutput: the SCRecordingOutput object

notifies the delegate that recording has succesfully started.

Source

unsafe fn recordingOutput_didFailWithError( &self, recording_output: &SCRecordingOutput, error: &NSError, )
where Self: Sized + Message,

recordingOutput:didFailWithError:

Parameter recordingOutput: the SCRecordingOutput object

Parameter error: error describing why the recording failed.

notifies the delegate that recording has failed with error associated.

Source

unsafe fn recordingOutputDidFinishRecording( &self, recording_output: &SCRecordingOutput, )
where Self: Sized + Message,

recordingOutputDidFinishRecording:

notifies the delegate that recording has finished successfully.

Trait Implementations§

Source§

impl ProtocolType for dyn SCRecordingOutputDelegate

Source§

const NAME: &'static str = "SCRecordingOutputDelegate"

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 SCRecordingOutputDelegate

Implementations on Foreign Types§

Source§

impl<T> SCRecordingOutputDelegate for ProtocolObject<T>

Implementors§