Herunterladen Inhalt Inhalt Diese Seite drucken

Werock Scoria M240 Betriebsanleitung Seite 116

Inhaltsverzeichnis

Werbung

Verfügbare Sprachen

Verfügbare Sprachen

Scoria M240 User Manual
specified by the device (the file path is vendor/etc/scanner_config.xml); the context parameter can be
passed to the application context.
The callback parameter is optional and can monitor the start ( onStart) and finish (onFinish) of the
initialization process.
Set callback for scancode
Scanner.setDecodeCallback(decodeCallback);
In the decodeCallback parameter, the parameter data passed by onComplete is the original data
returned after scanning the code.
Start scanning
Scanner.startDecode(callback); or Scanner.startDecode();
The callback parameter is optional and can monitor the start ( onStart) and end (onFinish) of the code
scanning process.
Stopping scanning
Under normal circumstances, scanning stops when decoding is complete or the timeout is reached. If you
need to stop scanning manually, you can call Scanner.stopDecode();
Get scan result
Basically, data transmission and key monitoring in hard-decoded scanning are implemented by
broadcasting, which plays an important role in the app. When the service is on, we monitor the transmission
of all keystrokes. Code:
The monitored broadcast is uniformly accepted and processed, including keystrokes and some initialization
operations. The code is as follows:
116 / 120

Werbung

Inhaltsverzeichnis
loading

Inhaltsverzeichnis