3. Callback list¶
In this plugin, scan processing and various operation results are basically notified through callback functions.
For example, the results of operations such as reading barcodes, tags, and changing settings are returned in callbacks, so the app should receive the results and process them as necessary.
3.1. PLUGGED_STATUS¶
Tells whether AsReader is physically connected to the device. The connection status is obtained when AsReader is inserted or removed.
Parameters¶
argument name |
type |
Description |
result |
bool |
AsReader connection status
|
Sample code¶
if (asreaderSdk4Plugin.PLUGGED_STATUS == methodCall.method) {
bool isPluged = methodCall.arguments['result'];
}
3.2. CONNECTED_STATUS¶
Notifies the connection status of AsReader. The connection status will be notified when the method setReaderPower is called.
Parameters¶
argument name |
type |
Description |
result |
bool |
AsReader connection status
|
Sample code¶
if (asreaderSdk4Plugin.CONNECTED_STATUS == methodCall.method) {
bool isConnected = methodCall.arguments['result'];
}
3.3. TRIGGER_STATUS¶
Notifies the trigger key status (pressed/released) of AsReader. The status will be notified when the trigger key is operated.
Parameters¶
argument name |
type |
Description |
result |
String |
Trigger key status |
Sample code¶
if (asreaderSdk4Plugin.TRIGGER_STATUS == methodCall.method) {
String status = methodCall.arguments['result'];
}
3.4. POWER_ON_OFF¶
Notifies AsReader power and hard mode status. Calling the method setReaderPower will notify you of the status.
Parameters¶
argument name |
type |
Description |
isOn |
bool |
Power status
|
isHWModeChange |
bool |
Hard mode changes
|
Sample code¶
if (asreaderSdk4Plugin.POWER_ON_OFF == methodCall.method) {
bool isOn = methodCall.arguments['isOn'];
bool isHWModeChange = methodCall.arguments['isHWModeChange'];
}
3.7. RECEIVED_SCAN_DATA¶
Notify scanned data. Calling one of the methods below will notify you of the scan results. -startBarcodeScan -startScan -startNFCScan -startLfScan
Parameters¶
argument name |
type |
Description |
result |
Uint8List |
scanned data |
Sample code¶
if (asreaderSdk4Plugin.RECEIVED_SCAN_DATA == methodCall.method) {
Uint8List byteData = methodCall.arguments['result'];
}
3.8. RECEIVED_SCAN_DATA_AND_DATA_TYPE¶
Notify scanned data and data type. Calling one of the methods below will notify you of the scan results.
-startBarcodeScan -startScan -startNFCScan -startLfScan
Parameters¶
argument name |
type |
Description |
readData |
Uint8List |
scanned data |
dataType |
int |
Data type
|
Sample code¶
if (asreaderSdk4Plugin.RECEIVED_SCAN_DATA_AND_DATA_TYPE == methodCall.method) {
Uint8List readData = methodCall.arguments['readData'];
int dataType = methodCall.arguments['dataType'];
}
3.9. UNKNOWN_COMMAND_RECEIVED¶
Reports responses to undefined commands. Calling getRSSIThreshold will notify you of the response if the command is not defined.
Parameters¶
argument name |
type |
Description |
result |
int |
data |
Sample code¶
if (asreaderSdk4Plugin.UNKNOWN_COMMAND_RECEIVED == methodCall.method) {
int result = methodCall.arguments['result'];
}
3.10. BATTERY_RECEIVED¶
Notifies you of the remaining battery power of AsReader. Calling getCurrentBattery will notify you of the remaining battery power of AsReader.
Parameters¶
argument name |
type |
Description |
result |
int |
AsReader battery level |
Sample code¶
if (asreaderSdk4Plugin.BATTERY_RECEIVED == methodCall.method) {
int result = methodCall.arguments['result'];
}
3.11. ERROR_RECEIVED¶
Notifies error information. Error information is reported when you call any of the methods below.
-readTagWithAccessPassword -writeTagMemoryWithAccessPassword -lockTagMemoryWithAccessPassword -killTagWithPassword
Parameters¶
Sample code¶
if (asreaderSdk4Plugin.ALL_DATA_RECEIVED == methodCall.method) {
Uint8List result = methodCall.arguments['result'];
}
3.12. RECEIVED_SLEEP_TIME_AND_ISACK¶
Notifies you of the sleep time settings and acquisition results for your Bluetooth device. When you call one of the methods below, you will be notified of the Bluetooth device’s sleep time settings or acquisition results.
-getSleepTimeForBLEDevice -setSleepTimeForBLEDeviceType
Parameters¶
argument name |
type |
Description |
time |
int |
Bluetooth device sleep time |
isAck |
bool |
true: returned when calling the setSleepTimeForBLEDeviceType method
|
Sample code¶
if (asreaderSdk4Plugin.RECEIVED_SLEEP_TIME_AND_ISACK == methodCall.method) {
int time = methodCall.arguments['time'];
bool isAck = methodCall.arguments['isAck'];
}
3.13. RECEIVED_SLEEP_TIME¶
Receive sleep time settings or acquisition results for Bluetooth devices. Calling one of the methods below will notify you of the result of setting or obtaining sleep time for a Bluetooth device.
-getSleepTimeForBLEDevice -setSleepTimeForBLEDeviceType
Parameters¶
argument name |
type |
Description |
result |
int |
Bluetooth device sleep time |
Sample code¶
if (asreaderSdk4Plugin.RECEIVED_SLEEP_TIME == methodCall.method) {
int result = methodCall.arguments['result'];
}
3.14. EPC_RECEIVED_AND_TID¶
Notify scanned EPC and TID data. Calling startReadTagAndTidWithTagNum informs you of the EPC and TID data obtained as a result of the scanning process.
Parameters¶
argument name |
type |
Description |
epc |
Uint8List |
EPC data |
tid |
Uint8List |
TID data |
Sample code¶
if (asreaderSdk4Plugin.EPC_RECEIVED_AND_TID == methodCall.method) {
Uint8List epc = methodCall.arguments['epc'];
Uint8List tid = methodCall.arguments['tid'];
}
3.15. PC_EPC_RECEIVED¶
Notify tag data. Calling startScan will notify you of the EPC data of the tags read.
Parameters¶
argument name |
type |
Description |
result |
Uint8List |
tag data |
Sample code¶
if (asreaderSdk4Plugin.PC_EPC_RECEIVED == methodCall.method) {
Uint8List result = methodCall.arguments['result'];
}
3.16. PC_EPC_RSSI_RECEIVED_AND_RSSI¶
Notifies tag data with RSSI value. Calling the method startReadTagsAndRssiWithTagNum reports the EPC and RSSI data of the tags read.
Parameters¶
argument name |
type |
Description |
pcEpc |
Uint8List |
pcEPC data |
rssi |
int |
RSSI data |
Sample code¶
if (asreaderSdk4Plugin.PC_EPC_RSSI_RECEIVED_AND_RSSI == methodCall.method) {
Uint8List pcEpc = methodCall.arguments['pcEpc'];
int rssi = methodCall.arguments['rssi'];
}
3.17. PC_EPC_SENSOR_DATA_RECEIVED¶
Notifies scanned temperature tag/humidity tag data. Calling startReadTagsRFM will notify you of the scan results.
Parameters¶
argument name |
type |
Description |
pcEpc |
Uint8List |
Temperature tag/humidity tag data |
sensorData |
Uint8List |
Temperature/humidity data |
Sample code¶
if (asreaderSdk4Plugin.PC_EPC_SENSOR_DATA_RECEIVED == methodCall.method) {
Uint8List pcEpc = methodCall.arguments['pcEpc'];
Uint8List sensorData = methodCall.arguments['sensorData'];
}
3.18. PC_EPC_SENSOR_DATA_RECEIVED_RSSI¶
Notifies temperature tag/humidity tag data with scanned RSSI value. Calling the method startReadTagsRFM will notify you of the scanned temperature/humidity tag data with RSSI values.
Parameters¶
Sample code¶
if (asreaderSdk4Plugin.PC_EPC_SENSOR_DATA_RECEIVED_RSSI == methodCall.method) {
Uint8List pcEpc = methodCall.arguments['pcEpc'];
Uint8List sensorData = methodCall.arguments['sensorData'];
int rssi = methodCall.arguments['rssi'];
}
3.19. DID_SET_OUTPUT_POWER_LEVEL¶
Notifies you of the power setting results. Calling the method setOutputPowerLevel will notify you of the power setting result.
Parameters¶
argument name |
type |
Description |
result |
int |
0: success
|
Sample code¶
if (asreaderSdk4Plugin.DID_SET_OUTPUT_POWER_LEVEL == methodCall.method) {
int result = methodCall.arguments['result'];
}
3.20. DID_SET_CHANNEL_PARAM_RECEIVED¶
Notifies you of the RF channel setting results. When you call the method setChannel, you will be notified of the RF channel setting result.
Parameters¶
argument name |
type |
Description |
result |
int |
0: success
|
Sample code¶
if (asreaderSdk4Plugin.DID_SET_CHANNEL_PARAM_RECEIVED == methodCall.method) {
int result = methodCall.arguments['result'];
}
3.21. DID_SET_ANTI_COLLISION¶
Notifies the setting results of the anti-collision algorithm. Calling the method setAnticollision will notify you of the result of setting the anticollision algorithm.
Parameters¶
argument name |
type |
Description |
result |
int |
0: success
|
Sample code¶
if (asreaderSdk4Plugin.DID_SET_ANTI_COLLISION == methodCall.method) {
int result = methodCall.arguments['result'];
}
3.22. DID_SET_SESSION¶
Notifies you of the Session settings results. When you call the method setSession, you will be notified of the result of setting the Session.
Parameters¶
argument name |
type |
Description |
result |
int |
0: success
|
Sample code¶
if (asreaderSdk4Plugin.DID_SET_SESSION == methodCall.method) {
int result = methodCall.arguments['result'];
}
3.23. CHANNEL_RECEIVED_AND_CHANNEL_OFFSET¶
Notifies you of the RF channel acquisition results. When you call the method getChannel, you will be notified of the RF channel acquisition result.
Parameters¶
Sample code¶
if (asreaderSdk4Plugin.CHANNEL_RECEIVED_AND_CHANNEL_OFFSET == methodCall.method) {
int channel = methodCall.arguments['channel'];
int channelOffset = methodCall.arguments['channelOffset'];
}
3.24. ANTICOL_PARAM_RECEIVED_AND_COUNTER¶
Informs the anti-collision algorithm. Calling the method getAnticollision tells you the anticollision algorithm.
Parameters¶
argument name |
type |
Description |
mode |
int |
Fixed Q: 0, Dynamic Q: 1 |
counter |
int |
counter |
Sample code¶
if (asreaderSdk4Plugin.ANTICOL_PARAM_RECEIVED_AND_COUNTER == methodCall.method) {
int mode = methodCall.arguments['mode'];
int counter = methodCall.arguments['counter'];
}
3.25. MODULATION_PARAM_RECEIVED_RXMOD_DR¶
Notifies the acquisition result of modulation mode. When you call the method getModulation, you will be notified of the modulation mode acquisition result.
Parameters¶
argument name |
type |
Description |
blf |
int |
BLF_160:160, BLF_250:250, BLF_320:320, BLF_640:640 |
rxMod |
int |
FM0:0, M2:1, M4:2, M8:3 |
dr |
int |
8:0, 64/3:1 |
Sample code¶
if (asreaderSdk4Plugin.MODULATION_PARAM_RECEIVED_RXMOD_DR == methodCall.method) {
int blf = methodCall.arguments['blf'];
int rxMod = methodCall.arguments['rxMod'];
int dr = methodCall.arguments['dr'];
}
3.26. TX_POWER_LEVEL_RECEIVED_POWER¶
The current output power and maximum and minimum output power acquisition results will be notified. When you call the method getOutputPowerLevel, you will be notified of the current output power and the results of obtaining the maximum and minimum output power.
Parameters¶
argument name |
type |
Description |
result |
Uint8List |
Values of rfidPower, rfidPowerMax, rfidPowerMin |
Sample code¶
if (asreaderSdk4Plugin.MODULATION_PARAM_RECEIVED_RXMOD_DR == methodCall.method) {
Uint8List byteData = methodCall.arguments['result'];
int rfidPower = (byteData[0] << 8 ) | byteData[1];
int rfidPowerMin = (byteData[2] << 8 ) | byteData[3];
int rfidPowerMax = (byteData[4] << 8 ) | byteData[5];
}
3.27. REGION_RECEIVED¶
We will notify you of the results of obtaining regional information. When you call the method getRegion, you will be notified of the results of obtaining regional information.
Parameters¶
Sample code¶
if (asreaderSdk4Plugin.REGION_RECEIVED == methodCall.method) {
int result = methodCall.arguments['result'];
}
3.28. SELECT_PARAM_RECEIVED¶
Notifies the acquisition result of the Select function. When you call the method getSelectParameter, you will be notified of the results obtained by the Select function.
Parameters¶
argument name |
type |
Description *-result |
Uint8List |
target(3bit): session: S0 (000), S1 (001), S2 (010), S3 (011), SL (100)
|
Sample code¶
if (asreaderSdk4Plugin.SELECT_PARAM_RECEIVED == methodCall.method) {
Uint8List result = methodCall.arguments['result'];
}
3.29. ON_OFF_TIME_CHANGEDD¶
The results of the reading time and idle time settings will be notified. Calling the method setReadTime will notify you of the result of setting the read time and idle time.
Sample code¶
if (asreaderSdk4Plugin.ON_OFF_TIME_CHANGED == methodCall.method) {
}
3.30. FHLBT_RECEIVED¶
You will be notified of the acquisition results of “FH and LBT parameters”. When you call the method getFhLbtParameter, you will be notified of the results of obtaining the FH and LBT parameters.
Parameters¶
Sample code¶
if (asreaderSdk4Plugin.FHLBT_RECEIVED == methodCall.method) {
Uint8List result = methodCall.arguments['result'];
}
3.31. HOPPING_TABLE_RECEIVED¶
Notifies the hopping table acquisition results. When you call the method getFrequencyHoppingTable, you will be notified of the hopping table acquisition results.
Parameters¶
argument name |
type |
Description |
result |
Uint8List |
Table size (8bit) |
Sample code¶
if (asreaderSdk4Plugin.HOPPING_TABLE_RECEIVED == methodCall.method) {
Uint8List result = methodCall.arguments['result'];
}
3.32. DID_SET_FHLBT¶
Notifies the setting results of FH and LBT arguments. When you call the method setHoppingOnOff, you will be notified of the results of setting the FH and LBT parameters.
Parameters¶
Sample code¶
if (asreaderSdk4Plugin.DID_SET_FHLBT == methodCall.method) {
int result = methodCall.arguments['result'];
}
3.33. DID_SET_OPTI_FREQ_HPTABLE¶
Notify the hopping table setting results. When you call the method setFrequencyHoppingTableSize, you will be notified of the hopping table setting result.
Parameters¶
argument name |
type |
Description |
result |
int |
0: success
|
Sample code¶
if (asreaderSdk4Plugin.DID_SET_OPTI_FREQ_HPTABLE == methodCall.method) {
int result = methodCall.arguments['result'];
}
3.34. DID_SET_FHMODE_CHANGED¶
Notify the hopping table setting results. When you call the method setFrequencyHoppingMode, you will be notified of the hopping table setting result.
Sample code¶
if (asreaderSdk4Plugin.DID_SET_FHMODE_CHANGED == methodCall.method) {
}
3.35. DID_SET_MODULATION¶
Notifies the modulation mode setting result. When you call the method setModulationBLF, you will be notified of the modulation mode setting result.
Parameters¶
argument name |
type |
Description |
result |
int |
0: success
|
Sample code¶
if (asreaderSdk4Plugin.DID_SET_MODULATION == methodCall.method) {
int result = methodCall.arguments['result'];
}
3.36. RFID_MODULE_VERSION_RECEIVED¶
AsReader will notify you of the basic information acquisition results. When you call the method getRFIDModuleVersion, you will be notified of the acquisition result of AsReader basic information.
Sample code¶
if (asreaderSdk4Plugin.RFID_MODULE_VERSION_RECEIVED == methodCall.method) {
}
3.37. RFID_ON_OFF_TIME_RECEIVED¶
Notifies the acquisition results of FH and LBT arguments. When you call the method getFhLbtParameter, you will be notified of the results of getting the FH and LBT arguments.
Parameters¶
argument name |
type |
Description |
result |
Uint8List |
The SDK parses the data and stores it in the AsReaderInfo class, in which the values of rfidOnTime, rfidOffTime, carrierSenseTime, rfidListenBeforeTalk, rfidContinuousWave, and rfidFrequencyHopping are updated. |
Sample code¶
if (asreaderSdk4Plugin.RFID_ON_OFF_TIME_RECEIVED == methodCall.method) {
Uint8List result = methodCall.arguments['result'];
}
3.38. RSSI_THRESHOLD_RECEIVED¶
Notifies the acquisition results of RSSI filter conditions. When you call the method getRSSIThreshold, you will be notified of the results of obtaining the RSSI filter conditions.
Parameters¶
argument name |
type |
Description |
result |
int |
RSSI value |
Sample code¶
if (asreaderSdk4Plugin.RSSI_THRESHOLD_RECEIVED == methodCall.method) {
int result = methodCall.arguments['result'];
}
3.39. WRITTEN_RECEIVED¶
Notify the data writing result to the RF tag. When you call one of the methods below, the RF tag will be notified of the data write result.
-writeTagMemoryWithEPC -writeTagMemoryWithAccessPassword
Parameters¶
argument name |
type |
Description |
result |
int |
0: success
|
Sample code¶
if (asreaderSdk4Plugin.WRITTEN_RECEIVED == methodCall.method) {
int result = methodCall.arguments['result'];
}
3.40. SESSION_RECEIVED¶
Notifies session acquisition results. When you call the method getSession, you will be notified of the session acquisition result.
Parameters¶
argument name |
type |
Description |
result |
int |
S0:0, S1:1, S2:2, S3:3, Dev.mode: 240 |
Sample code¶
if (asreaderSdk4Plugin.SESSION_RECEIVED == methodCall.method) {
int result = methodCall.arguments['result'];
}
3.41. TAG_MEMORY_RECEIVED¶
Reports the tag data of the specified memory. Calling the method readTagWithAccessPassword will notify you of the tag data in the specified memory.
Parameters¶
argument name |
type |
Description |
result |
Uint8List |
tag data |
Sample code¶
if (asreaderSdk4Plugin.TAG_MEMORY_RECEIVED == methodCall.method) {
Uint8List result = methodCall.arguments['result'];
}
3.42. KILL_RECEIVED¶
Notifies tag kill results. Calling the method killTagWithPassword will notify you of the tag kill result.
Parameters¶
argument name |
type |
Description |
result |
int |
0: success
|
Sample code¶
if (asreaderSdk4Plugin.KILL_RECEIVED == methodCall.method) {
int result = methodCall.arguments['result'];
}
3.43. LOCKED_RECEIVED¶
Notifies you of the tag lock result. Calling the method lockTagMemoryWithAccessPassword will notify you of the result of locking the tag.
Parameters¶
argument name |
type |
Description |
result |
int |
0: success
|
Sample code¶
if (asreaderSdk4Plugin.LOCKED_RECEIVED == methodCall.method) {
int result = methodCall.arguments['result'];
}
3.44. RESPONSE_REBOOT¶
Notifies you of the processing results after AsReader restarts (firmware update, etc.).
Parameters¶
argument name |
type |
Description |
result |
int |
0: success
|
Sample code¶
if (asreaderSdk4Plugin.RESPONSE_REBOOT == methodCall.method) {
int result = methodCall.arguments['result'];
}
3.45. UPDATED_REGISTERY¶
Notifies you of registry update results. When you call the method updateRegistry, you will be notified of the registry update results.
Parameters¶
argument name |
type |
Description |
result |
int |
0: success
|
Sample code¶
if (asreaderSdk4Plugin.UPDATED_REGISTERY == methodCall.method) {
int result = methodCall.arguments['result'];
}
3.46. NFC_READ_MULTI_BLOCK_RECEIVED¶
Notifies you of the NFC tag reading results. When you call the method readMultiBlockWithBlockIndex, you will be notified of the result of reading the NFC tag.
Parameters¶
Sample code¶
if (asreaderSdk4Plugin.NFC_READ_MULTI_BLOCK_RECEIVED == methodCall.method) {
NSArray dataArray = methodCall.arguments['dataArray'];
int statusCode = methodCall.arguments['statusCode'];
}
3.47. NFC_WRITE_SINGLE_BLOCK_STATUS_CODE¶
Notifies you of the NFC tag write result. When you call the method writeSingleBlockWithBlockIndex, you will be notified of the result of writing the NFC tag.
Parameters¶
Sample code¶
if (asreaderSdk4Plugin.NFC_WRITE_SINGLE_BLOCK_STATUS_CODE == methodCall.method) {
int result = methodCall.arguments['result'];
}
3.48. NFC_WRITE_BYTES_STATUS_CODE¶
Notify NFC tag data and status code. Calling the method writeBytesWithBlockIndex will notify you of the NFC tag data and status code.
Parameters¶
Sample code¶
if (asreaderSdk4Plugin.NFC_WRITE_BYTES_STATUS_CODE == methodCall.method) {
int result = methodCall.arguments['result'];
}
3.49. SCANING_BLE_DEVICE¶
Notify search results of Bluetooth device name. When you call the method startBleScan, you will be notified of the search results for Bluetooth device names.
Parameters¶
argument name |
type |
Description |
name |
String |
Bluetooth device name |
Sample code¶
if (asreaderSdk4Plugin.SCANING_BLE_DEVICE == methodCall.method) {
String name = methodCall.arguments['name'];
}
3.50. SCAN_BLE_STATUS¶
Notify you of Bluetooth status search results. Calling the method startBleScan will notify you of the Bluetooth status search results.
Parameters¶
argument name |
type |
Description |
status |
String |
Bluetooth status |
Sample code¶
if (asreaderSdk4Plugin.SCAN_BLE_STATUS == methodCall.method) {
String status = methodCall.arguments['status'];
}
3.51. ON_ASREADER_TRIGGER_KEY_EVENT_STATUS¶
Callback the execution result after pressing the trigger button.
Parameters¶
argument name |
type |
Description |
status |
String |
If AsReader type is RFID, returns “RFID startScan”; if AsReader type is Barcode, returns “Barcode startScan”; if AsReader type is NFC, returns “NFC startScan”. |
Sample code¶
if (asreaderSdk4Plugin.ON_ASREADER_TRIGGER_KEY_EVENT_STATUS == methodCall.method) {
String status = methodCall.arguments['status'];
}
3.52. ALL_DATA_RECEIVED¶
Called back when tag data is received.
Parameters¶
argument name |
type |
Description |
result |
Uint8List |
Read data |
Sample code¶
if (asreaderSdk4Plugin.ALL_DATA_RECEIVED == methodCall.method) {
Uint8List readData = methodCall.arguments['result'];
}
3.53. STOP_READ_SCAN¶
Receives scan stop status.
Parameters¶
Sample code¶
if (asreaderSdk4Plugin.STOP_READ_SCAN == methodCall.method) {
int status = methodCall.arguments['result'];
}
3.54. STARTED_READ_SCAN¶
Receives scan start status.
Parameters¶
argument name |
type |
Description |
result |
int |
Scan start status |
Sample code¶
if (asreaderSdk4Plugin.STARTED_READ_SCAN == methodCall.method) {
int status = methodCall.arguments['result'];
}
3.55. RECEIVED_BEEP¶
Receive callback results for beep settings.
Parameters¶
argument name |
type |
Description |
result |
Uint8List |
Beep setting callback result |
Sample code¶
if (asreaderSdk4Plugin.RECEIVED_BEEP == methodCall.method) {
Uint8List data = methodCall.arguments['result'];
}
3.56. READER_INFO_RECEIVED¶
When calling the method getReaderInfo, this callback method receives the data information of AsReader.
Parameters¶
argument name |
type |
Description |
result |
Uint8List |
Store information (read time, idle time, carrier sense time, target RF power level, LBT, hopping, continuous wave, frequency table, etc.) in class ModelInformation |
Sample code¶
if (asreaderSdk4Plugin.READER_INFO_RECEIVED == methodCall.method) {
Uint8List data = methodCall.arguments['result'];
}
3.57. DID_SET_STOP_CONDITION¶
Receives the StopCondition setting results.
Parameters¶
Sample code¶
if (asreaderSdk4Plugin.DID_SET_STOP_CONDITION == methodCall.method) {
int status = methodCall.arguments['result'];
}
3.58. STOP_CONDITIONS_RECEIVED¶
When calling the method getStopCondition, this callback method receives the value of StopCondition.
Parameters¶
argument name |
type |
Description |
result |
Uint8List |
Value of StopCondition |
Sample code¶
if (asreaderSdk4Plugin.STOP_CONDITIONS_RECEIVED == methodCall.method) {
Uint8List data = methodCall.arguments['result'];
}
3.59. RESPONSE_BOOT_LOADER_S0¶
Receives callback results for firmware update data.
Parameters¶
argument name |
type |
Description |
result |
Uint8List |
Firmware update data callback results |
Sample code¶
if (asreaderSdk4Plugin.RESPONSE_BOOT_LOADER_S0 == methodCall.method) {
Uint8List data = methodCall.arguments['result'];
}
3.60. RECEIVED_BARCODE_DATA¶
Receives all communication data from the Barcode module.
Parameters¶
argument name |
type |
Description |
result |
Uint8List |
Barcode data |
Sample code¶
if (asreaderSdk4Plugin.RECEIVED_BARCODE_DATA == methodCall.method) {
Uint8List data = methodCall.arguments['result'];
}
3.61. RECEIVED_FACTORY_RESET¶
Receive AsReader reset results.
Parameters¶
Sample code¶
if (asreaderSdk4Plugin.RECEIVED_FACTORY_RESET == methodCall.method) {
int status = methodCall.arguments['result'];
}
3.62. RECEIVED_CODE_ID¶
Receive the CodeID in this callback method when calling the method getCodeID (2.45).
Parameters¶
argument name |
type |
Description |
result |
int |
codeID data |
Sample code¶
if (asreaderSdk4Plugin.RECEIVED_CODE_ID == methodCall.method) {
int status = methodCall.arguments['result'];
}
3.63. RECEIVED_HID¶
Receive the HID mode status in this callback method when calling the method getHID.
Parameters¶
argument name |
type |
Description |
hidOn |
bool |
HID status:
|
iOShidOn |
bool |
iOS or Android:
|
Sample code¶
if (asreaderSdk4Plugin.RECEIVED_HID == methodCall.method) {
bool hidOn = methodCall.arguments['hidOn'];
bool iOShidOn = methodCall.arguments['iOShidOn'];
}
3.64. RECEIVED_PRESENTATION_MODE¶
Receive the presentation mode status in this callback method when calling the method getPresentationMode.
Parameters¶
argument name |
type |
Description |
isOn |
bool |
true: on; false: off |
Sample code¶
if (asreaderSdk4Plugin.RECEIVED_PRESENTATION_MODE == methodCall.method) {
bool isOn = methodCall.arguments['isOn'];
}
3.65. RECEIVED_SLEEP_BEEP¶
When you call one of the methods below, this callback method receives the AsReader’s auto-sleep and auto-sleep time settings.
Parameters¶
argument name |
type |
Description |
result |
Uint8List |
data |
Sample code¶
if (asreaderSdk4Plugin.RECEIVED_SLEEP_BEEP == methodCall.method) {
Uint8List data = methodCall.arguments['result'];
}
3.66. RECEIVED_BARCODE_SET_SSI_SUCCESS¶
When calling the method setSsiParamWithDictionary, this callback method receives the SSI parameter setting results.
Parameters¶
argument name |
type |
Description |
result |
Uint8List |
data |
Sample code¶
if (asreaderSdk4Plugin.RECEIVED_BARCODE_SET_SSI_SUCCESS == methodCall.method) {
Uint8List data = methodCall.arguments['result'];
}
3.67. RECEIVED_SYMBOLOGIES¶
When calling the method getSymbologies, this callback method receives the read status of the barcode type.
Parameters¶
argument name |
type |
Description |
dataArray |
List<Map<String, dynamic>> |
data |
Sample code¶
if (asreaderSdk4Plugin.RECEIVED_SYMBOLOGIES == methodCall.method) {
List<Map<String, dynamic>> dataArray = methodCall.arguments['dataArray'];
for (Map<String, dynamic> map in dataArray) {
String key = map['key'];
int number = map['number'];
int status = map['status'];
String name = map['name'];
}
}
3.68. RECEIVED_GET_AUTO_LAUNCH¶
When calling the method getAutoLaunch, this callback method receives the auto-launch status of the app.
Parameters¶
argument name |
type |
Description |
isOn |
bool |
Autostart status |
data |
String |
bundleId |
Sample code¶
if (asreaderSdk4Plugin.RECEIVED_GET_AUTO_LAUNCH == methodCall.method) {
bool isOn = methodCall.arguments['isOn'];
String data = methodCall.arguments['data'];
}
3.69. RECEIVED_BARCODE_SECURITY¶
Returns the barcode security level. Called back after executing the method “getSecurity”. When calling the method getSecurity, this callback method receives the security level of the barcode.
Parameters¶
argument name |
type |
Description |
dataArray |
List<Map<String, dynamic>> |
data |
Sample code¶
if (asreaderSdk4Plugin.RECEIVED_BARCODE_SECURITY == methodCall.method) {
List<Map<String, dynamic>> dataArray = methodCall.arguments['dataArray'];
for (Map<String, dynamic> map in dataArray) {
String key = map['key'];
int number = map['number'];
int status = map['status'];
String name = map['name'];
}
}
3.70. DID_SET_BEEP¶
When calling the method setBeep, this callback method receives the AsReader’s beep, vibration, LED, and aiming settings results.
Parameters¶
argument name |
type |
Description |
result |
int |
Beep ON: 0xFF, Beep OFF: 0x00 |
Sample code¶
if (asreaderSdk4Plugin.DID_SET_BEEP == methodCall.method) {
int status = methodCall.arguments['result'];
}
3.71. QUERY_PARAM_RECEIVED¶
When calling the method getFhLbtParameter, this callback method receives the FH and LBT parameter acquisition results.
Parameters¶
argument name |
type |
Description |
result |
Uint8List |
DR(1bit), M(2bit), TRext(1bit), Sel(2bit), Session(2bit), Target(1bit), Q(4bit) |
Sample code¶
if (asreaderSdk4Plugin.QUERY_PARAM_RECEIVED == methodCall.method) {
Uint8List data = methodCall.arguments['result'];
}
3.72. FREQ_HP_TABLE_RECEIVED¶
When calling the method getFhLbtParameter, this callback method receives the FH and LBT parameter acquisition results.
Parameters¶
argument name |
type |
Description |
result |
int |
FH: Enable: 0x01 or over, disable: 0x00 |
Sample code¶
if (asreaderSdk4Plugin.FREQ_HP_TABLE_RECEIVED == methodCall.method) {
int status = methodCall.arguments['result'];
}
3.73. DID_SET_FREQ_HP_TABLE¶
When calling the method setFhLbtParameter, this callback method receives the FH and LBT parameter setting results.
Parameters¶
argument name |
type |
Description |
result |
int |
Success: 0x00 |
Sample code¶
if (asreaderSdk4Plugin.DID_SET_FREQ_HP_TABLE == methodCall.method) {
int status = methodCall.arguments['result'];
}
3.74. RESPONSE_GET_FH_MODE¶
When calling the method setFrequencyHoppingMode, this callback method receives the hopping mode setting result.
Sample code¶
if (asreaderSdk4Plugin.RESPONSE_GET_FH_MODE == methodCall.method) {
}
3.75. REGISTERY_ITEM_RECEIVED¶
When calling the method getRegistryItem, this callback method receives the result of retrieving the registry table.
Parameters¶
argument name |
type |
Description |
result |
Uint8List |
data |
Sample code¶
if (asreaderSdk4Plugin.REGISTERY_ITEM_RECEIVED == methodCall.method) {
Uint8List data = methodCall.arguments['result'];
}
3.76. DID_GET_AUTO_OFF_TIME_RECEIVED¶
When calling the method getAutoOffTime, the automatic off time of AsReader will be received in this callback method.
⚠️ Attention This feature is only compatible with some modelssuch as ASR-M30S, ASR-025S.
Parameters¶
argument name |
type |
Description |
result |
int |
Device auto-off time |
Sample code¶
if (asreaderSdk4Plugin.DID_GET_AUTO_OFF_TIME_RECEIVED == methodCall.method) {
int time = methodCall.arguments['result'];
}
3.77. DID_SET_AUTO_OFF_TIME¶
When calling the method setAutoOffTime, the result of setting the automatic off time of AsReader will be received in this callback method.
⚠️ Attention This feature is only compatible with some modelssuch as ASR-M30S, ASR-025S.
Parameters¶
argument name |
type |
Description |
result |
int |
0: Success Other: Failure |
Sample code¶
if (asreaderSdk4Plugin.DID_SET_AUTO_OFF_TIME == methodCall.method) {
int status = methodCall.arguments['result'];
}
3.78. DID_GET_CONTINUOUS_MODE_RECEIVED¶
When calling the method getContinuousMode, this callback method receives whether it is continuous scanning.
⚠️ Attention This feature is supported only on some models, such as ASR-M30S.
Parameters¶
argument name |
type |
Description |
result |
bool |
true: continuous drawing false: continuous drawing |
Sample code¶
if (asreaderSdk4Plugin.DID_GET_CONTINUOUS_MODE_RECEIVED == methodCall.method) {
bool status = methodCall.arguments['result'];
}
3.79. DID_SET_CONTINUOUS_MODE¶
When calling the method setContinuousMode, the continuous scan settings result will be received in this callback method.
⚠️ Attention This feature is supported only on some models, such as ASR-M30S.
Parameters¶
argument name |
type |
Description |
result |
int |
0: Success Other: Failure |
Sample code¶
if (asreaderSdk4Plugin.DID_SET_CONTINUOUS_MODE == methodCall.method) {
int status = methodCall.arguments['result'];
}
3.80. DID_GET_HID_MODE_RECEIVED¶
When calling the method getHidMode, AsReader receives whether it is in HID mode in this callback method.
⚠️ Attention This feature is supported only on some models, such as ASR-M30S.
Parameters¶
argument name |
type |
Description |
result |
bool |
true: HID mode false: not HID mode |
Sample code¶
if (asreaderSdk4Plugin.DID_GET_HID_MODE_RECEIVED == methodCall.method) {
bool status = methodCall.arguments['result'];
}
3.81. DID_SET_HID_MODE¶
When calling the method setHidMode, the HID mode setting result of AsReader is received in this callback method.
⚠️ Attention This feature is supported only on some models, such as ASR-M30S.
Parameters¶
argument name |
type |
Description |
result |
int |
0: Success Other: Failure |
Sample code¶
if (asreaderSdk4Plugin.DID_SET_HID_MODE == methodCall.method) {
int status = methodCall.arguments['result'];
}
3.82. DID_GET_Q_VALUE_RECEIVED¶
When calling the method getQValue, the Q value of AsReader will be received in this callback method.
⚠️ Attention This feature is supported only on some models, such as ASR-M30S.
Parameters¶
argument name |
type |
Description |
result |
String |
Q value |
Sample code¶
if (asreaderSdk4Plugin.DID_GET_Q_VALUE_RECEIVED == methodCall.method) {
String value = methodCall.arguments['result'];
}
3.83. DID_SET_Q_VALUE¶
When calling the method setQValue, this callback method receives the Q value setting result.
⚠️ Attention This feature is supported only on some models, such as ASR-M30S.
Parameters¶
argument name |
type |
Description |
result |
int |
0: Success Other: Failure |
Sample code¶
if (asreaderSdk4Plugin.DID_SET_Q_VALUE == methodCall.method) {
int status = methodCall.arguments['result'];
}
3.84. DID_GET_SESSION_FLAG_RECEIVED¶
When calling the method getSessionFlag, the SessionFlag of AsReader is received in this callback method.
⚠️ Attention This feature is supported only on some models, such as ASR-M30S.
Parameters¶
argument name |
type |
Description |
result |
int |
SessionFlag |
Sample code¶
if (asreaderSdk4Plugin.DID_GET_SESSION_FLAG_RECEIVED == methodCall.method) {
int value = methodCall.arguments['result'];
}
3.85. DID_SET_SESSION_FLAG¶
When calling the method setSessionFlag, the SessionFlag setting result will be received in this callback method.
⚠️ Attention This feature is supported only on some models, such as ASR-M30S.
Parameters¶
argument name |
type |
Description |
result |
int |
0: Success Other: Failure |
Sample code¶
if (asreaderSdk4Plugin.DID_SET_SESSION_FLAG == methodCall.method) {
int status = methodCall.arguments['result'];
}
3.86. DID_GET_DUTY_RATIO_RECEIVED¶
When calling the method getDutyRatio, the duty ratio of AsReader is received in this callback method.
⚠️ Attention This feature is supported only on some models, such as ASR-M30S.
Parameters¶
argument name |
type |
Description |
result |
int |
Space ratio |
Sample code¶
if (asreaderSdk4Plugin.DID_GET_DUTY_RATIO_RECEIVED == methodCall.method) {
int value = methodCall.arguments['result'];
}
3.87. DID_SET_DUTY_RATIO¶
When calling the method setDutyRatio, the AsReader duty ratio setting result will be received in this callback method.
⚠️ Attention This feature is supported only on some models, such as ASR-M30S.
Parameters¶
argument name |
type |
Description |
result |
int |
0: Success Other: Failure |
Sample code¶
if (asreaderSdk4Plugin.DID_SET_DUTY_RATIO == methodCall.method) {
int status = methodCall.arguments['result'];
}
3.88. DID_GET_DUTY_RATIO_BASE_TIME_RECEIVED¶
When calling the method getDutyRatioBaseTime, the duty ratio reference time of AsReader is received in this callback method.
⚠️ Attention This feature is supported only on some models, such as ASR-M30S.
Parameters¶
argument name |
type |
Description |
result |
int |
standard time |
Sample code¶
if (asreaderSdk4Plugin.DID_GET_DUTY_RATIO_BASE_TIME_RECEIVED == methodCall.method) {
int value = methodCall.arguments['result'];
}
3.89. DID_SET_DUTY_RATIO_BASE_TIME¶
When calling the method setDutyRatioBaseTime, the AsReader duty ratio reference time setting result will be received in this callback method.
⚠️ Attention This feature is supported only on some models, such as ASR-M30S.
Parameters¶
argument name |
type |
Description |
result |
int |
0: Success Other: Failure |
Sample code¶
if (asreaderSdk4Plugin.DID_SET_DUTY_RATIO_BASE_TIME == methodCall.method) {
int status = methodCall.arguments['result'];
}
3.90. RECEIVED_SCAN_BARCODE_DATA¶
Tells the scanned data and data type when calling the method startBarcodeScan.
⚠️ Attention This feature is only compatible with some models, such as ASR-025S.
Parameters¶
argument name |
type |
Description |
result |
Uint8List |
scanned data |
barcodeType |
String |
Data type |
Sample code¶
if (asreaderSdk4Plugin.RECEIVED_SCAN_BARCODE_DATA == methodCall.method) {
Uint8List byteData = methodCall.arguments['result'];
String barcodeType = methodCall.arguments['barcodeType'];
}
3.91. DID_GET_SLEEP_BUZZER_RECEIVED¶
By calling the method getSleepBuzzer, you can receive the buzzer settings for auto-off of AsReader in the callback method.
⚠️ Attention This feature is only compatible with some models, such as ASR-025S.
Parameters¶
argument name |
type |
Description |
result |
int |
0: Buzzer On Others: Buzzer Off |
Sample code¶
if (asreaderSdk4Plugin.DID_GET_SLEEP_BUZZER_RECEIVED == methodCall.method) {
int sleepBuzzer = methodCall.arguments['result'];
}
3.92. DID_SET_SLEEP_BUZZER¶
When you call the method setSleepBuzzer, this callback method receives the settings for the buzzer when AsReader auto-offs.
⚠️ Attention This feature is only compatible with some models, such as ASR-025S.
Parameters¶
argument name |
type |
Description |
result |
int |
0: Success Other: Failure |
Sample code¶
if (asreaderSdk4Plugin.DID_SET_SLEEP_BUZZER == methodCall.method) {
int status = methodCall.arguments['result'];
}
3.93. DID_GET_BARCODE_TIME_OUT_RECEIVED¶
When you call the method getBarcodeTimeOut, this callback method receives the AsReader’s barcode scanning timeout time.
⚠️ Attention This feature is only compatible with some models, such as ASR-025S.
Parameters¶
argument name |
type |
Description |
result |
int |
Scan timeout period |
Sample code¶
if (asreaderSdk4Plugin.DID_GET_BARCODE_TIME_OUT_RECEIVED == methodCall.method) {
int timeout = methodCall.arguments['result'];
}
3.94. DID_SET_BARCODE_TIME_OUT¶
When you call the method setBarcodeTimeOut, this callback method receives the AsReader’s barcode scanning timeout setting.
⚠️ Attention This feature is only compatible with some models, such as ASR-025S.
Parameters¶
argument name |
type |
Description |
result |
int |
0: Success Other: Failure |
Sample code¶
if (asreaderSdk4Plugin.DID_SET_BARCODE_TIME_OUT == methodCall.method) {
int status = methodCall.arguments['result'];
}