クラス BarcodeManager
java.lang.Object
jp.co.asterisk.asreader.barcodemanager.BarcodeManager
- すべての実装されたインタフェース:
jp.co.asterisk.asreader.barcodemanager.parse.BarcodePacketParserCallback
,jp.co.asterisk.asreader.communicationmanager.CommunicationBarcodeCallback
public class BarcodeManager
extends Object
implements jp.co.asterisk.asreader.communicationmanager.CommunicationBarcodeCallback, jp.co.asterisk.asreader.barcodemanager.parse.BarcodePacketParserCallback
This class can control about barcode(modules) and has functions for reading, stopping, and setting barcodes.
-
メソッドの概要
修飾子とタイプメソッド説明void
Resets a module to the factory default settings.void
getBarcodeSettings
(BarcodeConst.BarcodeSettings settingsType) Get Barcode settings
Callback Method :BarcodeManagerCallback.onReceivedResponse(BarcodeConst.BarcodeCommandAction, BarcodeResult)
Get current Character status.Get current decode mode.Gets the currently set encoding mode.void
Get current Format settings
This argument should be set to eitherBarcodeConst.MemoryType
.static BarcodeManager
Get BarcodeManager instance.void
Get NOTIS editing option
Callback Method :BarcodeManagerCallback.onReceivedResponse(BarcodeConst.BarcodeCommandAction, BarcodeResult)
void
Get current settings of Stop condition.void
getSymbologySettings
(ArrayList<Symbology> symbologyList) void
getSymbologySettings
(Symbology symbology) Get Symbology settings
Callback Method :BarcodeManagerCallback.onReceivedResponse(BarcodeConst.BarcodeCommandAction, BarcodeResult)
Get sound type of Settings Beep.void
initialize
(android.content.Context context) Initializesvoid
onConnectedStatus
(boolean status) void
onExecuteTriggerAutoMode
(boolean executeMode) void
onParsedBarcodeDecodeData
(byte[] decodeData) void
void
onParsedBarcodeResponse
(BarcodeConst.BarcodeCommandAction action, BarcodeResult result) void
onReceivedData
(jp.co.asterisk.asreader.communicationmanager.packet.PacketModel packetModel, boolean isSSI) void
setBarcodeSettings
(BarcodeConst.MemoryType memoryType, BarcodeConst.BarcodeSettings settingsType) Set Barcode settings
Callback Method :BarcodeManagerCallback.onReceivedResponse(BarcodeConst.BarcodeCommandAction, BarcodeResult)
void
setCallback
(BarcodeManagerCallback callback) Set callback.void
Set current decode mode.void
Set encode mode.void
setNotisEditing
(BarcodeConst.MemoryType memoryType, boolean isEnabled) Set NOTIS editing option.void
setSymbologyAllEnable
(BarcodeConst.MemoryType memoryType, boolean isEnable) Set All Symbology settings
Callback Method :BarcodeManagerCallback.onReceivedResponse(BarcodeConst.BarcodeCommandAction, BarcodeResult)
void
setSymbologySettings
(BarcodeConst.MemoryType memoryType, ArrayList<SymbologyInfoModel> symbologyInfoList) Set Symbologies settings
Callback Method :BarcodeManagerCallback.onReceivedResponse(BarcodeConst.BarcodeCommandAction, BarcodeResult)
void
setSymbologySettings
(BarcodeConst.MemoryType memoryType, Symbology symbology, boolean isEnable) Set Symbology settingsvoid
Set sound type of Settings Beep.void
Start decode.void
startDecode
(int count, int time) Starts to scan barcode.void
Stops scanning barcode.
-
メソッドの詳細
-
getInstance
Get BarcodeManager instance.- 戻り値:
- BarcodeManager instance
-
getCharacterStatus
Get current Character status.- 戻り値:
- Character state returns as
BarcodeConst.BarcodeSettings
.
-
setCallback
Set callback.- パラメータ:
callback
- Set the instance that will receive the callback. See for callback details.
-
setDecodeMode
Set current decode mode. -
getDecodeMode
Get current decode mode. -
setEncodeMode
Set encode mode.- パラメータ:
mode
-BarcodeConst.QREncodeMode
-
getEncodeMode
Gets the currently set encoding mode. -
initialize
public void initialize(android.content.Context context) Initializes. ※ Addition : It is called by the initialization of the AsReader class, so it does not need to be called explicitly.- パラメータ:
context
- : Application context
-
startDecode
public void startDecode() -
startDecode
public void startDecode(@IntRange(from=0L,to=255L) int count, @IntRange(from=0L,to=255L) int time) Starts to scan barcode.
Callback Method :BarcodeManagerCallback.onReceivedBarcodeDecodeData(String, Map)
- パラメータ:
count
- Stop count to scan (0 to 255)time
- Stop time (0 to 255)
-
stopDecode
public void stopDecode()Stops scanning barcode. -
factoryDefault
public void factoryDefault()Resets a module to the factory default settings.
Callback Method :BarcodeManagerCallback.onReceivedResponse(BarcodeConst.BarcodeCommandAction, BarcodeResult)
-
getStopCondition
public void getStopCondition()Get current settings of Stop condition.
Callback Method :BarcodeManagerCallback.onReceivedResponse(BarcodeConst.BarcodeCommandAction, BarcodeResult)
()} -
setBarcodeSettings
public void setBarcodeSettings(BarcodeConst.MemoryType memoryType, BarcodeConst.BarcodeSettings settingsType) Set Barcode settings
Callback Method :BarcodeManagerCallback.onReceivedResponse(BarcodeConst.BarcodeCommandAction, BarcodeResult)
- パラメータ:
memoryType
- : Memory type setting.
This argument should be set to eitherBarcodeConst.MemoryType
.settingsType
- :BarcodeConst.BarcodeSettings
-
getBarcodeSettings
Get Barcode settings
Callback Method :BarcodeManagerCallback.onReceivedResponse(BarcodeConst.BarcodeCommandAction, BarcodeResult)
- パラメータ:
settingsType
-BarcodeConst.BarcodeSettings
-
setSymbologyAllEnable
Set All Symbology settings
Callback Method :BarcodeManagerCallback.onReceivedResponse(BarcodeConst.BarcodeCommandAction, BarcodeResult)
- パラメータ:
memoryType
- Memory type setting.
This argument should be set to eitherBarcodeConst.MemoryType
.isEnable
- true : Enable barcode reading all symbol. false : Disable barcode reading all symbol.
-
setSymbologySettings
public void setSymbologySettings(BarcodeConst.MemoryType memoryType, Symbology symbology, boolean isEnable) Set Symbology settings- パラメータ:
memoryType
- Memory type setting.
This argument should be set to eitherBarcodeConst.MemoryType
.symbology
- Specifies the symbol from which the settings are to be obtained.Symbology
isEnable
- true : Enable barcode reading specified by symbology. false : Disable barcode reading specified by symbology.
-
setSymbologySettings
public void setSymbologySettings(BarcodeConst.MemoryType memoryType, ArrayList<SymbologyInfoModel> symbologyInfoList) Set Symbologies settings
Callback Method :BarcodeManagerCallback.onReceivedResponse(BarcodeConst.BarcodeCommandAction, BarcodeResult)
- パラメータ:
memoryType
- : Memory type setting.
This argument should be set to eitherBarcodeConst.MemoryType
.symbologyInfoList
- : Specify the barcode symbols to be set in theSymbologyInfoModel
array.
-
getSymbologySettings
Get Symbology settings
Callback Method :BarcodeManagerCallback.onReceivedResponse(BarcodeConst.BarcodeCommandAction, BarcodeResult)
- パラメータ:
symbology
- : Specifies the symbol from which the settings are to be obtained.Symbology
-
getSymbologySettings
Get Symbology settings
Callback Method :BarcodeManagerCallback.onReceivedResponse(BarcodeConst.BarcodeCommandAction, BarcodeResult)
BarcodeManagerCallback.onReceivedBarcodeDecodeData(String, Map<String, String>)
- パラメータ:
symbologyList
- : Specify multiple symbols as an array from which to obtain setSymbologyInfoModel
.
-
getFormatStatus
public void getFormatStatus()Get current Format settings
This argument should be set to eitherBarcodeConst.MemoryType
. -
getSystemBeep
Get sound type of Settings Beep.- 戻り値:
- SSICommandModel.SystemBeep
-
setSystemBeep
Set sound type of Settings Beep.- パラメータ:
type
- Set beep sound type :BarcodeConst.SystemBeepSoundType
-
setNotisEditing
Set NOTIS editing option.
Callback Method :BarcodeManagerCallback.onReceivedResponse(BarcodeConst.BarcodeCommandAction, BarcodeResult)
- パラメータ:
isEnabled
- If true, NOTIS editing will be activated. If false, it wouldn't.memoryType
- Set memory type :BarcodeConst.MemoryType
-
getNotisEditing
public void getNotisEditing()Get NOTIS editing option
Callback Method :BarcodeManagerCallback.onReceivedResponse(BarcodeConst.BarcodeCommandAction, BarcodeResult)
-
onReceivedData
public void onReceivedData(jp.co.asterisk.asreader.communicationmanager.packet.PacketModel packetModel, boolean isSSI) - 定義:
onReceivedData
インタフェース内jp.co.asterisk.asreader.communicationmanager.CommunicationBarcodeCallback
-
onExecuteTriggerAutoMode
public void onExecuteTriggerAutoMode(boolean executeMode) - 定義:
onExecuteTriggerAutoMode
インタフェース内jp.co.asterisk.asreader.communicationmanager.CommunicationBarcodeCallback
-
onConnectedStatus
public void onConnectedStatus(boolean status) - 定義:
onConnectedStatus
インタフェース内jp.co.asterisk.asreader.communicationmanager.CommunicationBarcodeCallback
-
onParsedBarcodeDecodeData
public void onParsedBarcodeDecodeData(byte[] decodeData) - 定義:
onParsedBarcodeDecodeData
インタフェース内jp.co.asterisk.asreader.barcodemanager.parse.BarcodePacketParserCallback
-
onParsedBarcodeError
- 定義:
onParsedBarcodeError
インタフェース内jp.co.asterisk.asreader.barcodemanager.parse.BarcodePacketParserCallback
-
onParsedBarcodeResponse
- 定義:
onParsedBarcodeResponse
インタフェース内jp.co.asterisk.asreader.barcodemanager.parse.BarcodePacketParserCallback
-