Request Intent Action = com.gstmaid.barcode.qrcode.scanner.SCAN Package Name = com.gstmaid.barcode.qrcode.scanner or com.gstmaid.barcode.qrcode.scanner.plus Extra = Key: extra_supported_formats Type: int Value: ALL_FORMATS = 0, CODE_128 = 1, CODE_39 = 2, CODE_93 = 4, CODABAR = 8, DATA_MATRIX = 16, EAN_13 = 32, EAN_8 = 64, ITF = 128, QR_CODE = 256, UPC_A = 512, UPC_E = 1024, PDF417 = 2048, AZTEC = 4096. You can specify multiple formats using bitwise or (|) operator Default value: 0
Response Intent Key: barcode_object_json Type String Value: Barcode object (below Barcode class) in json format on successful scan else null
public class Barcode { public static final int ALL_FORMATS = 0; public static final int CODE_128 = 1; public static final int CODE_39 = 2; public static final int CODE_93 = 4; public static final int CODABAR = 8; public static final int DATA_MATRIX = 16; public static final int EAN_13 = 32; public static final int EAN_8 = 64; public static final int ITF = 128; public static final int QR_CODE = 256; public static final int UPC_A = 512; public static final int UPC_E = 1024; public static final int PDF417 = 2048; public static final int AZTEC = 4096; public static final int CONTACT_INFO = 1; public static final int EMAIL = 2; public static final int ISBN = 3; public static final int PHONE = 4; public static final int PRODUCT = 5; public static final int SMS = 6; public static final int TEXT = 7; public static final int URL = 8; public static final int WIFI = 9; public static final int GEO = 10; public static final int CALENDAR_EVENT = 11; public static final int DRIVER_LICENSE = 12; public int format; /* Value can be: CODE_128 = 1, CODE_39 = 2, CODE_93 = 4, CODABAR = 8, DATA_MATRIX = 16, EAN_13 = 32, EAN_8 = 64, ITF = 128, QR_CODE = 256, UPC_A = 512, UPC_E = 1024, PDF417 = 2048, AZTEC = 4096 */ public int valueFormat; /* Value can be: CONTACT_INFO = 1, EMAIL = 2, ISBN = 3, PHONE = 4, PRODUCT = 5, SMS = 6, TEXT = 7, URL = 8, WIFI = 9, GEO = 10, CALENDAR_EVENT = 11, DRIVER_LICENSE = 12 */ public String rawValue; public String displayValue; public Barcode.Email email; /* Set if valueFormat == EMAIL */ public Barcode.Phone phone; /* Set if valueFormat == PHONE */ public Barcode.Sms sms; /* Set if valueFormat == SMS */ public Barcode.WiFi wifi; /* Set if valueFormat == WIFI */ public Barcode.UrlBookmark url; /* Set if valueFormat == URL */ public Barcode.GeoPoint geoPoint; /* Set if valueFormat == GEO */ public Barcode.CalendarEvent calendarEvent; /* Set if valueFormat == CALENDAR_EVENT */ public Barcode.ContactInfo contactInfo; /* Set if valueFormat == CONTACT_INFO */ public Barcode.DriverLicense driverLicense; /* Set if valueFormat == DRIVER_LICENSE */ public Barcode() { } public static class DriverLicense { public String documentType; public String firstName; public String middleName; public String lastName; public String gender; public String addressStreet; public String addressCity; public String addressState; public String addressZip; public String licenseNumber; public String issueDate; public String expiryDate; public String birthDate; public String issuingCountry; public DriverLicense() { } } public static class ContactInfo { public Barcode.PersonName name; public String organization; public String title; public Barcode.Phone[] phones; public Barcode.Email[] emails; public String[] urls; public Barcode.Address[] addresses; public ContactInfo() { } } public static class Address { public static final int UNKNOWN = 0; public static final int WORK = 1; public static final int HOME = 2; public int type; /* Value can be: UNKNOWN = 0, WORK = 1, HOME = 2 */ public String[] addressLines; public Address() { } } public static class PersonName { public String formattedName; public String pronunciation; public String prefix; public String first; public String middle; public String last; public String suffix; public PersonName() { } } public static class CalendarEvent { public String summary; public String description; public String location; public String organizer; public String status; public Barcode.CalendarDateTime start; public Barcode.CalendarDateTime end; public CalendarEvent() { } } public static class CalendarDateTime { public int year; public int month; public int day; public int hours; public int minutes; public int seconds; public boolean isUtc; public String rawValue; public CalendarDateTime() { } } public static class GeoPoint { public double lat; public double lng; public GeoPoint() { } } public static class UrlBookmark { public String title; public String url; public UrlBookmark() { } } public static class WiFi { public static final int OPEN = 1; public static final int WPA = 2; public static final int WEP = 3; public String ssid; public String password; public int encryptionType; /* Value can be: OPEN = 1, WPA = 2, WEP = 3 */ public WiFi() { } } public static class Sms { public String message; public String phoneNumber; public Sms() { } } public static class Phone { public static final int UNKNOWN = 0; public static final int WORK = 1; public static final int HOME = 2; public static final int FAX = 3; public static final int MOBILE = 4; public int type; /* Value can be: UNKNOWN = 0, WORK = 1, HOME = 2, FAX = 3, MOBILE = 4 */ public String number; public Phone() { } } public static class Email { public static final int UNKNOWN = 0; public static final int WORK = 1; public static final int HOME = 2; public int type; /* Value can be: UNKNOWN = 0, WORK = 1, HOME = 2 */ public String address; public String subject; public String body; public Email() { } } }