Class

AVMetadataMachineReadableCodeObject

Barcode information detected by a metadata capture output.

Declaration

class AVMetadataMachineReadableCodeObject : AVMetadataObject

Overview

The AVMetadataMachineReadableCodeObject class is a concrete subclass of AVMetadataObject defining the features of a detected one-dimensional or two-dimensional barcode.

An AVMetadataMachineReadableCodeObject instance represents a single detected machine readable code in an image.  It’s an immutable object describing the features and payload of a barcode.

On supported platforms, the AVCaptureMetadataOutput class outputs arrays of detected machine readable code objects.

Topics

Getting Machine Readable Code Values

var corners: [CGPoint]

A Swift array of corner points.

var descriptor: CIBarcodeDescriptor?

A barcode description for use in Core Image.

var stringValue: String?

Returns the error-corrected data decoded into a human-readable string.

Constants

Machine-Readable Object Types

Constants used to specify the type of barcode to scan.

Relationships

Inherits From

Conforms To

See Also

Metadata Capture

class AVMetadataBodyObject

An abstract class that defines the interface for a metadata body object.

class AVMetadataCatBodyObject

An object representing a single detected cat body in a picture.

class AVMetadataDogBodyObject

An object representing a single detected dog body in a picture.

class AVMetadataHumanBodyObject

An object representing a single detected human body in a picture.

class AVMetadataSalientObject

An object representing a single salient area in a picture.

class AVCaptureMetadataInput

A capture input for providing timed metadata to a capture session.

class AVCaptureMetadataOutput

A capture output for processing timed metadata produced by a capture session.

class AVMetadataFaceObject

Face information detected by a metadata capture output.

class AVMetadataObject

The abstract superclass for objects provided by a metadata capture output.