Barcode.BarcodeFormat
Stay organized with collections
Save and categorize content based on your preferences.
Inherited Method Summary
From interface java.lang.annotation.Annotation
abstract Class<? extends Annotation>
|
annotationType()
|
abstract boolean |
|
abstract int |
hashCode()
|
abstract String
|
toString()
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-31 UTC.
[null,null,["Last updated 2024-10-31 UTC."],[[["\u003cp\u003e\u003ccode\u003eBarcode.BarcodeFormat\u003c/code\u003e is an annotation interface that defines barcode format constants.\u003c/p\u003e\n"],["\u003cp\u003eIt supports a wide variety of barcode formats, including common types like QR codes, UPCs, EANs, and more specialized formats such as PDF417 and Aztec.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eFORMAT_ALL_FORMATS\u003c/code\u003e and \u003ccode\u003eFORMAT_UNKNOWN\u003c/code\u003e constants provide general options for handling all supported formats or unknown barcode types.\u003c/p\u003e\n"],["\u003cp\u003eThis interface inherits methods from \u003ccode\u003ejava.lang.annotation.Annotation\u003c/code\u003e, allowing it to be used for reflection and code analysis purposes.\u003c/p\u003e\n"]]],["`Barcode.BarcodeFormat` defines constants for supported barcode types, implementing the `Annotation` interface. It enumerates fifteen formats, including `FORMAT_UNKNOWN`, `FORMAT_ALL_FORMATS`, `CODE_128`, `CODE_39`, `CODE_93`, `CODABAR`, `DATA_MATRIX`, `EAN_13`, `EAN_8`, `ITF`, `QR_CODE`, `UPC_A`, `UPC_E`, `PDF417`, and `AZTEC`. The interface inherits four methods from `Annotation`: `annotationType()`, `equals(Object arg0)`, `hashCode()`, and `toString()`.\n"],null,["# Barcode.BarcodeFormat\n\npublic static abstract @interface **Barcode.BarcodeFormat** implements [Annotation](//developer.android.com/reference/java/lang/annotation/Annotation.html) \nBarcode format constants - enumeration of supported barcode formats:\n\n1. [Barcode.FORMAT_UNKNOWN](/android/reference/com/google/mlkit/vision/barcode/common/Barcode#FORMAT_UNKNOWN)\n2. [Barcode.FORMAT_ALL_FORMATS](/android/reference/com/google/mlkit/vision/barcode/common/Barcode#FORMAT_ALL_FORMATS)\n3. [Barcode.FORMAT_CODE_128](/android/reference/com/google/mlkit/vision/barcode/common/Barcode#FORMAT_CODE_128)\n4. [Barcode.FORMAT_CODE_39](/android/reference/com/google/mlkit/vision/barcode/common/Barcode#FORMAT_CODE_39)\n5. [Barcode.FORMAT_CODE_93](/android/reference/com/google/mlkit/vision/barcode/common/Barcode#FORMAT_CODE_93)\n6. [Barcode.FORMAT_CODABAR](/android/reference/com/google/mlkit/vision/barcode/common/Barcode#FORMAT_CODABAR)\n7. [Barcode.FORMAT_DATA_MATRIX](/android/reference/com/google/mlkit/vision/barcode/common/Barcode#FORMAT_DATA_MATRIX)\n8. [Barcode.FORMAT_EAN_13](/android/reference/com/google/mlkit/vision/barcode/common/Barcode#FORMAT_EAN_13)\n9. [Barcode.FORMAT_EAN_8](/android/reference/com/google/mlkit/vision/barcode/common/Barcode#FORMAT_EAN_8)\n10. [Barcode.FORMAT_ITF](/android/reference/com/google/mlkit/vision/barcode/common/Barcode#FORMAT_ITF)\n11. [Barcode.FORMAT_QR_CODE](/android/reference/com/google/mlkit/vision/barcode/common/Barcode#FORMAT_QR_CODE)\n12. [Barcode.FORMAT_UPC_A](/android/reference/com/google/mlkit/vision/barcode/common/Barcode#FORMAT_UPC_A)\n13. [Barcode.FORMAT_UPC_E](/android/reference/com/google/mlkit/vision/barcode/common/Barcode#FORMAT_UPC_E)\n14. [Barcode.FORMAT_PDF417](/android/reference/com/google/mlkit/vision/barcode/common/Barcode#FORMAT_PDF417)\n15. [Barcode.FORMAT_AZTEC](/android/reference/com/google/mlkit/vision/barcode/common/Barcode#FORMAT_AZTEC) \n\n### Inherited Method Summary\n\nFrom interface java.lang.annotation.Annotation \n\n|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------|\n| abstract [Class](//developer.android.com/reference/java/lang/Class.html)\\\u003c? extends [Annotation](//developer.android.com/reference/java/lang/annotation/Annotation.html)\\\u003e | annotationType() |\n| abstract boolean | equals([Object](//developer.android.com/reference/java/lang/Object.html) arg0) |\n| abstract int | hashCode() |\n| abstract [String](//developer.android.com/reference/java/lang/String.html) | toString() |"]]