With ML Kit's barcode scanning API, you can read data encoded using most
standard barcode formats. Barcode scanning happens on the device, and doesn't
require a network connection.
Barcodes are a convenient way to pass information from the real world to your
app. In particular, when using 2D formats such as QR code, you can encode
structured data such as contact information or WiFi network credentials. Because
ML Kit can automatically recognize and parse this data, your app can respond
intelligently when a user scans a barcode.
Scan for all supported barcode formats at once, without having to specify
the format you're looking for. Or, boost scanning speed by restricting the
detector to only the formats you're interested in.
Extracts structured data
Structured data stored using one of the supported 2D formats are
automatically parsed. Supported information types include URLs,
contact information, calendar events, email addresses, phone
numbers, SMS message prompts, ISBNs, WiFi connection information,
geographic location, and AAMVA-standard driver information.
Works with any orientation
Barcodes are recognized and scanned regardless of their orientation:
right-side-up, upside-down, or sideways.
Runs on the device
Barcode scanning is performed completely on the device, and doesn't
require a network connection.