public class BarcodeManager
extends java.lang.Object
implements jp.co.asterisk.asreader.communicationmanager.CommunicationBarcodeCallback, jp.co.asterisk.asreader.barcodemanager.parse.BarcodePacketParserCallback
修飾子とタイプ | メソッドと説明 |
---|---|
void |
checkCodeIdEnable() |
void |
factoryDefault()
Resets a module to the factory default settings.
|
void |
getBarcodeSettings(BarcodeConst.BarcodeSettings settingsType)
Get Barcode settings
Callback Method : BarcodeManagerCallback.onReceivedResponse(BarcodeConst.BarcodeCommandAction, BarcodeResult) |
BarcodeConst.BarcodeSettings |
getCharacterStatus()
Get current Character status.
|
BarcodeConst.BarcodeSettings |
getDecodeMode()
Get current decode mode.
|
BarcodeConst.QREncodeMode |
getEncodeMode()
Get encode mode.
|
void |
getFormatStatus()
Get current Format settings
This argument should be set to either BarcodeConst.MemoryType . |
static BarcodeManager |
getInstance()
Get BarcodeManager instance.
|
void |
getStopCondition()
Get current settings of Stop condition.
|
void |
getSymbologySettings(java.util.ArrayList<Symbology> symbologyList)
Get Symbology settings
Callback Method : BarcodeManagerCallback.onReceivedResponse(BarcodeConst.BarcodeCommandAction, BarcodeResult)
BarcodeManagerCallback#onReceivedBarcodeDecodeData(String, Map |
void |
getSymbologySettings(Symbology symbology)
Get Symbology settings
Callback Method : BarcodeManagerCallback.onReceivedResponse(BarcodeConst.BarcodeCommandAction, BarcodeResult) |
void |
initialize(android.content.Context context)
Initializes
|
void |
onConnectedStatus(boolean status) |
void |
onExecuteTriggerAutoMode(boolean executeMode) |
void |
onParsedBarcodeDecodeData(byte[] decodeData) |
void |
onParsedBarcodeError(BarcodeManagerError error) |
void |
onParsedBarcodeResponse(BarcodeConst.BarcodeCommandAction action,
BarcodeResult result) |
void |
onReceivedData(jp.co.asterisk.asreader.communicationmanager.packet.PacketModel packetModel)
Called when data related to BarcodeManager is received.
|
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 |
setDecodeMode(BarcodeConst.BarcodeSettings mode)
Set current decode mode.
|
void |
setEncodeMode(BarcodeConst.QREncodeMode mode)
Set encode mode.
|
void |
setStopCondition(int count,
int time)
Set settings of Stop condition.
|
void |
setSymbologyAllEnable(BarcodeConst.MemoryType memoryType,
boolean isEnable)
Set All Symbology settings
Callback Method : BarcodeManagerCallback.onReceivedResponse(BarcodeConst.BarcodeCommandAction, BarcodeResult) |
void |
setSymbologySettings(BarcodeConst.MemoryType memoryType,
java.util.ArrayList<SymbologyInfoModel> symbologyInfoList)
Set Symbologies settings
Callback Method : BarcodeManagerCallback.onReceivedResponse(BarcodeConst.BarcodeCommandAction, BarcodeResult) |
void |
setSymbologySettings(BarcodeConst.MemoryType memoryType,
Symbology symbology,
boolean isEnable)
Set Symbology settings
|
void |
startDecode()
Start decode.
|
void |
startDecode(int count,
int time)
Starts to scan barcode.
|
void |
stopDecode()
Stops scanning barcode.
|
public static BarcodeManager getInstance()
public BarcodeConst.BarcodeSettings getCharacterStatus()
BarcodeConst.BarcodeSettings
.public void setCallback(BarcodeManagerCallback callback)
callback
- Set the instance that will receive the callback.public void setDecodeMode(BarcodeConst.BarcodeSettings mode)
mode
- BarcodeConst.BarcodeSettings#DECODE_MODE_CONTINUOUS
or BarcodeConst.BarcodeSettings#DECODE_MODE_SINGLE
public BarcodeConst.BarcodeSettings getDecodeMode()
BarcodeConst.BarcodeSettings#DECODE_MODE_CONTINUOUS
or BarcodeConst.BarcodeSettings#DECODE_MODE_SINGLE
public void setEncodeMode(BarcodeConst.QREncodeMode mode)
mode
- BarcodeConst.QREncodeMode
public BarcodeConst.QREncodeMode getEncodeMode()
BarcodeConst.QREncodeMode
public void initialize(android.content.Context context)
public void startDecode()
public void startDecode(int count, int time)
BarcodeManagerCallback.onReceivedBarcodeDecodeData(String, Map)
count
- Stop count to scan (0 to 255)time
- Stop time (0 to 255)public void stopDecode()
public void factoryDefault()
BarcodeManagerCallback.onReceivedResponse(BarcodeConst.BarcodeCommandAction, BarcodeResult)
public void getStopCondition()
BarcodeManagerCallback.onReceivedResponse(BarcodeConst.BarcodeCommandAction, BarcodeResult)
()}public void setStopCondition(int count, int time)
BarcodeManagerCallback.onReceivedResponse(BarcodeConst.BarcodeCommandAction, BarcodeResult)
count
- count to scan (0 to 255)time
- time out to scan (0 to 255)public void setBarcodeSettings(BarcodeConst.MemoryType memoryType, BarcodeConst.BarcodeSettings settingsType)
BarcodeManagerCallback.onReceivedResponse(BarcodeConst.BarcodeCommandAction, BarcodeResult)
memoryType
- : Memory type setting.BarcodeConst.MemoryType
.settingsType
- : BarcodeConst.BarcodeSettings
public void getBarcodeSettings(BarcodeConst.BarcodeSettings settingsType)
BarcodeManagerCallback.onReceivedResponse(BarcodeConst.BarcodeCommandAction, BarcodeResult)
settingsType
- BarcodeConst.BarcodeSettings
public void setSymbologyAllEnable(BarcodeConst.MemoryType memoryType, boolean isEnable)
BarcodeManagerCallback.onReceivedResponse(BarcodeConst.BarcodeCommandAction, BarcodeResult)
memoryType
- Memory type setting.BarcodeConst.MemoryType
.isEnable
- true : Enable barcode reading all symbol. false : Disable barcode reading all symbol.public void setSymbologySettings(BarcodeConst.MemoryType memoryType, Symbology symbology, boolean isEnable)
memoryType
- Memory type setting.BarcodeConst.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.public void setSymbologySettings(BarcodeConst.MemoryType memoryType, java.util.ArrayList<SymbologyInfoModel> symbologyInfoList)
BarcodeManagerCallback.onReceivedResponse(BarcodeConst.BarcodeCommandAction, BarcodeResult)
memoryType
- : Memory type setting.BarcodeConst.MemoryType
.symbologyInfoList
- : Specify the barcode symbols to be set in the SymbologyInfoModel
array.public void getSymbologySettings(Symbology symbology)
BarcodeManagerCallback.onReceivedResponse(BarcodeConst.BarcodeCommandAction, BarcodeResult)
symbology
- : Specifies the symbol from which the settings are to be obtained.Symbology
public void getSymbologySettings(java.util.ArrayList<Symbology> symbologyList)
BarcodeManagerCallback.onReceivedResponse(BarcodeConst.BarcodeCommandAction, BarcodeResult)
BarcodeManagerCallback#onReceivedBarcodeDecodeData(String, Map)
symbologyList
- : Specify multiple symbols as an array from which to obtain set SymbologyInfoModel
.public void getFormatStatus()
BarcodeConst.MemoryType
.public void checkCodeIdEnable()
public void onReceivedData(jp.co.asterisk.asreader.communicationmanager.packet.PacketModel packetModel)
jp.co.asterisk.asreader.communicationmanager.CommunicationBarcodeCallback
onReceivedData
インタフェース内 jp.co.asterisk.asreader.communicationmanager.CommunicationBarcodeCallback
packetModel
- PacketModelpublic void onExecuteTriggerAutoMode(boolean executeMode)
onExecuteTriggerAutoMode
インタフェース内 jp.co.asterisk.asreader.communicationmanager.CommunicationBarcodeCallback
public void onConnectedStatus(boolean status)
onConnectedStatus
インタフェース内 jp.co.asterisk.asreader.communicationmanager.CommunicationBarcodeCallback
public void onParsedBarcodeDecodeData(byte[] decodeData)
onParsedBarcodeDecodeData
インタフェース内 jp.co.asterisk.asreader.barcodemanager.parse.BarcodePacketParserCallback
public void onParsedBarcodeError(BarcodeManagerError error)
onParsedBarcodeError
インタフェース内 jp.co.asterisk.asreader.barcodemanager.parse.BarcodePacketParserCallback
public void onParsedBarcodeResponse(BarcodeConst.BarcodeCommandAction action, BarcodeResult result)
onParsedBarcodeResponse
インタフェース内 jp.co.asterisk.asreader.barcodemanager.parse.BarcodePacketParserCallback