pub unsafe trait RPScreenRecorderDelegate: NSObjectProtocol {
// Provided methods
unsafe fn screenRecorder_didStopRecordingWithError_previewViewController(
&self,
screen_recorder: &RPScreenRecorder,
error: &NSError,
preview_view_controller: Option<&RPPreviewViewController>,
)
where Self: Sized + Message { ... }
unsafe fn screenRecorder_didStopRecordingWithPreviewViewController_error(
&self,
screen_recorder: &RPScreenRecorder,
preview_view_controller: Option<&RPPreviewViewController>,
error: Option<&NSError>,
)
where Self: Sized + Message { ... }
unsafe fn screenRecorderDidChangeAvailability(
&self,
screen_recorder: &RPScreenRecorder,
)
where Self: Sized + Message { ... }
}Available on crate feature
RPScreenRecorder only.Expand description
Provided Methods§
Sourceunsafe fn screenRecorder_didStopRecordingWithError_previewViewController(
&self,
screen_recorder: &RPScreenRecorder,
error: &NSError,
preview_view_controller: Option<&RPPreviewViewController>,
)
👎Deprecated: No longer supportedAvailable on crate feature RPPreviewViewController and crate feature objc2-app-kit and macOS only.
unsafe fn screenRecorder_didStopRecordingWithError_previewViewController( &self, screen_recorder: &RPScreenRecorder, error: &NSError, preview_view_controller: Option<&RPPreviewViewController>, )
RPPreviewViewController and crate feature objc2-app-kit and macOS only.Called when recording has stopped due to an error.
Parameter screenRecorder: The instance of the screen recorder.
Parameter error: An NSError describing why recording has stopped in the RPRecordingErrorDomain.
Parameter previewViewController: If a partial movie is available before it was stopped, an instance of RPPreviewViewController will be returned.
unsafe fn screenRecorder_didStopRecordingWithPreviewViewController_error( &self, screen_recorder: &RPScreenRecorder, preview_view_controller: Option<&RPPreviewViewController>, error: Option<&NSError>, )
Available on crate feature
RPPreviewViewController and crate feature objc2-app-kit and macOS only.Sourceunsafe fn screenRecorderDidChangeAvailability(
&self,
screen_recorder: &RPScreenRecorder,
)
unsafe fn screenRecorderDidChangeAvailability( &self, screen_recorder: &RPScreenRecorder, )
Called when the recorder becomes available or stops being available. Check the screen recorder’s availability property to check the current availability state. Possible reasons for the recorder to be unavailable include an in-progress Airplay/TVOut session or unsupported hardware.
Parameter screenRecorder: The instance of the screen recorder.