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§
Sourceunsafe fn sessionWillRunDeferredStart(&self, session: &AVCaptureSession)
unsafe fn sessionWillRunDeferredStart(&self, session: &AVCaptureSession)
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
AVCaptureSessioninstance that runs the deferred start.
Sourceunsafe fn sessionDidRunDeferredStart(&self, session: &AVCaptureSession)
unsafe fn sessionDidRunDeferredStart(&self, session: &AVCaptureSession)
This method gets called by the session when deferred start has finished running.
- Parameter session: The
AVCaptureSessioninstance that runs the deferred start.