Modifier and Type | Method and Description |
---|---|
boolean |
addBarcodeEventListener(BarcodeEventListener barcodeEventListener)
コールバック用のインターフェース BarcodeEventListener を登録するRegister the interface BarcodeEventListener for the callback. |
boolean |
deinit()
スキャナとの切断を行う Disconnect from the scanner. |
static SoftwareScanner |
getInstance(android.content.Context context,
ScannerInfo info) |
ReadDataExtra |
getReadDataExtra()
最後に読み取りが成功したデータの拡張情報を取得する Get the extended information of the last successfully read data. |
ScannerInfo |
getScannerInfo()
インスタンスのスキャナ情報を得る Get instance scanner information. |
ScannerSettings |
getSettings()
|
boolean |
init()
スキャナとの接続を行う Make a connection with the scanner. |
boolean |
isConnected()
スキャナとの接続が完了しているかどうかを返す Returns whether the connection with the scanner is complete. |
static boolean |
isIncludedModels(java.lang.String checkModel) |
ScannerSettings |
readFileSettings(java.lang.String filePath)
設定値をファイルから読み込む Read the setting value from the file. |
boolean |
removeBarcodeEventListener()
コールバック用のインターフェース BarcodeEventListener を削除するRemove the interface BarcodeEventListener for the callback. |
boolean |
saveFileSettings(java.lang.String filePath,
ScannerSettings settings)
設定値をファイルに保存する Save the settings to a file. |
boolean |
sendCommand(java.lang.String universalCommand)
スキャンエンジンが備える機能をAPIを介さずにUniversalコマンドで設定する Set the functions provided by the scan engine with universal commands without going through the API. |
void |
setContext(android.content.Context context,
ScannerInfo info) |
boolean |
setDefaultSettings()
スキャナの設定を工場出荷時設定に戻す Reset scanner settings to factory settings. |
boolean |
setSettings(ScannerSettings scannerSettings)
スキャナへ設定情報を送信する Send the setting information to the scanner. |
boolean |
startScan()
接続したスキャナで読み取りを開始する Start reading with the connected scanner. |
boolean |
stopScan()
接続したスキャナで読み取りを終了する Finish reading with the connected scanner. |
boolean |
takePicture(int imageType)
接続したスキャナで画像撮影を行う Take an image with the connected scanner. |
public static SoftwareScanner getInstance(android.content.Context context, ScannerInfo info)
public void setContext(android.content.Context context, ScannerInfo info)
public static boolean isIncludedModels(java.lang.String checkModel)
public ScannerInfo getScannerInfo()
Scanner
getScannerInfo
in interface Scanner
ScannerManager.getScanner(ScannerInfo)
のパラメータとして使用したScannerInfo
ScannerInfo
used as a parameter of ScannerManager.getScanner(ScannerInfo)
public boolean isConnected()
Scanner
isConnected
in interface Scanner
public boolean startScan()
Scanner
public boolean stopScan()
Scanner
public boolean takePicture(int imageType)
Scanner
takePicture
in interface Scanner
imageType
- 1:jpeg , 3:BMPpublic boolean init()
Scanner
public boolean deinit()
Scanner
public boolean addBarcodeEventListener(BarcodeEventListener barcodeEventListener)
Scanner
BarcodeEventListener
を登録するBarcodeEventListener
for the callback.addBarcodeEventListener
in interface Scanner
public boolean removeBarcodeEventListener()
Scanner
BarcodeEventListener
を削除するBarcodeEventListener
for the callback.removeBarcodeEventListener
in interface Scanner
public ScannerSettings getSettings()
Scanner
getSettings
in interface Scanner
ScannerSettings
/ 異常動作 nullScannerSettings
/ Abnormal operation : nullpublic boolean setSettings(ScannerSettings scannerSettings)
Scanner
setSettings
in interface Scanner
scannerSettings
- 設定内容を編集したScannerSettings
ScannerSettings
public boolean setDefaultSettings()
Scanner
setDefaultSettings
in interface Scanner
public boolean sendCommand(java.lang.String universalCommand)
Scanner
sendCommand
in interface Scanner
universalCommand
- ユニバーサルコマンドpublic ReadDataExtra getReadDataExtra()
Scanner
getReadDataExtra
in interface Scanner
ReadDataExtra
/ 異常動作 nullReadDataExtra
/ Abnormal operation : nullpublic boolean saveFileSettings(java.lang.String filePath, ScannerSettings settings)
Scanner
saveFileSettings
in interface Scanner
filePath
- ファイルパスsettings
- 設定値ScannerSettings
ScannerSettings
public ScannerSettings readFileSettings(java.lang.String filePath)
Scanner
readFileSettings
in interface Scanner
filePath
- ファイルパスScannerSettings
/読み込み失敗 nullScannerSettings
/ Read failure : null