Page Summary
-
This documentation details globally available constants used for barcode scanning with ML Kit.
-
Constants define barcode value types, like URLs, emails, and contact info, for interpreting scanned data.
-
Additional constants categorize address, email, and phone types within barcode data (e.g., work, home).
-
Wi-Fi encryption types (open, WPA, WEP) are also represented by constants for scanned Wi-Fi barcodes.
-
These constants, declared in Swift, help developers handle and process various barcode information types.
Constants
The following constants are available globally.
-
Unknown Barcode value types.
Declaration
Swift
static let unknown : BarcodeValueType -
Barcode value type for contact info.
Declaration
Swift
static let contactInfo : BarcodeValueType -
Barcode value type for email addresses.
Declaration
Swift
static let email : BarcodeValueType -
Barcode value type for ISBNs.
Declaration
Swift
static let ISBN : BarcodeValueType -
Barcode value type for phone numbers.
Declaration
Swift
static let phone : BarcodeValueType -
Barcode value type for product codes.
Declaration
Swift
static let product : BarcodeValueType -
Barcode value type for SMS details.
Declaration
Swift
static let SMS : BarcodeValueType -
Barcode value type for plain text.
Declaration
Swift
static let text : BarcodeValueType -
Barcode value type for URLs/bookmarks.
Declaration
Swift
static let URL : BarcodeValueType -
Barcode value type for Wi-Fi access point details.
Declaration
Swift
static let wiFi : BarcodeValueType -
Barcode value type for geographic coordinates.
Declaration
Swift
static let geographicCoordinates : BarcodeValueType -
Barcode value type for calendar events.
Declaration
Swift
static let calendarEvent : BarcodeValueType -
Barcode value type for driver’s license data.
Declaration
Swift
static let driversLicense : BarcodeValueType -
Barcode unknown address type.
Declaration
Swift
static let unknown : BarcodeAddressType -
Barcode work address type.
Declaration
Swift
static let work : BarcodeAddressType -
Barcode home address type.
Declaration
Swift
static let home : BarcodeAddressType -
Unknown email type.
Declaration
Swift
static let unknown : BarcodeEmailType -
Barcode work email type.
Declaration
Swift
static let work : BarcodeEmailType -
Barcode home email type.
Declaration
Swift
static let home : BarcodeEmailType -
Unknown phone type.
Declaration
Swift
static let unknown : BarcodePhoneType -
Barcode work phone type.
Declaration
Swift
static let work : BarcodePhoneType -
Barcode home phone type.
Declaration
Swift
static let home : BarcodePhoneType -
Barcode fax phone type.
Declaration
Swift
static let fax : BarcodePhoneType -
Barcode mobile phone type.
Declaration
Swift
static let mobile : BarcodePhoneType -
Barcode unknown Wi-Fi encryption type.
Declaration
Swift
static let unknown : BarcodeWiFiEncryptionType -
Barcode open Wi-Fi encryption type.
Declaration
Swift
static let open : BarcodeWiFiEncryptionType -
Barcode WPA Wi-Fi encryption type.
Declaration
Swift
static let WPA : BarcodeWiFiEncryptionType -
Barcode WEP Wi-Fi encryption type.
Declaration
Swift
static let WEP : BarcodeWiFiEncryptionType


