AVCaptureViewDelegate

Trait AVCaptureViewDelegate 

Source
pub unsafe trait AVCaptureViewDelegate: NSObjectProtocol {
    // Provided method
    unsafe fn captureView_startRecordingToFileOutput(
        &self,
        capture_view: &AVCaptureView,
        file_output: &AVCaptureFileOutput,
    )
       where Self: Sized + Message { ... }
}
Available on crate feature AVCaptureView only.
Expand description

Defines an interface for delegates of AVCaptureView.

See also Apple’s documentation

Provided Methods§

Source

unsafe fn captureView_startRecordingToFileOutput( &self, capture_view: &AVCaptureView, file_output: &AVCaptureFileOutput, )
where Self: Sized + Message,

Available on crate feature objc2-app-kit and crate feature objc2-av-foundation and macOS only.

Informs the delegate that a new media recording should be started.

If captureFileOutput is an instance of AVCaptureMovieFileOutput this can be achieved by calling startRecordingToOutputFileURL:recordingDelegate: on the captureFileOutput.

Trait Implementations§

Source§

impl ProtocolType for dyn AVCaptureViewDelegate

Source§

const NAME: &'static str = "AVCaptureViewDelegate"

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 AVCaptureViewDelegate

Implementations on Foreign Types§

Source§

impl<T> AVCaptureViewDelegate for ProtocolObject<T>

Implementors§