This is a wrap for this github project.
Easy to use barcode reader for your Android Project (Uses Google Mobile Vision API)
MaterialBarcodeScanner
Author: DonManfred (wrapper)
Version: 1
ATTENTION:
- You need to have google-play-services.jar in your additional libs folder
- You need to have android-support-v4.jar in your additional libs folder
- You need to have android-support-v7-appcompat..jar in your additional ibs folder. Especially the app must be prepared to use AppCompat. So follow the apcmpat tutorial.
I´ve used Example1 of the AppCompat-Tutorials and used the Button in the layout to trigger a Barcodescan
See it in action
Easy to use barcode reader for your Android Project (Uses Google Mobile Vision API)
- Integrate in a few minutes
- Quick and simple api
- No external apps required
- Uses Google Mobile Vision API (fast scanning, local)
- Automatically parses QR Codes, Data Matrix, PDF-417, and Aztec values
- Supports 1D barcodes: EAN-13, EAN-8, UPC-A, UPC-E, Code-39, Code-93, Code-128, ITF, Codabar
- Supports 2D barcodes: QR Code, Data Matrix, PDF-417, Aztec
MaterialBarcodeScanner
Author: DonManfred (wrapper)
Version: 1
- BarcodeScanner
Methods:- Initialize (EventName As String)
- IsInitialized As Boolean
- startScan
Start a scan for a barcode
This opens a new activity with the parameters provided by the MaterialBarcodeScannerBuilder
- BarcodeScannerBuilder
Events:- onResult (barcode As String)
- BleepEnabled (enabled As Boolean) As MaterialBarcodeScannerBuilderWrapper
Enables or disables a bleep sound whenever a barcode is scanned - CameraFacing (cameraFacing As Int) As MaterialBarcodeScannerBuilderWrapper
Either CameraSource.CAMERA_FACING_FRONT or CameraSource.CAMERA_FACING_BACK
cameraFacing: - EnableAutoFocus (enabled As Boolean) As MaterialBarcodeScannerBuilderWrapper
Enables or disables auto focusing on the camera - FlashLightEnabledByDefault As MaterialBarcodeScannerBuilderWrapper
Shows a text message at the top of the barcode scanner - Initialize (EventName As String) As MaterialBarcodeScannerBuilderWrapper
- IsInitialized As Boolean
- Text (text As String) As MaterialBarcodeScannerBuilderWrapper
Shows a text message at the top of the barcode scanner - TrackerColor (color As Int) As MaterialBarcodeScannerBuilderWrapper
Sets the tracker color used by the barcode scanner, By default this is Material Red 500 (#F44336).
color: - build As MaterialBarcodeScanner
Build a ready to use MaterialBarcodeScanner
Return type: @return:A ready to use MaterialBarcodeScanner - withBackfacingCamera As MaterialBarcodeScannerBuilderWrapper
Makes the barcode scanner use the camera facing back - withFrontfacingCamera As MaterialBarcodeScannerBuilderWrapper
Makes the barcode scanner use camera facing front
ATTENTION:
- You need to have google-play-services.jar in your additional libs folder
- You need to have android-support-v4.jar in your additional libs folder
- You need to have android-support-v7-appcompat..jar in your additional ibs folder. Especially the app must be prepared to use AppCompat. So follow the apcmpat tutorial.
I´ve used Example1 of the AppCompat-Tutorials and used the Button in the layout to trigger a Barcodescan
See it in action
Attachments
Last edited: