インタフェース BarcodeManagerCallback
public interface BarcodeManagerCallback
Callback interface of BarcodeManager
-
メソッドの概要
修飾子とタイプメソッド説明void
Called when an error occurred.default void
Called back when information acquisition from the terminal after connecting to AsReader is completed.default void
onReceivedBarcodeDecodeData
(byte[] decodeData) Receive decode data by callback when scan barcode.default void
onReceivedBarcodeDecodeData
(String decodeData, Map<String, String> parameter) Receive decode and parameter data by callback when scan barcode.default void
onReceivedResponse
(BarcodeConst.BarcodeCommandAction type, BarcodeResult result) Receive response event.
-
メソッドの詳細
-
onReceivedBarcodeDecodeData
Receive decode and parameter data by callback when scan barcode.BarcodeManager.startDecode()
BarcodeManager.startDecode(int, int)
- パラメータ:
decodeData
- Decoded data of the barcode that was scanned.parameter
- Map object containing parameters If no parameters are stored, null is returned.
KEY_PARAMETER_CODE_ID = Code ID
-
onReceivedBarcodeDecodeData
default void onReceivedBarcodeDecodeData(byte[] decodeData) Receive decode data by callback when scan barcode.BarcodeManager.startDecode()
BarcodeManager.startDecode(int, int)
- パラメータ:
decodeData
- Decoded data of the barcode that was scanned.
-
onReceivedResponse
Receive response event.
Executed response.- パラメータ:
type
- : Type of action processed.BarcodeConst.BarcodeCommandAction
result
- : Description of processing results.BarcodeResult
-
onBarcodeManagerStandByReady
default void onBarcodeManagerStandByReady()Called back when information acquisition from the terminal after connecting to AsReader is completed. Attention!
If you wish to set barcodes or other settings during initialization from the application, do so after this callback. For example, setting character assignment, formatting, barcode read enable setting, etc. -
onBarcodeManagerError
Called when an error occurred.- パラメータ:
error
- Error messages.
-