XScanManager

class XScanManager(context: Context, listener: XScanListener) : NLDeviceStream.NLUsbListener

Configuration Publish : Name = PublishToMavenLocal XScanSDK:app

Constructors

Link copied to clipboard
constructor(context: Context, listener: XScanListener)

Properties

Link copied to clipboard

Functions

Link copied to clipboard
open override fun actionUsbPlug(event: Int)

Notify the application when a USB device unplugging action is detected

Link copied to clipboard
@RequiresApi(value = 31)
open override fun actionUsbRecv(recvBuff: ByteArray?, len: Int)

Notify the application when the communication port receives data

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun close()

If there is an X-Scan connected, close the connection.

Link copied to clipboard
@RequiresApi(value = 31)
fun connect(): Boolean
Link copied to clipboard
Link copied to clipboard
fun generateQrCodeAsBitmap(source: String?, width: Int, height: Int): Bitmap?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun initialize(disconnectedBeep: Boolean = true, scanBeep: Boolean = true, connectBeep: Boolean = true, showToast: Boolean = true, vibration: Boolean = true, autoConnect: Boolean)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun setMessageMode(showToast: Boolean)
Link copied to clipboard
fun setMultiCommands(listBarcodeFormat: MutableList<String>)
Link copied to clipboard
Link copied to clipboard
fun setSongMode(disconnectedBeep: Boolean = true, scanBeep: Boolean = true, connectBeep: Boolean = true)
Link copied to clipboard
fun setVibrationMode(vibration: Boolean)
Link copied to clipboard
fun setXScanConnected(connectedState: Boolean)
Link copied to clipboard

Start the connected X-Scan.