---
title: "barcode(symbologies:)"
framework: visionkit
role: symbol
role_heading: Type Method
path: "visionkit/datascannerviewcontroller/recognizeddatatype/barcode(symbologies:)"
---

# barcode(symbologies:)

Creates a data type for barcodes the use the specified symbologies.

## Declaration

```swift
static func barcode(symbologies: [VNBarcodeSymbology] = []) -> DataScannerViewController.RecognizedDataType
```

## Parameters

- `symbologies`: The barcode symbologies that the scanner recognizes.

## Return Value

Return Value A barcode data type for the specified symbologies.
