AVCaptureSessionDeferredStartDelegate

Trait AVCaptureSessionDeferredStartDelegate 

Source
pub unsafe trait AVCaptureSessionDeferredStartDelegate: NSObjectProtocol {
    // Provided methods
    unsafe fn sessionWillRunDeferredStart(&self, session: &AVCaptureSession)
       where Self: Sized + Message { ... }
    unsafe fn sessionDidRunDeferredStart(&self, session: &AVCaptureSession)
       where Self: Sized + Message { ... }
}
Available on crate feature AVCaptureSession only.
Expand description

Defines an interface for delegates of the capture session to receive events about the session’s deferred start.

See also Apple’s documentation

Provided Methods§

Source

unsafe fn sessionWillRunDeferredStart(&self, session: &AVCaptureSession)
where Self: Sized + Message,

This method gets called by the session when deferred start is about to run.

Delegates receive this message when the session has finished the deferred start. This message will be sent regardless of whether the session’s AVCaptureSession/automaticallyRunsDeferredStart property is set. See AVCaptureSession/setDeferredStartDelegate:deferredStartDelegateCallbackQueue: documentation for more information.

  • Parameter session: The AVCaptureSession instance that runs the deferred start.
Source

unsafe fn sessionDidRunDeferredStart(&self, session: &AVCaptureSession)
where Self: Sized + Message,

This method gets called by the session when deferred start has finished running.

  • Parameter session: The AVCaptureSession instance that runs the deferred start.

Trait Implementations§

Source§

impl ProtocolType for dyn AVCaptureSessionDeferredStartDelegate

Source§

const NAME: &'static str = "AVCaptureSessionDeferredStartDelegate"

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 AVCaptureSessionDeferredStartDelegate

Implementations on Foreign Types§

Source§

impl<T> AVCaptureSessionDeferredStartDelegate for ProtocolObject<T>

Implementors§