Wish iBarcode Lib

johan vetsuypens

Member
Licensed User
Add the member 'Type' to detect the type of symbology scanned. At this moment, only the Value of the barcode is available in the Detected event.
Example "QR' or "Datamatrix" or "EAN13" or ....

Thanks,
Johan
 

Erel

Administrator
Staff member
Licensed User
You can use NativeObject to get the type:
B4X:
Sub scanner_Detected (Codes As List)
   Dim sb As StringBuilder
   sb.Initialize
   sb.Append("Detected code:").Append(CRLF)
   For Each code As BarcodeCode In Codes
     sb.Append(code.Value).Append(CRLF)
     Dim no As NativeObject = code
     sb.Append(no.GetField("type").AsString) '<-----
   Next
   Label1.Text = sb.ToString
End Sub
 

johan vetsuypens

Member
Licensed User
Hello Erel.
I have been playing with the barcode library and found 1 bug and have a request to add more symbologies.
Bug : When scanning an UPC-A barcode, the barcode library adds a 0 in front and says it is an EAN13.
Wish : add GS1 Databar symbologies. Attaced a document with an UPC-A and the different GS1 Databar symbologies. These symbologies can be read with another app so they should be implemented in iOS.
Wish : draw rectange where the barcode was found
Thanks,
Johan
 

Attachments

Last edited:

johan vetsuypens

Member
Licensed User
Hi Erel,

Ok. So I see the UPC-A 'bug' is not a bug : EAN-13 (including UPC-A) .

Probably that the 'Jarltech' app in the app-store (start the app , select 'service App' , scan barcode) is using a third party lib to decode the GS1 symbologies.
Thanks,
Johan
 
Top