com.asreader.slim.barcode.event


AsReaderSLIMEventListener(クラス)


onStateChanged

instanceメソッド/abstractメソッド
AsReaderの接続状態が変化した時にコールバックされます。

メソッド定義

void onStateChanged(AsReaderSLIM reader, AsReaderSLIMConnectionState state)

パラメータ

項目名

説明

reader

AsReaderSLIM

AsReaderSLIMクラスのインスタンスオブジェクト

state

AsReaderSLIMConnectionState

AsReaderの接続状態

参照: AsReaderSLIMConnectionStateクラス


onActionChanged

instanceメソッド/abstractメソッド
AsReaderの操作状態が変化した時にコールバックされます。

メソッド定義

void onActionChanged(AsReaderSLIM reader, AsReaderSLIMActionState action)

パラメータ

項目名

説明

reader

AsReaderSLIM

AsReaderSLIMクラスのインスタンスオブジェクト

action

AsReaderSLIMActionState

AsReaderの操作状態

参照: AsReaderSLIMActionStateクラス


onReadBarcode

instanceメソッド/abstractメソッド
スキャンされたバーコードデータを受信します。

メソッド定義

void onReadBarcode(AsReaderSLIM reader, AsReaderSLIMBarcodeType type, String barcode)

パラメータ

項目名

説明

reader

AsReaderSLIM

AsReaderSLIMクラスのインスタンスオブジェクト

type

AsReaderSLIMBarcodeType

バーコードのシンボル種別

barcode

String

バーコードデータ

参照: AsReaderSLIMBarcodeTypeクラス


onReadBarcode

instanceメソッド/abstractメソッド
スキャンされたバーコードデータを受信します。

メソッド定義

void onReadBarcode(AsReaderSLIM reader, AsReaderSLIMBarcodeType type, byte[] barcodeData)

パラメータ

項目名

説明

reader

AsReaderSLIM

AsReaderSLIMクラスのインスタンスオブジェクト

type

AsReaderSLIMBarcodeType

バーコードのシンボル種別

barcodeData

byte[]

バーコードデータ(byteタイプデータ)

参照: AsReaderSLIMBarcodeTypeクラス


onKeyEvent

instanceメソッド/abstractメソッド
AsReaderSLIMのTriggerキーが押下または離した時に、コールバックされます。

メソッド定義

boolean vonKeyEvent(AsReaderSLIM reader, AsReaderSLIMKeyState state)                                               |

パラメータ

項目名

説明

reader

AsReaderSLIM

AsReaderSLIMクラスのインスタンスオブジェクト

state

AsReaderSLIMKeyState

トリガーキーの状態

参照: AsReaderSLIMKeyStateクラス

戻り値

戻り値

説明

YES

SDKのデフォルト操作を実行します
(デフォルト操作)
・Triggerキーを押下し、スキャンを開始する
・Triggerキーを離し、スキャンを停止する

NO

SDKのデフォルト操作をしません。