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§
Sourceunsafe fn recordingOutputDidStartRecording(
&self,
recording_output: &SCRecordingOutput,
)
unsafe fn recordingOutputDidStartRecording( &self, recording_output: &SCRecordingOutput, )
recordingOutputDidStartRecording:
Parameter recordingOutput: the SCRecordingOutput object
notifies the delegate that recording has succesfully started.
Sourceunsafe fn recordingOutput_didFailWithError(
&self,
recording_output: &SCRecordingOutput,
error: &NSError,
)
unsafe fn recordingOutput_didFailWithError( &self, recording_output: &SCRecordingOutput, error: &NSError, )
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.
Sourceunsafe fn recordingOutputDidFinishRecording(
&self,
recording_output: &SCRecordingOutput,
)
unsafe fn recordingOutputDidFinishRecording( &self, recording_output: &SCRecordingOutput, )
recordingOutputDidFinishRecording:
notifies the delegate that recording has finished successfully.