RPScreenRecorderDelegate

Trait RPScreenRecorderDelegate 

Source
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§

Source

unsafe fn screenRecorder_didStopRecordingWithError_previewViewController( &self, screen_recorder: &RPScreenRecorder, error: &NSError, preview_view_controller: Option<&RPPreviewViewController>, )
where Self: Sized + Message,

👎Deprecated: No longer supported
Available on crate feature 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.

Source

unsafe fn screenRecorder_didStopRecordingWithPreviewViewController_error( &self, screen_recorder: &RPScreenRecorder, preview_view_controller: Option<&RPPreviewViewController>, error: Option<&NSError>, )
where Self: Sized + Message,

Available on crate feature RPPreviewViewController and crate feature objc2-app-kit and macOS only.
Source

unsafe fn screenRecorderDidChangeAvailability( &self, screen_recorder: &RPScreenRecorder, )
where Self: Sized + Message,

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.

Trait Implementations§

Source§

impl ProtocolType for dyn RPScreenRecorderDelegate

Source§

const NAME: &'static str = "RPScreenRecorderDelegate"

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 RPScreenRecorderDelegate

Implementations on Foreign Types§

Source§

impl<T> RPScreenRecorderDelegate for ProtocolObject<T>

Implementors§