observation
TypeScriptget observation(): _Vision_VNBarcodeObservationSwift declarationvar observation: VNBarcodeObservation { get }A representation of the barcode information.
struct · iOS 16.0+ · SDK 27.1
struct BarcodeAn object that represents a machine-readable code that the scanner recognizes.
get observation(): _Vision_VNBarcodeObservationSwift declarationvar observation: VNBarcodeObservation { get }A representation of the barcode information.
get payloadStringValue(): (string) | nullSwift declarationvar payloadStringValue: String? { get }The payload or string representation for the barcode.
get id(): stringSwift declarationvar 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 bounds(): RecognizedItem_BoundsSwift declarationvar bounds: RecognizedItem.Bounds { get }The location of the recognized item in the view.
No declarations were skipped in this snapshot.