public interface Scanner
| 修飾子とタイプ | メソッドと説明 | 
|---|---|
| boolean | addBarcodeEventListener(BarcodeEventListener barcodeEventListener)コールバック用のインターフェース BarcodeEventListenerを登録するRegister the interface BarcodeEventListenerfor the callback. | 
| boolean | deinit()スキャナとの切断を行う Disconnect from the scanner. | 
| com.opticon.scannersdk.scanner.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. | 
| ScannerSettings | readFileSettings(java.lang.String filePath)設定値をファイルから読み込む Read the setting value from the file. | 
| boolean | removeBarcodeEventListener()コールバック用のインターフェース BarcodeEventListenerを削除するRemove the interface BarcodeEventListenerfor 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. | 
| 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. | 
ScannerInfo getScannerInfo()
ScannerManager.getScanner(ScannerInfo)のパラメータとして使用したScannerInfoScannerInfo used as a parameter of ScannerManager.getScanner(ScannerInfo)boolean isConnected()
boolean startScan()
boolean stopScan()
boolean takePicture(int imageType)
imageType - 1:jpeg , 3:BMPboolean init()
boolean deinit()
boolean addBarcodeEventListener(BarcodeEventListener barcodeEventListener)
BarcodeEventListenerを登録するBarcodeEventListener for the callback.boolean removeBarcodeEventListener()
BarcodeEventListenerを削除するBarcodeEventListener for the callback.ScannerSettings getSettings()
ScannerSettings / 異常動作 nullScannerSettings / Abnormal operation : nullboolean setSettings(ScannerSettings scannerSettings)
scannerSettings - 設定内容を編集したScannerSettingsScannerSettingsboolean setDefaultSettings()
boolean sendCommand(java.lang.String universalCommand)
universalCommand - ユニバーサルコマンドcom.opticon.scannersdk.scanner.ReadDataExtra getReadDataExtra()
ReadDataExtra / 異常動作 nullReadDataExtra / Abnormal operation : nullboolean saveFileSettings(java.lang.String filePath,
                         ScannerSettings settings)
filePath - ファイルパスsettings - 設定値ScannerSettingsScannerSettingsScannerSettings readFileSettings(java.lang.String filePath)
filePath - ファイルパスScannerSettings /読み込み失敗 nullScannerSettings / Read failure : null