Instance Method

photoOutput(_:didCapturePhotoFor:)

Notifies the delegate that the photo has been taken.

Declaration

optional func photoOutput(_ output: AVCapturePhotoOutput, didCapturePhotoFor resolvedSettings: AVCaptureResolvedPhotoSettings)

Parameters

captureOutput

The photo output performing the capture.

resolvedSettings

An object describing the settings used for this capture. Match this object’s uniqueID value to the uniqueID property of the photo settings object you initiated capture with to determine which capture request this delegate call corresponds to. You can also use this object to find out which values the photo output has chosen for automatic settings.

Discussion

The photo output calls this method as soon as the first step of capture ends—that is, at the end of the photographic exposure time.

See Also

Monitoring Capture Progress

func photoOutput(AVCapturePhotoOutput, willBeginCaptureFor: AVCaptureResolvedPhotoSettings)

Notifies the delegate that the capture output has resolved settings and will soon begin its capture process.