public abstract class CodeScanner extends Object
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 and Description |
---|
CodeScanner()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static CodeScanner |
getInstance()
Deprecated.
Returns the instance of the code scanner, notice that this method is equivalent
to Display.getInstance().getCodeScanner().
|
abstract void |
scanBarCode(ScanResult callback)
Deprecated.
Scans based on the settings in this class and returns the results
|
abstract void |
scanQRCode(ScanResult callback)
Deprecated.
Scans based on the settings in this class and returns the results
|
public static CodeScanner getInstance()
public abstract void scanQRCode(ScanResult callback)
callback
- scan resultspublic abstract void scanBarCode(ScanResult callback)
callback
- scan results