Package apple.avfoundation.protocol
Interface AVCaptureMetadataOutputObjectsDelegate
-
public interface AVCaptureMetadataOutputObjectsDelegate[@protocol] AVCaptureMetadataOutputObjectsDelegate Defines an interface for delegates of AVCaptureMetadataOutput to receive emitted objects.
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default voidcaptureOutputDidOutputMetadataObjectsFromConnection(AVCaptureOutput output, NSArray<? extends AVMetadataObject> metadataObjects, AVCaptureConnection connection)captureOutput:didOutputMetadataObjects:fromConnection: Called whenever an AVCaptureMetadataOutput instance emits new objects through a connection.
-
-
-
Method Detail
-
captureOutputDidOutputMetadataObjectsFromConnection
default void captureOutputDidOutputMetadataObjectsFromConnection(AVCaptureOutput output, NSArray<? extends AVMetadataObject> metadataObjects, AVCaptureConnection connection)
captureOutput:didOutputMetadataObjects:fromConnection: Called whenever an AVCaptureMetadataOutput instance emits new objects through a connection. Delegates receive this message whenever the output captures and emits new objects, as specified by its metadataObjectTypes property. Delegates can use the provided objects in conjunction with other APIs for further processing. This method will be called on the dispatch queue specified by the output's metadataObjectsCallbackQueue property. This method may be called frequently, so it must be efficient to prevent capture performance problems, including dropped metadata objects. Clients that need to reference metadata objects outside of the scope of this method must retain them and then release them when they are finished with them.- Parameters:
output- The AVCaptureMetadataOutput instance that emitted the objects.metadataObjects- An array of AVMetadataObject subclasses (see AVMetadataObject.h).connection- The AVCaptureConnection through which the objects were emitted.
-
-