# Method List ## getPlatformVersion Retrieves the platform version. ```dart Future getPlatformVersion() ``` ### Return Value ```{list-table} :align: left :class: list-table * - Type - Description * - Future - Platform version ```
## getSDKVersion Retrieves the SDK version. ```dart Future getSDKVersion() ``` ### Return Value ```{list-table} :align: left :class: list-table * - Type - Description * - Future - SDK version ```
## setConnectionType Performs initialization settings based on the connection type. ```dart Future setConnectionType(ConnectionType connectionType) ``` ### Parameters ```{list-table} :align: left :class: list-table * - Parameter - Type - Description * - connectionType - ConnectionType - [ConnectionType](enum.md#connection-type) ```
## setLogLevel Sets the log level. ```dart Future setLogLevel(LogLevel logLevel) ``` ### Parameters ```{list-table} :align: left :class: list-table * - Parameter - Type - Description * - logLevel - LogLevel - [LogLevel](enum.md#log-level) ```
## getLogLevel Retrieves the log level. ```dart Future getLogLevel() ``` ### Return Value ```{list-table} :align: left :class: list-table * - Type - Description * - Future - Refer to [LogLevel](enum.md#log-level) ```
## setLog Enables or disables log output within the SDK. ```dart Future setLog(bool enable) ``` ### Parameters ```{list-table} :align: left :class: list-table * - Parameter - Type - Description * - enable - bool - true: output logs
false: do not output logs ```
## removeSDKLog Deletes all log files. ```dart Future removeSDKLog() ```
## enableAutoLaunchApp Sets whether the app should automatically launch when connecting to the M24D. ```dart Future enableAutoLaunchApp(bool enable, String aliasName) ``` ### Parameters ```{list-table} :align: left :class: list-table * - Parameter - Type - Description * - enable - bool - Sets whether the demo app automatically launches when connecting to the M24D
true: automatically launch
false: do not automatically launch * - aliasName - String - Activity flag ```
## getCharacterStatus Retrieves the decode status. ```dart Future getCharacterStatus() ``` ### Return Value ```{list-table} :align: left :class: list-table * - Type - Description * - Future - [BarcodeSettings](enum.md#barcodesettings) ```
## setDecodeMode Sets the decode mode. You can set either `BarcodeSettings.DECODE_MODE_CONTINUOUS` or `BarcodeSettings.DECODE_MODE_SINGLE`. ```dart Future setDecodeMode(BarcodeSettings mode) ``` ### Parameters ```{list-table} :align: left :class: list-table * - Parameter - Type - Description * - mode - BarcodeSettings - [BarcodeSettings](enum.md#barcodesettings) ```
## getDecodeMode Retrieves the decode mode. ```dart Future getDecodeMode() ``` ### Return Value ```{list-table} :align: left :class: list-table * - Type - Description * - Future - [BarcodeSettings](enum.md#barcodesettings) ```
## setEncodeMode Sets the encode mode. ```dart Future setEncodeMode(QREncodeMode qrEncodeMode) ``` ### Parameters ```{list-table} :align: left :class: list-table * - Parameter - Type - Description * - qrEncodeMode - QREncodeMode - [QREncodeMode](enum.md#qrencodemode) ```
## getEncodeMode Retrieves the encode mode. ```dart Future getEncodeMode() ``` ### Return Value ```{list-table} :align: left :class: list-table * - Type - Description * - Future - [QREncodeMode](enum.md#qrencodemode) ```
## startDecode Starts decoding. After executing this method, the scanned data can be received via the callback methods: [ON_RECEIVED_BARCODE_DECODE_DATA](callbacks.md#on-received-barcode-decode-data) [ON_RECEIVED_BARCODE_DECODE_DATA_BYTE](callbacks.md#on-received-barcode-decode-databyte). ```dart Future startDecode() ```
## startDecode Starts decoding. After executing this method, the scanned data can be received via the callback methods: [ON_RECEIVED_BARCODE_DECODE_DATA](callbacks.md#on-received-barcode-decode-data) [ON_RECEIVED_BARCODE_DECODE_DATA_BYTE](callbacks.md#on-received-barcode-decode-databyte). ```dart Future startDecode() ```
### Parameters ```{list-table} :align: left :class: list-table * - Parameter - Type - Description * - count - int - Number of scans (0–255) * - time - int - Scan duration (0–255) ```
## getStopCondition Retrieves the configured stop condition. After executing this method, the result can be received via the callback method [ON_RECEIVED_RESPONSE](callbacks.md#on-received-response). ```dart Future getStopCondition() ```
## stopDecode Stops decoding. ```dart Future stopDecode() ```
## factoryDefault Resets the AsReader module to factory default settings. After executing this method, the result can be received via the callback method [ON_RECEIVED_RESPONSE](callbacks.md#on-received-response). ```dart Future factoryDefault() ```
## setBarcodeSettings Sets the barcode configuration. After executing this method, the result can be received via the callback method [ON_RECEIVED_RESPONSE](callbacks.md#on-received-response). ```dart Future setBarcodeSettings(MemoryType memoryType, BarcodeSettings settingsType) ``` ### Parameters ```{list-table} :align: left :class: list-table * - Parameter - Type - Description * - memoryType - MemoryType - [MemoryType](enum.md#memorytype) * - settingsType - BarcodeSettings - [BarcodeSettings](enum.md#barcodesettings) ```
## getBarcodeSettings Retrieves the barcode configuration. After executing this method, the result can be received via the callback method [ON_RECEIVED_RESPONSE](callbacks.md#on-received-response). ```dart Future getBarcodeSettings(BarcodeSettings settingsType) ``` ### Parameters ```{list-table} :align: left :class: list-table * - Parameter - Type - Description * - settingsType - BarcodeSettings - [BarcodeSettings](enum.md#barcodesettings) ```
## setSymbologyAllEnable Sets the On/Off state for all barcode types. After executing this method, the result can be received via the callback method [ON_RECEIVED_RESPONSE](callbacks.md#on-received-response). ```dart Future setSymbologyAllEnable(MemoryType memoryType, bool isEnable) ``` ### Parameters ```{list-table} :align: left :class: list-table * - Parameter - Type - Description * - memoryType - MemoryType - [MemoryType](enum.md#memorytype) * - isEnable - bool - Turns reading of all barcode types On/Off
true: On
false: Off ```
## setSymbologySettings Sets the On/Off state for the current barcode type. After executing this method, the result can be received via the callback method [ON_RECEIVED_RESPONSE](callbacks.md#on-received-response). ```dart Future setSymbologySettings(MemoryType memoryType, Symbology symbology, bool isEnable) ``` ### Parameters ```{list-table} :align: left :class: list-table * - Parameter - Type - Description * - memoryType - MemoryType - [MemoryType](enum.md#memorytype) * - symbology - Symbology - [Symbology](enum.md#symbology) * - isEnable - bool - Turns reading of the current barcode type On/Off
true: On
false: Off ```
## setSymbologyListSettings Sets the On/Off state for barcode types. After executing this method, the result can be received via the callback method [ON_RECEIVED_RESPONSE](callbacks.md#on-received-response). ```dart Future setSymbologyListSettings(MemoryType memoryType, List symbologyInfoList) ``` ### Parameters ```{list-table} :align: left :class: list-table * - Parameter - Type - Description * - memoryType - MemoryType - [MemoryType](enum.md#memorytype) * - symbologyInfoList - List - Array of [SymbologyInfoModel](symbology_info.md#symbology-info-model) ```
## setOCRSettings Sets whether the specified type of OCR should be read. ```dart Future setOCRSettings(MemoryType memoryType, OCR ocr, bool isEnable) ``` ### Parameters ```{list-table} :align: left :class: list-table * - Parameter - Type - Description * - memoryType - MemoryType - [MemoryType](enum.md#memorytype) * - ocr - OCR - [OCR](enum.md#ocr) * - isEnable - bool - Turns reading of the specified OCR type On/Off
true: On
false: Off ```
## setOCRListSettings Sets whether the specified types of OCR should be read. After executing this method, the result can be received via the callback method [ON_RECEIVED_RESPONSE](callbacks.md#on-received-response). ```dart Future setOCRListSettings(MemoryType memoryType, List ocrInfoList) ``` ### Parameters ```{list-table} :align: left :class: list-table * - Parameter - Type - Description * - memoryType - MemoryType - [MemoryType](enum.md#memorytype) * - ocrInfoList - List - Array of [OCRInfoModel](ocr_info.md#ocr-info-model) ```
## getSymbologySettings Retrieves the current barcode configuration. After executing this method, the result can be received via the callback method [ON_RECEIVED_RESPONSE](callbacks.md#on-received-response). ```dart Future getSymbologySettings(Symbology symbology) ``` ### Parameters ```{list-table} :align: left :class: list-table * - Parameter - Type - Description * - symbology - Symbology - [Symbology](enum.md#symbology) ```
## getSymbologySettingsList Retrieves barcode configurations. After executing this method, the result can be received via the callback method [ON_RECEIVED_RESPONSE](callbacks.md#on-received-response). ```dart Future getSymbologySettingsList(List symbologyList) ``` ### Parameters ```{list-table} :align: left :class: list-table * - Parameter - Type - Description * - symbologyList - List - Array of [Symbology](enum.md#symbology) ```
## getOCRSettings Retrieves OCR configuration. After executing this method, the result can be received via the callback method [ON_RECEIVED_RESPONSE](callbacks.md#on-received-response). ```dart Future getOCRSettings(OCR ocr) ``` ### Parameters ```{list-table} :align: left :class: list-table * - Parameter - Type - Description * - ocr - OCR - [OCR](enum.md#ocr) ```
## getOCRSettingsList Retrieves OCR configurations. After executing this method, the result can be received via the callback method [ON_RECEIVED_RESPONSE](callbacks.md#on-received-response). ```dart Future getOCRSettingsList(List ocrList) ``` ### Parameters ```{list-table} :align: left :class: list-table * - Parameter - Type - Description * - ocrList - List - Array of [OCR](enum.md#ocr) ```
## getSystemBeep Retrieves the type of beep sound. ```dart Future getSystemBeep() ``` ### Return Value ```{list-table} :align: left :class: list-table * - Type - Description * - Future - [SystemBeepSoundType](enum.md#systembeepsoundtype) ```
## getNotisEditing Retrieves the Notis editing configuration. After executing this method, the result can be received via the callback method [ON_RECEIVED_RESPONSE](callbacks.md#on-received-response). ```dart Future getNotisEditing() ```
## setNotisEditing Sets On/Off for Notis editing. ```dart Future setNotisEditing(MemoryType memoryType, bool isEnabled) ``` ### Parameters ```{list-table} :align: left :class: list-table * - Parameter - Type - Description * - memoryType - MemoryType - [MemoryType](enum.md#memorytype) * - isEnabled - bool - Turns Notis editing On/Off
true: On
false: Off ```
## setPresentationMode Sets the trigger key mode. TRIGGER_PRESENTATION: Presentation mode enabled TRIGGER_STANDARD: Presentation mode disabled ```dart Future setPresentationMode(MemoryType memoryType, BarcodeSettings settingsType) ``` ### Parameters ```{list-table} :align: left :class: list-table * - Parameter - Type - Description * - memoryType - MemoryType - [MemoryType](enum.md#memorytype) * - settingsType - BarcodeSettings - [BarcodeSettings](enum.md#barcodesettings) ```
## getPresentationMode Retrieves the configured trigger key mode. After executing this method, the result can be received via the callback method [ON_RECEIVED_RESPONSE](callbacks.md#on-received-response). ```dart Future getPresentationMode() ```
## isConnected Retrieves the connection status. ```dart Future isConnected() ``` ### Return Value ```{list-table} :align: left :class: list-table * - Type - Description * - Future - Connection status ```
## setTriggerMode Sets the trigger mode. ```dart Future setTriggerMode(TriggerMode mode) ``` ### Parameters ```{list-table} :align: left :class: list-table * - Parameter - Type - Description * - mode - TriggerMode - [TriggerMode](enum.md#triggermode) ```
## getTriggerMode Retrieves the trigger mode. ```dart Future getTriggerMode() ``` ### Return Value ```{list-table} :align: left :class: list-table * - Type - Description * - Future - [TriggerMode](enum.md#triggermode) ```
## isOpen Retrieves the connection session status. ```dart Future isOpen() ``` ### Return Value ```{list-table} :align: left :class: list-table * - Type - Description * - Future - Connection session status
true: Session On
false: Session Off ```
## open Opens the connection session. ```dart Future open() ```
## close Turns off the connection session. ```dart Future close() ```
## setReaderSettings Sets the following parameters on the AsReader: ```dart Future setReaderSettings(bool beep, bool vib, bool aimer, bool led, bool powerOnBeep) ``` ### Parameters ```{list-table} :align: left :class: list-table * - Parameter - Type - Description * - beep - bool - Beep
true: On
false: Off * - vib - bool - Vibration
true: On
false: Off * - aimer - bool - Aiming
true: On
false: Off * - led - bool - Light
true: On
false: Off * - powerOnBeep - bool - Power-On Beep
true: On
false: Off ```
## getReaderSettings Retrieves the AsReader settings. After executing this method, the result can be received via the callback method [ON_READER_SETTING_RECEIVED](callbacks.md#on-reader-setting-received). ```dart Future getReaderSettings() ```
## getReaderInfo Retrieves information about the AsReader. After executing this method, the information can be received via the callback method [ON_READER_INFO_RECEIVED](callbacks.md#on-reader-info-received). ```dart Future getReaderInfo() ```
## setSleepTime Sets the sleep time. ```dart Future setSleepTime(int sleepTime) ``` ### Parameters ```{list-table} :align: left :class: list-table * - Parameter - Type - Description * - sleepTime - int - Sleep time range: 1–255 (minutes), 0: No sleep ```
## getSleepTime Retrieves the sleep time. After executing this method, the information can be received via the callback method [ON_SLEEP_SETTING_RECEIVED](callbacks.md#on-sleep-setting-received). ```dart Future getSleepTime() ```
## setSleepBeep Sets whether the sleep feature should be used. ```dart Future setSleepBeep(bool isSleepBeepOn) ``` ### Parameters ```{list-table} :align: left :class: list-table * - Parameter - Type - Description * - isSleepBeepOn - bool - Turns sleep feature On/Off
true: On
false: Off ```
## getSleepBeep Retrieves the sleep time and sleep feature settings. After executing this method, the information can be received via the callback method [ON_SLEEP_SETTING_RECEIVED](callbacks.md#on-sleep-setting-received). ```dart Future getSleepBeep() ```
## setSleepTimeAndBeep Sets the sleep time and whether the sleep feature should be used. ```dart Future setSleepTimeAndBeep(int sleepTime, bool isSleepBeepOn) ``` ### Parameters ```{list-table} :align: left :class: list-table * - Parameter - Type - Description * - sleepTime - int - Sleep time * - isSleepBeepOn - bool - Turns the sleep feature On/Off
true: On
false: Off ```
## getSleepTimeAndBeep Retrieves the sleep time and sleep feature settings. After executing this method, the information can be received via the callback method [ON_SLEEP_SETTING_RECEIVED](callbacks.md#on-sleep-setting-received). ```dart Future getSleepTimeAndBeep() ```
## setHIDMode Sets whether to use HID mode. ```dart Future setHIDMode(HIDType hidMode) ``` ### Parameters ```{list-table} :align: left :class: list-table * - Parameter - Type - Description * - hidMode - HIDType - [HIDType](enum.md#hidtype) ```
## getHIDMode Retrieves whether HID mode is used. After executing this method, the HID mode information can be received via the callback method [ON_HID_MODE_RECEIVED](callbacks.md#on-hid-mode-received). ```dart Future getHIDMode() ```