pub unsafe trait AVCaptureMetadataOutputObjectsDelegate: NSObjectProtocol {
// Provided method
unsafe fn captureOutput_didOutputMetadataObjects_fromConnection(
&self,
output: &AVCaptureMetadataOutput,
metadata_objects: &NSArray<AVMetadataObject>,
connection: &AVCaptureConnection,
)
where Self: Sized + Message { ... }
}AVCaptureMetadataOutput only.Expand description
Defines an interface for delegates of AVCaptureMetadataOutput to receive emitted objects.
See also Apple’s documentation
Provided Methods§
Sourceunsafe fn captureOutput_didOutputMetadataObjects_fromConnection(
&self,
output: &AVCaptureMetadataOutput,
metadata_objects: &NSArray<AVMetadataObject>,
connection: &AVCaptureConnection,
)
Available on crate features AVCaptureOutputBase and AVCaptureSession and AVMetadataObject only.
unsafe fn captureOutput_didOutputMetadataObjects_fromConnection( &self, output: &AVCaptureMetadataOutput, metadata_objects: &NSArray<AVMetadataObject>, connection: &AVCaptureConnection, )
AVCaptureOutputBase and AVCaptureSession and AVMetadataObject only.Called whenever an AVCaptureMetadataOutput instance emits new objects through a connection.
Parameter output: The AVCaptureMetadataOutput instance that emitted the objects.
Parameter metadataObjects: An array of AVMetadataObject subclasses (see AVMetadataObject.h).
Parameter connection: The AVCaptureConnection through which the objects were emitted.
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.