Instance Property

uniqueID

A unique identifier for this photo settings instance.

Declaration

@property(readonly) int64_t uniqueID;

Discussion

Creating a AVCapturePhotoSettings instance automatically assigns a unique value to this property.

Use this property to track a photo capture request. After you call the capturePhotoWithSettings:delegate: method, the photo capture output calls your delegate object to provide information about the progress and results of the capture. Each delegate method includes a AVCaptureResolvedPhotoSettings whose uniqueID property matches the uniqueID value of the AVCapturePhotoSettings object you used to request capture.

It is illegal to reuse a AVCapturePhotoSettings instance for multiple captures. Calling the capturePhotoWithSettings:delegate: method throws an exception (NSInvalidArgumentException) if the settings object’s uniqueID value matches that of any previously used settings object.