One Logo Pool Ball
VisionKit · IOS API REFERENCE

RecognizedItem.Barcode

struct · iOS 16.0+ · SDK 27.1

struct Barcode

An object that represents a machine-readable code that the scanner recognizes.

Members (4)

get · iOS 16.0+

observation

TypeScript
get observation(): _Vision_VNBarcodeObservation
Swift declaration
var observation: VNBarcodeObservation { get }

A representation of the barcode information.

get · iOS 16.0+

payloadStringValue

TypeScript
get payloadStringValue(): (string) | null
Swift declaration
var payloadStringValue: String? { get }

The payload or string representation for the barcode.

get · iOS 16.0+

id

TypeScript
get id(): string
Swift declaration
var id: UUID { get }

A unique identifier for the recognized item. If the same item resides in more than one video frame, the `id` remains the same.

get · iOS 16.0+

bounds

TypeScript
get bounds(): RecognizedItem_Bounds
Swift declaration
var bounds: RecognizedItem.Bounds { get }

The location of the recognized item in the view.

Skipped declarations

No declarations were skipped in this snapshot.

All VisionKit types →