AVCapturePhotoOutputReadinessCoordinator
An object that monitors changes to a photo output’s capture readiness.
Declaration
class AVCapturePhotoOutputReadinessCoordinatorOverview
Use this object to coordinate user interface updates on the main queue with a AVCapturePhotoOutput that runs on a background queue. Adopt the AVCapturePhotoOutputReadinessCoordinatorDelegate protocol in your app and set its implementation as the coordinator’s delegate object to receive callbacks as the associated photo output’s captureReadiness state changes.
You can track additional capture requests with this object by calling its startTrackingCaptureRequest(using:) method. You can use it to synchronously update shutter button availability and appearance and on the main thread while calling the photo output’s capturePhoto(with:delegate:) method asynchronously on a background queue.
Topics
Creating a coordinator
Setting the delegate object
Performing tracking requests
Determining readiness for capture
See Also
Photo capture
Capturing consistent color imagesCapturing still and Live PhotosCapturing photos in RAW and Apple ProRAW formatsSupporting Continuity Camera in Your Mac AppAVCapturePhotoAVCaptureDeferredPhotoProxyAVCapturePhotoOutputAVCapturePhotoCaptureDelegateAVCapturePhotoOutputReadinessCoordinatorDelegateAVCaptureStillImageOutput