Jump to top

VisionBarcodeEmail

interface

An email message from a 'MAILTO:' or similar QRCode type, or from a ContactInfo/VCARD.

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

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

if (barcode && barcode.valueType === VisionBarcodeValueType.EMAIL) {
  console.log(barcode.email);
} else if (barcode && barcode.valueType === VisionBarcodeValueType.CONTACT_INFO) {
  console.log(barcode.contactInfo.emails[0]);
}

Properties

address

</>

The email address.

address: string | null;

body

</>

The email body content.

body: string | null;

subject

</>

The email subject.

subject: string | null;