---
title: BarcodeDetectionProvider
framework: arkit
role: symbol
role_heading: Class
path: arkit/barcodedetectionprovider
---

# BarcodeDetectionProvider

An object that provides the real-time position of barcodes the framework detects in a person’s environment.

## Declaration

```swift
final class BarcodeDetectionProvider
```

## Overview

Overview Use this provider to receive updates about barcodes that ARKit detect in a person’s surroundings, This provider returns the results in the form of an asynchronous sequence of BarcodeAnchor structures. Your app needs to include the Spatial barcode and QR code scanning entitlement to use this capability; otherwise, it has no effect.

## Topics

### Creating a barcode detection provider

- [init(symbologies:)](arkit/barcodedetectionprovider/init(symbologies:).md)

### Inspecting a barcode detection provider

- [anchorUpdates](arkit/barcodedetectionprovider/anchorupdates.md)
- [description](arkit/barcodedetectionprovider/description.md)
- [state](arkit/barcodedetectionprovider/state.md)

### Type properties

- [isSupported](arkit/barcodedetectionprovider/issupported.md)
- [requiredAuthorizations](arkit/barcodedetectionprovider/requiredauthorizations.md)

## Relationships

### Conforms To

- [CustomStringConvertible](swift/customstringconvertible.md)
- [DataProvider](arkit/dataprovider.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Barcode detection

- [BarcodeAnchor](arkit/barcodeanchor.md)
