Class CodeScanner
java.lang.Object
com.codename1.codescan.CodeScanner
Deprecated!!: Please use the cn1-codescan library instead.
A barcode/qrcode scanner API, this class is a singleton, notice that this API might not be implemented for all platforms in which case the getInstance() method will return null!
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic CodeScannerReturns the instance of the code scanner, notice that this method is equivalent to Display.getInstance().getCodeScanner().abstract voidscanBarCode(ScanResult callback) Scans based on the settings in this class and returns the resultsabstract voidscanQRCode(ScanResult callback) Scans based on the settings in this class and returns the results
-
Constructor Details
-
CodeScanner
public CodeScanner()
-
-
Method Details
-
getInstance
Returns the instance of the code scanner, notice that this method is equivalent to Display.getInstance().getCodeScanner().
Returns
instance of the code scanner
-
scanQRCode
Scans based on the settings in this class and returns the results
Parameters
callback: scan results
-
scanBarCode
Scans based on the settings in this class and returns the results
Parameters
callback: scan results
-