Jump to top

VisionBarcodeValueType

enum

Barcode value type constants - enumeration of supported barcode content value types.

Can be used with VisionBarcode.valueType to determine the barcode content type of a detected barcode.

Example
import vision, { VisionBarcodeValueType } from '@react-native-firebase/ml-vision';

const [barcode, ...otherBarcodes] = await vision().barcodeDetectorProcessImage(filePath);

// check for a calendar event barcode value type
if (barcode && barcode.valueType === VisionBarcodeValueType.CALENDAR_EVENT) {
  console.log(barcode.calendarEvent);
}

Members

CALENDAR_EVENT</>

Barcode value type constant for calendar events.

CONTACT_INFO</>

Barcode value type constant for contact information.

DRIVER_LICENSE</>

Barcode value type constant for driver's license data.

EMAIL</>

Barcode value type constant for email message details.

GEO</>

Barcode value type constant for geographic coordinates.

ISBN</>

Barcode value type constant for ISBNs.

PHONE</>

Barcode value type constant for phone numbers.

PRODUCT</>

Barcode value type constant for product codes.

SMS</>

Barcode value type constant for SMS details.

TEXT</>

Barcode value type constant for plain text.

UNKNOWN</>

Barcode value type unknown, which indicates the current version of SDK cannot recognize the structure of the barcode.

URL</>

Barcode value type constant for URLs/bookmarks.

WIFI</>

Barcode value type constant for WiFi access point details.