CodeType
public enum CodeType : String
Enum that maps string representations and iOS representation of scanned code type to a form used internally by Usher SDK.
-
UPC-E code
Declaration
Swift
case upce = "UPCE"
-
Code 39 code
Declaration
Swift
case code39 = "CODE39"
-
Code 39 mod 43 code
Declaration
Swift
case code39mod43 = "CODE39MOD43"
-
Code 93 code
Declaration
Swift
case code93 = "CODE93"
-
Code 128 code
Declaration
Swift
case code128 = "CODE128"
-
EAN-8 code
Declaration
Swift
case ean8 = "EAN8"
-
EAN-13 code
Declaration
Swift
case ean13 = "EAN13"
-
PDF417 code
Declaration
Swift
case pdf417 = "PDF417"
-
QR code
Declaration
Swift
case qr = "QR"
-
Aztec code
Declaration
Swift
case aztec = "AZTEC"
-
Interleaved 2 of 5 code
Declaration
Swift
case interleaved2of5 = "INTERLEAVED2OF5"
-
ITF14 code
Declaration
Swift
case itf14 = "ITF14"
-
DataMatrix code
Declaration
Swift
case datamatrix = "DATAMATRIX"
-
Unknown code type
Declaration
Swift
case unknown = "UNKNOWN"
-
e.g. Initialize with
CodeType(raw: "qr")
orCodeType(raw: "QR")
to get CodeType.qrDeclaration
Swift
public init(raw: String)
-
Initialize with iOS representation of scanned code type.
Declaration
Swift
public init(_ type: AVMetadataObject.ObjectType)