DataWedge "服务会自动将扫描数据放置在 "inFocus "字段中,就像EditText一样,但是我希望关闭这个功能,这样我就可以将数据放置在我想要的地方。
我已经尝试在网上搜索和翻阅设置。正在等待客服人员的回复。
以下是我为Datalogic尝试的一些代码,但并不奏效。
var keywedge = KeyboardWedge(mBarcodeManager)
//keywedge.enable = BooleanProperty(0)
keywedge.enable.set(false)
注意事项 我已经解决了Datalogic SDK,我只需要帮助霍尼韦尔(我错过了一个步骤)这里是解决方案;)
var keywedge = KeyboardWedge(mBarcodeManager)
keywedge.enable.set(false)
try{
keywedge.store(mBarcodeManager,false)
}catch (e: Exception){
Log.e(TAG, "Cannot disable Wedge", e)
}
我已经解决了这个问题,一段时间前,对不起,缺乏更新。
霍尼韦尔
//Simply claim the scanner
try{
barcodeReader?.claim()
} catch (e: ScannerUnavailableException){
e.printStackTrace()
}
Datalogic
var keywedge = KeyboardWedge(mBarcodeManager)
keywedge.enable.set(false)
try{
keywedge.store(mBarcodeManager,false)
}catch (e: Exception){
Log.e(TAG, "Cannot disable Wedge", e)
}
斑马
//Add the Data & Status Listeners then enable
scanner?.addDataListener(this)
scanner?.addStatusListener(this)
scanner?.enable()