public class ScannerLibrary
extends java.lang.Object
| 修飾子とタイプ | クラスと説明 |
|---|---|
static class |
ScannerLibrary.CONSTANT
定数クラス
|
static class |
ScannerLibrary.ScanResult
読取り結果を格納する内部クラス
|
| コンストラクタと説明 |
|---|
ScannerLibrary()
ScannerLibraryクラスのインスタンスを作成します。
|
| 修飾子とタイプ | メソッドと説明 |
|---|---|
int |
captureImage(byte[] buffer)
静止画像を撮影します。
|
int |
closeScanner()
バーコードスキャナーをクローズします。
|
int |
deinitializeStream()
ストリーミングの終了処理をおこないます。
|
java.lang.String |
getAPIVersion()
APIバージョンを取得します。
|
int |
getCenteringWindow()
中心読みモードの有効/無効を取得します。
|
int |
getDelimiter()
一括読み時の区切り(delimiter)を取得します。
|
int |
getDetectionAreaSize()
中心読みモードにおけるバーコード検出領域の大きさを取得します。
|
int |
getImageDataSize()
静止画像の撮影を行う際に必要なデータサイズを取得します。
|
int |
getInternalParameter(int tag)
内部パラメーターの設定値を取得します。
|
int |
getInternalParameter(int[] tags,
int[] values)
内部パラメーターの設定値を取得します。
|
int |
getInverseMode()
白黒反転バーコードの読取りモードを取得します。
|
int |
getLaserHighlightMode()
1Dスキャナーのレーザーハイライトモードを取得します。
|
int |
getLaserSwingWidth()
1Dスキャナーのレーザー振れ幅を取得します。
|
int |
getLightMode()
ライトモードを取得します。
|
java.lang.String |
getModuleVersion()
モジュールバージョンを取得します。
|
int |
getNotificationLED()
通知LEDの動作設定を取得します。
|
int |
getNotificationSound()
通知音の動作設定を取得します。
|
int |
getNotificationVibrator()
通知バイブレーターの動作設定を取得します。
|
int |
getNumberOfBarcodes()
多段読みまたは一括読み時に読取るバーコードの数を取得します。
|
int |
getOutputType()
読取り結果の出力方式を取得します。
|
int |
getScannerAPO()
バーコードスキャナーのオートパワーオフ(APO)時間を取得します。
|
int |
getScanResult(ScannerLibrary.ScanResult scanResult)
読取り結果を取得します。
|
int |
getStreamDataSize()
ストリーミングを行う際に必要なデータサイズを取得します。
|
int |
getStreamDataSize(android.graphics.Rect rectangle,
int resolution)
ストリーミングを行う際に必要なデータサイズを取得します。
|
int |
getSuffix()
読取り結果の末尾に付加する修飾子(Suffix)を取得します。
|
int |
getSymbologyCheckCount(int symbologyID)
指定したバーコードの照合回数を取得します。
|
int |
getSymbologyEnable(int symbologyID)
指定したバーコードの読取り有効/無効を取得します。
|
int |
getSymbologyMax(int symbologyID)
指定したバーコードの読取り最大桁数を取得します。
|
int |
getSymbologyMaxDefault(int symbologyID)
指定したバーコードのデフォルト読取り最大桁数を取得します。
|
int |
getSymbologyMin(int symbologyID)
指定したバーコードの読取り最小桁数を取得します。
|
int |
getSymbologyMinDefault(int symbologyID)
指定したバーコードのデフォルト読取り最小桁数を取得します。
|
int |
getSymbologyProperty(int symbologyID,
int propertyNo)
指定したバーコードのプロパティ設定値を取得します。
|
int |
getTriggerKeyEnable()
トリガーキーの有効/無効を取得します。
|
int |
getTriggerKeyMode()
トリガーキーモードを取得します。
|
int |
getTriggerKeyTimeout()
トリガーキータイムアウトを取得します。
|
int |
initializeStream(android.graphics.Rect rectangle,
int resolution)
ストリーミングの初期化処理をおこないます。
|
boolean |
isScannerOpen()
バーコードスキャナーがオープンしているか確認します。
|
int |
openScanner()
バーコードスキャナーをオープンします。
|
int |
readStream(byte[] buffer)
静止画1枚分のストリーミングデータを取得します。
|
int |
setCenteringWindow(int centeringWindow)
中心読みモードの有効/無効を設定します。
|
int |
setDefaultAll()
全てのバーコードスキャナー設定をデフォルトに戻します。
|
int |
setDelimiter(int delimiter)
一括読み時の区切り(delimiter)を設定します。
|
int |
setDetectionAreaSize(int detectionAreaSize)
中心読みモードにおけるバーコード検出領域の大きさを設定します。
|
int |
setInternalParameter(byte[] command)
内部パラメーターを設定します。
|
int |
setInternalParameter(int tag,
int value)
内部パラメーターを設定します。
|
int |
setInternalParameter(int number,
int[] tags,
int[] values)
内部パラメーターを設定します。
|
int |
setInverseMode(int inverseMode)
白黒反転バーコードの読取りモードを設定します。
|
int |
setLaserHighlightMode(int enable)
1Dスキャナーのレーザーハイライトモードを設定します。
|
int |
setLaserSwingWidth(int laserSwingWidth)
1Dスキャナーのレーザー振れ幅を設定します。
|
int |
setLightMode(int lightMode)
ライトモードを設定します。
|
int |
setNotificationLED(int led)
通知LEDの動作を設定します。
|
int |
setNotificationSound(int sound)
通知音の動作を設定します。
|
int |
setNotificationVibrator(int vibrator)
通知バイブレーターの動作を設定します。
|
int |
setNumberOfBarcodes(int numberOfBarcodes)
多段読みまたは一括読み時に読取るバーコードの数を設定します。
|
int |
setOutputType(int outputType)
読取り結果の出力方式を設定します。
|
int |
setScannerAPO(int scannerAPOTime)
バーコードスキャナーのオートパワーオフ(APO)時間を設定します。
|
int |
setSuffix(int suffix)
読取り結果の末尾に付加する修飾子(Suffix)を設定します。
|
int |
setSymbologyCheckCount(int symbologyID,
int checkCount)
指定したバーコードの照合回数を設定します。
|
int |
setSymbologyEnable(int symbologyID,
int enable)
指定したバーコードの読取り有効/無効を設定します。
|
int |
setSymbologyMax(int symbologyID,
int max)
指定したバーコードの読取り最大桁数を設定します。
|
int |
setSymbologyMin(int symbologyID,
int min)
指定したバーコードの読取り最小桁数を設定します。
|
int |
setSymbologyProperty(int symbologyID,
int propertyNo,
int propertySetting)
指定したバーコードのプロパティ設定値を変更します。
|
int |
setTriggerKeyEnable(int triggerKeyEnable)
トリガーキーの有効/無効を設定します。
|
int |
setTriggerKeyMode(int triggerKeyMode)
トリガーキーモードを設定します。
|
int |
setTriggerKeyOn(int triggerKeyOn)
トリガーキーの動作をソフトウェア制御します。
|
int |
setTriggerKeyTimeout(int triggerKeyTimeout)
トリガーキータイムアウトを設定します。
|
int |
startStream()
ストリーミングを開始します。
|
int |
stopStream()
ストリーミングを終了します。
|
int |
turnAimerOn(int aimerOn)
エイマーの動作をソフトウェア制御します。
|
int |
turnIlluminationOn(int illuminationOn)
イルミネーションの動作をソフトウェア制御します。
|
public int openScanner()
ScannerLibrary.CONSTANT.RETURN.SUCCESS : 正常終了
ScannerLibrary.CONSTANT.RETURN.ERROR_UNSUPPORTED : 未サポートエラー
closeScanner(),
isScannerOpen()public int closeScanner()
ScannerLibrary.CONSTANT.RETURN.SUCCESS : 正常終了
ScannerLibrary.CONSTANT.RETURN.ERROR_UNSUPPORTED : 未サポートエラー
openScanner(),
isScannerOpen()public boolean isScannerOpen()
openScanner(),
closeScanner()public int setDefaultAll()
ScannerLibrary.CONSTANT.RETURN.SUCCESS : 正常終了
ScannerLibrary.CONSTANT.RETURN.ERROR_UNSUPPORTED : 未サポートエラー
public java.lang.String getAPIVersion()
public java.lang.String getModuleVersion()
public int getScanResult(ScannerLibrary.ScanResult scanResult)
ScannerLibrary.ScanResultクラスを参照してください。
scanResult - 読取り結果が格納されるScannerLibrary.ScanResultクラスを指定してください。
ScannerLibrary.CONSTANT.RETURN.SUCCESS : 正常終了
ScannerLibrary.CONSTANT.RETURN.ERROR_PARAMETER : パラメーターエラー
ScannerLibrary.CONSTANT.RETURN.ERROR_UNSUPPORTED : 未サポートエラー
public int setNotificationLED(int led)
led - 通知LEDの動作
ScannerLibrary.CONSTANT.NOTIFICATION.LED_OFF : 読取り成功時、読取り失敗時に通知LEDは点灯しません
ScannerLibrary.CONSTANT.NOTIFICATION.LED_ON : 読取り成功時に通知LEDが緑、読取り失敗時に通知LEDが赤点灯します
ScannerLibrary.CONSTANT.RETURN.SUCCESS : 正常終了
ScannerLibrary.CONSTANT.RETURN.ERROR_PARAMETER : パラメーターエラー
ScannerLibrary.CONSTANT.RETURN.ERROR_UNSUPPORTED : 未サポートエラー
getNotificationLED()public int getNotificationLED()
ScannerLibrary.CONSTANT.NOTIFICATION.LED_OFF : 読取り成功時、読取り失敗時に通知LEDは点灯しません
ScannerLibrary.CONSTANT.NOTIFICATION.LED_ON : 読取り成功時に通知LEDが緑、読取り失敗時に通知LEDが赤点灯します (デフォルト)
ScannerLibrary.CONSTANT.RETURN.ERROR_UNSUPPORTED : 未サポートエラー
setNotificationLED(int)public int setNotificationVibrator(int vibrator)
vibrator - 通知バイブレーターの動作
ScannerLibrary.CONSTANT.NOTIFICATION.VIBRATOR_ALL_OFF : 読取り成功時、読取り失敗時にバイブレーターが振動しません
ScannerLibrary.CONSTANT.NOTIFICATION.VIBRATOR_FAIL_ON : 読取り失敗時にのみバイブレーターが振動します
ScannerLibrary.CONSTANT.NOTIFICATION.VIBRATOR_SUCCESS_ON : 読取り成功時にのみバイブレーターが振動します
ScannerLibrary.CONSTANT.NOTIFICATION.VIBRATOR_ALL_ON : 読取り成功時、読取り失敗時にバイブレーターが振動します
ScannerLibrary.CONSTANT.RETURN.SUCCESS : 正常終了
ScannerLibrary.CONSTANT.RETURN.ERROR_PARAMETER : パラメーターエラー
ScannerLibrary.CONSTANT.RETURN.ERROR_UNSUPPORTED : 未サポートエラー
getNotificationVibrator()public int getNotificationVibrator()
ScannerLibrary.CONSTANT.NOTIFICATION.VIBRATOR_ALL_OFF : 読取り成功時、読取り失敗時にバイブレーターが振動しません (デフォルト)
ScannerLibrary.CONSTANT.NOTIFICATION.VIBRATOR_FAIL_ON : 読取り失敗時にのみバイブレーターが振動します
ScannerLibrary.CONSTANT.NOTIFICATION.VIBRATOR_SUCCESS_ON : 読取り成功時にのみバイブレーターが振動します
ScannerLibrary.CONSTANT.NOTIFICATION.VIBRATOR_ALL_ON : 読取り成功時、読取り失敗時にバイブレーターが振動します
ScannerLibrary.CONSTANT.RETURN.ERROR_UNSUPPORTED : 未サポートエラー
setNotificationVibrator(int)public int setNotificationSound(int sound)
sound - 通知音の動作
ScannerLibrary.CONSTANT.NOTIFICATION.SOUND_ALL_OFF : 読取り成功時、読取り失敗時に通知音が鳴りません
ScannerLibrary.CONSTANT.NOTIFICATION.SOUND_FAIL_ON : 読取り失敗時にのみ通知音が鳴ります
ScannerLibrary.CONSTANT.NOTIFICATION.SOUND_SUCCESS_ON : 読取り成功時にのみ通知音が鳴ります
ScannerLibrary.CONSTANT.NOTIFICATION.SOUND_ALL_ON : 読取り成功時、読取り失敗時に通知音が鳴ります
ScannerLibrary.CONSTANT.RETURN.SUCCESS : 正常終了
ScannerLibrary.CONSTANT.RETURN.ERROR_PARAMETER : パラメーターエラー
ScannerLibrary.CONSTANT.RETURN.ERROR_UNSUPPORTED : 未サポートエラー
getNotificationSound()public int getNotificationSound()
ScannerLibrary.CONSTANT.NOTIFICATION.SOUND_ALL_OFF : 読取り成功時、読取り失敗時に通知音が鳴りません
ScannerLibrary.CONSTANT.NOTIFICATION.SOUND_FAIL_ON : 読取り失敗時にのみ通知音が鳴ります
ScannerLibrary.CONSTANT.NOTIFICATION.SOUND_SUCCESS_ON : 読取り成功時にのみ通知音が鳴ります
ScannerLibrary.CONSTANT.NOTIFICATION.SOUND_ALL_ON : 読取り成功時、読取り失敗時に通知音が鳴ります (デフォルト)
ScannerLibrary.CONSTANT.RETURN.ERROR_UNSUPPORTED : 未サポートエラー
setNotificationSound(int)public int setLightMode(int lightMode)
ScannerLibrary.CONSTANT.LIGHT_MODE.ALL_ONを指定してください。
lightMode - ライトモード
ScannerLibrary.CONSTANT.LIGHT_MODE.ALL_OFF : イルミネーションとエイマーが点灯しません
ScannerLibrary.CONSTANT.LIGHT_MODE.AIMER_ON : エイマーのみ点灯します
ScannerLibrary.CONSTANT.LIGHT_MODE.ILLUMINATION_ON : イルミネーションのみ点灯します
ScannerLibrary.CONSTANT.LIGHT_MODE.ALL_ON : イルミネーションとエイマーが点灯します
ScannerLibrary.CONSTANT.RETURN.SUCCESS : 正常終了
ScannerLibrary.CONSTANT.RETURN.ERROR_PARAMETER : パラメーターエラー
ScannerLibrary.CONSTANT.RETURN.ERROR_UNSUPPORTED : 未サポートエラー
getLightMode()public int getLightMode()
ScannerLibrary.CONSTANT.LIGHT_MODE.ALL_OFF : イルミネーションとエイマーが点灯しません
ScannerLibrary.CONSTANT.LIGHT_MODE.AIMER_ON : エイマーのみ点灯します
ScannerLibrary.CONSTANT.LIGHT_MODE.ILLUMINATION_ON : イルミネーションのみ点灯します (デフォルト)
ScannerLibrary.CONSTANT.LIGHT_MODE.ALL_ON : イルミネーションとエイマーが点灯します
ScannerLibrary.CONSTANT.RETURN.ERROR_UNSUPPORTED : 未サポートエラー
setLightMode(int)public int turnAimerOn(int aimerOn)
aimerOn - エイマーの動作。
ScannerLibrary.CONSTANT.CONTROL.AIMER_OFF : エイマーを消灯させます。
ScannerLibrary.CONSTANT.CONTROL.AIMER_ON : エイマーを点灯させます。
ScannerLibrary.CONSTANT.RETURN.SUCCESS : 正常終了
ScannerLibrary.CONSTANT.RETURN.ERROR_PARAMETER : パラメーターエラー
ScannerLibrary.CONSTANT.RETURN.ERROR_UNSUPPORTED : 未サポートエラー
public int turnIlluminationOn(int illuminationOn)
illuminationOn - イルミネーションの動作。
ScannerLibrary.CONSTANT.CONTROL.ILLUMINATION_OFF : イルミネーションを消灯させます。
ScannerLibrary.CONSTANT.CONTROL.ILLUMINATION_ON : イルミネーションを点灯させます。
ScannerLibrary.CONSTANT.RETURN.SUCCESS : 正常終了
ScannerLibrary.CONSTANT.RETURN.ERROR_PARAMETER : パラメーターエラー
ScannerLibrary.CONSTANT.RETURN.ERROR_UNSUPPORTED : 未サポートエラー
public int getImageDataSize()
ScannerLibrary.CONSTANT.RETURN.ERROR_UNSUPPORTED : 未サポートエラー
captureImage(byte[])public int captureImage(byte[] buffer)
buffer - 画像バッファScannerLibrary.CONSTANT.RETURN.ERROR_PARAMETER : パラメーターエラー
ScannerLibrary.CONSTANT.RETURN.ERROR_UNSUPPORTED : 未サポートエラー
ScannerLibrary.CONSTANT.RETURN.ERROR_NOTOPENED : 非オープンエラー
getImageDataSize()public int getStreamDataSize()
ScannerLibrary.CONSTANT.RETURN.ERROR_UNSUPPORTED : 未サポートエラー
readStream(byte[])public int getStreamDataSize(android.graphics.Rect rectangle,
int resolution)
rectangle - ストリーミング領域resolution - 解像度ScannerLibrary.CONSTANT.RESOLUTION.FULL : フル解像度。
ScannerLibrary.CONSTANT.RESOLUTION.QUARTER : 1/4解像度。
ScannerLibrary.CONSTANT.RESOLUTION.ONE_SIXTEENTH : 1/16解像度。
ScannerLibrary.CONSTANT.RETURN.ERROR_PARAMETER : パラメーターエラー
ScannerLibrary.CONSTANT.RETURN.ERROR_UNSUPPORTED : 未サポートエラー
readStream(byte[])public int initializeStream(android.graphics.Rect rectangle,
int resolution)
rectangle - ストリーミング領域resolution - 解像度ScannerLibrary.CONSTANT.RESOLUTION.FULL : フル解像度。
ScannerLibrary.CONSTANT.RESOLUTION.QUARTER : 1/4解像度。
ScannerLibrary.CONSTANT.RESOLUTION.ONE_SIXTEENTH : 1/16解像度。
ScannerLibrary.CONSTANT.RETURN.SUCCESS : 正常終了
ScannerLibrary.CONSTANT.RETURN.ERROR_PARAMETER : パラメーターエラー
ScannerLibrary.CONSTANT.RETURN.ERROR_UNSUPPORTED : 未サポートエラー
deinitializeStream()public int startStream()
ScannerLibrary.CONSTANT.RETURN.SUCCESS : 正常終了
ScannerLibrary.CONSTANT.RETURN.ERROR_UNSUPPORTED : 未サポートエラー
readStream(byte[]),
stopStream()public int readStream(byte[] buffer)
buffer - ストリーミングデータScannerLibrary.CONSTANT.RETURN.ERROR_PARAMETER : パラメーターエラー
ScannerLibrary.CONSTANT.RETURN.ERROR_UNSUPPORTED : 未サポートエラー
startStream(),
stopStream(),
getStreamDataSize(),
getStreamDataSize(Rect, int)public int stopStream()
ScannerLibrary.CONSTANT.RETURN.SUCCESS : 正常終了
ScannerLibrary.CONSTANT.RETURN.ERROR_UNSUPPORTED : 未サポートエラー
startStream(),
readStream(byte[])public int deinitializeStream()
ScannerLibrary.CONSTANT.RETURN.SUCCESS : 正常終了
ScannerLibrary.CONSTANT.RETURN.ERROR_UNSUPPORTED : 未サポートエラー
initializeStream(Rect, int)public int setSymbologyEnable(int symbologyID,
int enable)
symbologyID - 各バーコードのシンボルIDを指定してください。ScannerLibrary.CONSTANT.SYMBOLOGY.ALLを指定した場合、全てのバーコードに対して有効/無効を設定します。
ScannerLibrary.CONSTANT.SYMBOLOGYenable - 読取り有効/無効
ScannerLibrary.CONSTANT.SYMBOLOGY_PARAMETER.DISABLE : 読取り無効
ScannerLibrary.CONSTANT.SYMBOLOGY_PARAMETER.ENABLE : 読取り有効
ScannerLibrary.CONSTANT.RETURN.SUCCESS : 正常終了
ScannerLibrary.CONSTANT.RETURN.ERROR_PARAMETER : パラメーターエラー
ScannerLibrary.CONSTANT.RETURN.ERROR_UNSUPPORTED : 未サポートエラー
getSymbologyEnable(int)public int getSymbologyEnable(int symbologyID)
symbologyID - シンボルIDScannerLibrary.CONSTANT.SYMBOLOGYScannerLibrary.CONSTANT.SYMBOLOGY_PARAMETER.DISABLE : 読取り無効
ScannerLibrary.CONSTANT.SYMBOLOGY_PARAMETER.ENABLE : 読取り有効
ScannerLibrary.CONSTANT.RETURN.ERROR_PARAMETER : パラメーターエラー
ScannerLibrary.CONSTANT.RETURN.ERROR_UNSUPPORTED : 未サポートエラー
setSymbologyEnable(int, int)public int getSymbologyMaxDefault(int symbologyID)
symbologyID - シンボルIDScannerLibrary.CONSTANT.SYMBOLOGYScannerLibrary.CONSTANT.RETURN.ERROR_PARAMETER : パラメーターエラー
ScannerLibrary.CONSTANT.RETURN.ERROR_UNSUPPORTED : 未サポートエラー
getSymbologyMinDefault(int)public int getSymbologyMinDefault(int symbologyID)
symbologyID - シンボルIDScannerLibrary.CONSTANT.SYMBOLOGYScannerLibrary.CONSTANT.RETURN.ERROR_PARAMETER : パラメーターエラー
ScannerLibrary.CONSTANT.RETURN.ERROR_UNSUPPORTED : 未サポートエラー
getSymbologyMaxDefault(int)public int setSymbologyMax(int symbologyID,
int max)
symbologyID - シンボルIDScannerLibrary.CONSTANT.SYMBOLOGYmax - 読取り最大桁数
ScannerLibrary.CONSTANT.RETURN.SUCCESS : 正常終了
ScannerLibrary.CONSTANT.RETURN.ERROR_PARAMETER : パラメーターエラー
ScannerLibrary.CONSTANT.RETURN.ERROR_UNSUPPORTED : 未サポートエラー
getSymbologyMax(int)public int getSymbologyMax(int symbologyID)
symbologyID - シンボルIDScannerLibrary.CONSTANT.SYMBOLOGYScannerLibrary.CONSTANT.RETURN.ERROR_PARAMETER : パラメーターエラー
ScannerLibrary.CONSTANT.RETURN.ERROR_UNSUPPORTED : 未サポートエラー
setSymbologyMax(int, int)public int setSymbologyMin(int symbologyID,
int min)
symbologyID - シンボルIDScannerLibrary.CONSTANT.SYMBOLOGYmin - 読取り最小桁数
ScannerLibrary.CONSTANT.RETURN.SUCCESS : 正常終了
ScannerLibrary.CONSTANT.RETURN.ERROR_PARAMETER : パラメーターエラー
ScannerLibrary.CONSTANT.RETURN.ERROR_UNSUPPORTED : 未サポートエラー
getSymbologyMin(int)public int getSymbologyMin(int symbologyID)
symbologyID - シンボルIDScannerLibrary.CONSTANT.SYMBOLOGY.ALLを指定した場合、全てのバーコードに対して有効/無効を設定します。
ScannerLibrary.CONSTANT.SYMBOLOGYScannerLibrary.CONSTANT.RETURN.ERROR_PARAMETER : パラメーターエラー
ScannerLibrary.CONSTANT.RETURN.ERROR_UNSUPPORTED : 未サポートエラー
setSymbologyMin(int, int)public int setSymbologyCheckCount(int symbologyID,
int checkCount)
symbologyID - シンボルIDScannerLibrary.CONSTANT.SYMBOLOGYcheckCount - 照合回数ScannerLibrary.CONSTANT.RETURN.SUCCESS : 正常終了
ScannerLibrary.CONSTANT.RETURN.ERROR_PARAMETER : パラメーターエラー
ScannerLibrary.CONSTANT.RETURN.ERROR_UNSUPPORTED : 未サポートエラー
getSymbologyCheckCount(int)public int getSymbologyCheckCount(int symbologyID)
symbologyID - シンボルIDScannerLibrary.CONSTANT.SYMBOLOGYScannerLibrary.CONSTANT.RETURN.ERROR_PARAMETER : パラメーターエラー
ScannerLibrary.CONSTANT.RETURN.ERROR_UNSUPPORTED : 未サポートエラー
setSymbologyCheckCount(int, int)public int setSymbologyProperty(int symbologyID,
int propertyNo,
int propertySetting)
symbologyID - シンボルIDScannerLibrary.CONSTANT.SYMBOLOGYpropertyNo - プロパティ番号propertySetting - プロパティ設定値ScannerLibrary.CONSTANT.RETURN.SUCCESS : 正常終了
ScannerLibrary.CONSTANT.RETURN.ERROR_PARAMETER : パラメーターエラー
ScannerLibrary.CONSTANT.RETURN.ERROR_UNSUPPORTED : 未サポートエラー
getSymbologyProperty(int, int)public int getSymbologyProperty(int symbologyID,
int propertyNo)
symbologyID - シンボルIDScannerLibrary.CONSTANT.SYMBOLOGYpropertyNo - プロパティ番号ScannerLibrary.CONSTANT.RETURN.ERROR_PARAMETER : パラメーターエラー
ScannerLibrary.CONSTANT.RETURN.ERROR_UNSUPPORTED : 未サポートエラー
setSymbologyProperty(int, int, int)public int setOutputType(int outputType)
outputType - 読取り結果の出力方式
ScannerLibrary.CONSTANT.OUTPUT.CLIP : クリップボード出力
ScannerLibrary.CONSTANT.OUTPUT.KEY : キーボード出力
ScannerLibrary.CONSTANT.OUTPUT.USER : ユーザーメッセージ出力
ScannerLibrary.CONSTANT.OUTPUT.BROADCAST : ブロードキャスト出力
ScannerLibrary.CONSTANT.RETURN.SUCCESS : 正常終了
ScannerLibrary.CONSTANT.RETURN.ERROR_PARAMETER : パラメーターエラー
ScannerLibrary.CONSTANT.RETURN.ERROR_UNSUPPORTED : 未サポートエラー
getOutputType()public int getOutputType()
ScannerLibrary.CONSTANT.OUTPUT.CLIP : クリップボード出力 (デフォルト)
ScannerLibrary.CONSTANT.OUTPUT.KEY : キーボード出力
ScannerLibrary.CONSTANT.OUTPUT.USER : ユーザーメッセージ出力
ScannerLibrary.CONSTANT.OUTPUT.BROADCAST : ブロードキャスト出力
ScannerLibrary.CONSTANT.RETURN.ERROR_UNSUPPORTED : 未サポートエラー
setOutputType(int)public int setSuffix(int suffix)
suffix - 付加するSuffix。
ScannerLibrary.CONSTANT.SUFFIX.NONE Suffixなし
ScannerLibrary.CONSTANT.SUFFIX.LF LF(0x0A)を付加
ScannerLibrary.CONSTANT.SUFFIX.TAB TAB(0x09)を付加
ScannerLibrary.CONSTANT.SUFFIX.TAB_LF TAB+LF(0x09, 0x0A)を付加
ScannerLibrary.CONSTANT.RETURN.SUCCESS : 正常終了
ScannerLibrary.CONSTANT.RETURN.ERROR_PARAMETER : パラメーターエラー
ScannerLibrary.CONSTANT.RETURN.ERROR_UNSUPPORTED : 未サポートエラー
getSuffix()public int getSuffix()
ScannerLibrary.CONSTANT.SUFFIX.NONE : Suffixなし (デフォルト)
ScannerLibrary.CONSTANT.SUFFIX.LF : LF(0x0A)を付加
ScannerLibrary.CONSTANT.SUFFIX.TAB : TAB(0x09)を付加
ScannerLibrary.CONSTANT.SUFFIX.TAB_LF : TAB+LF(0x09, 0x0A)を付加
ScannerLibrary.CONSTANT.RETURN.ERROR_UNSUPPORTED : 未サポートエラー
setSuffix(int)public int setInverseMode(int inverseMode)
inverseMode - 白黒反転バーコードの読取りモード
ScannerLibrary.CONSTANT.INVERSE.DISABLE : 通常バーコードのみ読取り有効
ScannerLibrary.CONSTANT.INVERSE.ENABLE : 白黒反転バーコードのみ読取り有効
ScannerLibrary.CONSTANT.INVERSE.AUTO : 通常/白黒反転バーコード読取り有効
ScannerLibrary.CONSTANT.RETURN.SUCCESS : 正常終了
ScannerLibrary.CONSTANT.RETURN.ERROR_PARAMETER : パラメーターエラー
ScannerLibrary.CONSTANT.RETURN.ERROR_UNSUPPORTED : 未サポートエラー
getInverseMode()public int getInverseMode()
ScannerLibrary.CONSTANT.INVERSE.DISABLE : 通常バーコードのみ読取り有効 (デフォルト)
ScannerLibrary.CONSTANT.INVERSE.ENABLE : 白黒反転バーコードのみ読取り有効
ScannerLibrary.CONSTANT.INVERSE.AUTO : 通常/白黒反転バーコード読取り有効
ScannerLibrary.CONSTANT.RETURN.ERROR_UNSUPPORTED : 未サポートエラー
setInverseMode(int)public int setTriggerKeyEnable(int triggerKeyEnable)
triggerKeyEnable - トリガーキー有効/無効
ScannerLibrary.CONSTANT.TRIGGERKEY.DISABLE : トリガーキー無効
ScannerLibrary.CONSTANT.TRIGGERKEY.ENABLE : トリガーキー有効
ScannerLibrary.CONSTANT.RETURN.SUCCESS : 正常終了
ScannerLibrary.CONSTANT.RETURN.ERROR_PARAMETER : パラメーターエラー
ScannerLibrary.CONSTANT.RETURN.ERROR_UNSUPPORTED : 未サポートエラー
getTriggerKeyEnable()public int getTriggerKeyEnable()
ScannerLibrary.CONSTANT.TRIGGERKEY.DISABLE : トリガーキー無効
ScannerLibrary.CONSTANT.TRIGGERKEY.ENABLE : トリガーキー有効 (デフォルト)
ScannerLibrary.CONSTANT.RETURN.ERROR_UNSUPPORTED : 未サポートエラー
setTriggerKeyEnable(int)public int setTriggerKeyMode(int triggerKeyMode)
triggerKeyMode - トリガーキーモード
ScannerLibrary.CONSTANT.TRIGGER_MODE.NORMAL : 通常読み
ScannerLibrary.CONSTANT.TRIGGER_MODE.CONTINUOUS : 連続読み
ScannerLibrary.CONSTANT.TRIGGER_MODE.MULTI_STEP : 多段読み
ScannerLibrary.CONSTANT.TRIGGER_MODE.PACKAGE : 一括読み
ScannerLibrary.CONSTANT.RETURN.SUCCESS : 正常終了
ScannerLibrary.CONSTANT.RETURN.ERROR_PARAMETER : パラメーターエラー
ScannerLibrary.CONSTANT.RETURN.ERROR_UNSUPPORTED : 未サポートエラー
getTriggerKeyMode()public int getTriggerKeyMode()
ScannerLibrary.CONSTANT.TRIGGER_MODE.NORMAL : 通常読み (デフォルト)
ScannerLibrary.CONSTANT.TRIGGER_MODE.CONTINUOUS : 連続読み
ScannerLibrary.CONSTANT.TRIGGER_MODE.MULTI_STEP : 多段読み
ScannerLibrary.CONSTANT.TRIGGER_MODE.PACKAGE : 一括読み
ScannerLibrary.CONSTANT.RETURN.ERROR_UNSUPPORTED : 未サポートエラー
setTriggerKeyMode(int)public int setNumberOfBarcodes(int numberOfBarcodes)
numberOfBarcodes - 多段読みまたは一括読み時に読取るバーコードの数。ScannerLibrary.CONSTANT.RETURN.SUCCESS : 正常終了
ScannerLibrary.CONSTANT.RETURN.ERROR_PARAMETER : パラメーターエラー
ScannerLibrary.CONSTANT.RETURN.ERROR_UNSUPPORTED : 未サポートエラー
getNumberOfBarcodes()public int getNumberOfBarcodes()
ScannerLibrary.CONSTANT.RETURN.ERROR_UNSUPPORTED : 未サポートエラー
setNumberOfBarcodes(int)public int setDelimiter(int delimiter)
delimiter - 一括読み時の区切り(delimiter)。ScannerLibrary.CONSTANT.RETURN.SUCCESS : 正常終了
ScannerLibrary.CONSTANT.RETURN.ERROR_PARAMETER : パラメーターエラー
ScannerLibrary.CONSTANT.RETURN.ERROR_UNSUPPORTED : 未サポートエラー
getDelimiter()public int getDelimiter()
ScannerLibrary.CONSTANT.RETURN.ERROR_UNSUPPORTED : 未サポートエラー
setNumberOfBarcodes(int)public int setTriggerKeyTimeout(int triggerKeyTimeout)
triggerKeyTimeout - トリガーキータイムアウト。ScannerLibrary.CONSTANT.RETURN.SUCCESS : 正常終了
ScannerLibrary.CONSTANT.RETURN.ERROR_PARAMETER : パラメーターエラー
ScannerLibrary.CONSTANT.RETURN.ERROR_UNSUPPORTED : 未サポートエラー
getTriggerKeyTimeout()public int getTriggerKeyTimeout()
ScannerLibrary.CONSTANT.RETURN.ERROR_UNSUPPORTED : 未サポートエラー
setTriggerKeyTimeout(int)public int setTriggerKeyOn(int triggerKeyOn)
triggerKeyOn - トリガーキーの動作。
ScannerLibrary.CONSTANT.CONTROL.TRIGGER_OFF : トリガーキーの押下を擬似的に解除させます。
ScannerLibrary.CONSTANT.CONTROL.TRIGGER_ON : トリガーキーの押下を擬似的に発生させます。
ScannerLibrary.CONSTANT.RETURN.SUCCESS : 正常終了
ScannerLibrary.CONSTANT.RETURN.ERROR_PARAMETER : パラメーターエラー
ScannerLibrary.CONSTANT.RETURN.ERROR_UNSUPPORTED : 未サポートエラー
public int setScannerAPO(int scannerAPOTime)
scannerAPOTime - バーコードスキャナーのAPO時間。ScannerLibrary.CONSTANT.RETURN.SUCCESS : 正常終了
ScannerLibrary.CONSTANT.RETURN.ERROR_PARAMETER : パラメーターエラー
ScannerLibrary.CONSTANT.RETURN.ERROR_UNSUPPORTED : 未サポートエラー
getScannerAPO()public int getScannerAPO()
ScannerLibrary.CONSTANT.RETURN.ERROR_UNSUPPORTED : 未サポートエラー
setScannerAPO(int)public int setCenteringWindow(int centeringWindow)
centeringWindow - 中心読みモード有効/無効。
ScannerLibrary.CONSTANT.CENTERING_WINDOW_MODE.DISABLE : 中心読みモード無効
ScannerLibrary.CONSTANT.CENTERING_WINDOW_MODE.ENABLE : 中心読みモード有効
ScannerLibrary.CONSTANT.RETURN.SUCCESS : 正常終了
ScannerLibrary.CONSTANT.RETURN.ERROR_PARAMETER : パラメーターエラー
ScannerLibrary.CONSTANT.RETURN.ERROR_UNSUPPORTED : 未サポートエラー
getCenteringWindow()public int getCenteringWindow()
ScannerLibrary.CONSTANT.CENTERING_WINDOW_MODE.DISABLE : 中心読みモード無効 (デフォルト)
ScannerLibrary.CONSTANT.CENTERING_WINDOW_MODE.ENABLE : 中心読みモード有効
ScannerLibrary.CONSTANT.RETURN.ERROR_UNSUPPORTED : 未サポートエラー
setCenteringWindow(int)public int setDetectionAreaSize(int detectionAreaSize)
detectionAreaSize - 中心読みモードにおけるバーコード検出領域の大きさ。ScannerLibrary.CONSTANT.RETURN.SUCCESS : 正常終了
ScannerLibrary.CONSTANT.RETURN.ERROR_PARAMETER : パラメーターエラー
ScannerLibrary.CONSTANT.RETURN.ERROR_UNSUPPORTED : 未サポートエラー
getDetectionAreaSize()public int getDetectionAreaSize()
ScannerLibrary.CONSTANT.RETURN.ERROR_UNSUPPORTED : 未サポートエラー
setDetectionAreaSize(int)public int setLaserSwingWidth(int laserSwingWidth)
laserSwingWidth - レーザー振れ幅
ScannerLibrary.CONSTANT.SWING_WIDTH.MAX : 振れ幅最大 (デフォルト)
ScannerLibrary.CONSTANT.SWING_WIDTH.WIDE : 振れ幅広
ScannerLibrary.CONSTANT.SWING_WIDTH.MIDDLE : 振れ幅中
ScannerLibrary.CONSTANT.SWING_WIDTH.NARROW : 振れ幅狭
ScannerLibrary.CONSTANT.RETURN.SUCCESS : 正常終了
ScannerLibrary.CONSTANT.RETURN.ERROR_PARAMETER : パラメーターエラー
ScannerLibrary.CONSTANT.RETURN.ERROR_UNSUPPORTED : 未サポートエラー
getLaserSwingWidth()public int getLaserSwingWidth()
ScannerLibrary.CONSTANT.SWING_WIDTH.MAX : 振れ幅最大 (デフォルト)
ScannerLibrary.CONSTANT.SWING_WIDTH.WIDE : 振れ幅広
ScannerLibrary.CONSTANT.SWING_WIDTH.MIDDLE : 振れ幅中
ScannerLibrary.CONSTANT.SWING_WIDTH.NARROW : 振れ幅狭
ScannerLibrary.CONSTANT.RETURN.ERROR_PARAMETER : パラメーターエラー
ScannerLibrary.CONSTANT.RETURN.ERROR_UNSUPPORTED : 未サポートエラー
setLaserSwingWidth(int)public int setLaserHighlightMode(int enable)
enable - レーザーハイライトモード有効/無効
ScannerLibrary.CONSTANT.LASER_HIGHLIGHT_MODE.DISABLE : レーザーハイライトモード無効 (デフォルト)
ScannerLibrary.CONSTANT.LASER_HIGHLIGHT_MODE.ENABLE : レーザーハイライトモード有効
ScannerLibrary.CONSTANT.RETURN.SUCCESS : 正常終了
ScannerLibrary.CONSTANT.RETURN.ERROR_PARAMETER : パラメーターエラー
ScannerLibrary.CONSTANT.RETURN.ERROR_UNSUPPORTED : 未サポートエラー
getLaserHighlightMode()public int getLaserHighlightMode()
ScannerLibrary.CONSTANT.LASER_HIGHLIGHT_MODE.DISABLE : レーザーハイライトモード無効 (デフォルト)
ScannerLibrary.CONSTANT.LASER_HIGHLIGHT_MODE.ENABLE : レーザーハイライトモード有効
ScannerLibrary.CONSTANT.RETURN.ERROR_UNSUPPORTED : 未サポートエラー
setLaserHighlightMode(int)public int setInternalParameter(byte[] command)
command - ScannerLibrary.CONSTANT.RETURN.SUCCESS : 正常終了
ScannerLibrary.CONSTANT.RETURN.ERROR_PARAMETER : パラメーターエラー
ScannerLibrary.CONSTANT.RETURN.ERROR_UNSUPPORTED : 未サポートエラー
ScannerLibrary.CONSTANT.RETURN.ERROR_NOTOPENED : 非オープンエラー
public int setInternalParameter(int tag,
int value)
tag - value - ScannerLibrary.CONSTANT.RETURN.SUCCESS : 正常終了
ScannerLibrary.CONSTANT.RETURN.ERROR_PARAMETER : パラメーターエラー
ScannerLibrary.CONSTANT.RETURN.ERROR_UNSUPPORTED : 未サポートエラー
ScannerLibrary.CONSTANT.RETURN.ERROR_NOTOPENED : 非オープンエラー
getInternalParameter(int)public int setInternalParameter(int number,
int[] tags,
int[] values)
number - tags - values - ScannerLibrary.CONSTANT.RETURN.SUCCESS : 正常終了
ScannerLibrary.CONSTANT.RETURN.ERROR_PARAMETER : パラメーターエラー
ScannerLibrary.CONSTANT.RETURN.ERROR_UNSUPPORTED : 未サポートエラー
ScannerLibrary.CONSTANT.RETURN.ERROR_NOTOPENED : 非オープンエラー
getInternalParameter(int)public int getInternalParameter(int tag)
tag - ScannerLibrary.CONSTANT.RETURN.ERROR_UNSUPPORTED : 未サポートエラー
ScannerLibrary.CONSTANT.RETURN.ERROR_NOTOPENED : 非オープンエラー
setInternalParameter(int, int)public int getInternalParameter(int[] tags,
int[] values)
tags - values - ScannerLibrary.CONSTANT.RETURN.ERROR_UNSUPPORTED : 未サポートエラー
ScannerLibrary.CONSTANT.RETURN.ERROR_NOTOPENED : 非オープンエラー
setInternalParameter(int, int)