# DSCandidateBarcodeZone Class

`DSCandidateBarcodeZone` is a class that represents the information of a single candidate barcode zone.

## Definition

*Assembly:* DynamsoftCaptureVisionBundle.xcframework

<div class="sample-code-prefix"></div>
>- Objective-C
>- Swift
>
>1. 
```objc
@interface DSCandidateBarcodeZone : NSObject
```
2. 
```swift
class CandidateBarcodeZone: NSObject
```

## Attributes

| Attributes | Type | Description |
| ---------- | ---- | ----------- |
| [`location`](#location) | *DSQuadrilateral* | The location of the candidate barcode zone. |
| [`possibleFormats`](#possibleformats) | *DSBarcodeFormat* | The possible barcode formats of the barcode in the candidate barcode zone. |

### location

The location of the candidate barcode zone within the image represented as a [`DSQuadrilateral`](https://www.dynamsoft.com/capture-vision/docs/mobile/programming/ios/api-reference/core/basic-structures/quadrilateral.md).

<div class="sample-code-prefix"></div>
>- Objective-C
>- Swift
>
>1. 
```objc
@property (nonatomic, strong) DSQuadrilateral *location;
```
2. 
```swift
var location: DSQuadrilateral? { get set }
```

### possibleFormats

The possible format(s) of the barcode in the candidate barcode zone as [`EnumBarcodeFormat`](https://www.dynamsoft.com/barcode-reader/docs/mobile/programming/enumeration/barcode-format.html?lang=objc,swift) items.

<div class="sample-code-prefix"></div>
>- Objective-C
>- Swift
>
>1. 
```objc
@property (nonatomic, assign) DSBarcodeFormat possibleFormats;
```
2. 
```swift
var possibleFormats: DSBarcodeFormat { get set }
```
