Download Mobile Printer Android SDK and API Reference Guide
Transcript
ZQ110
6-4-11 printQrCode
This method prints QR Code.
[Syntax]
* public void printQrCode(
String data, int alignment, int model, int size, boolean getResponse)
[Parameters]
* data: barcode data to print
* alignment: barcode printing alignment
Code
Value
Description
ALIGNMENT_LEFT
0
Align to left
ALIGNMENT_CENTER
1
Align to center
ALIGNMENT_RIGHT
2
Align to right
* model: QR Code model to print
Code
Value
Description
QR_CODE_MODEL1
48
QR Code model 1
QR_CODE_MODEL1
49
QR Code model 2
* size: size of barcode to print (1 ~ 8)
* getResponse: A message is sent to the application handler upon completion of printing
if this parameter is set to True, and message is not sent if it is set to False.
[Example]
public class MainActivity extends Activity {
…
private ZQ110 mZQ110;
…
public void onCreate(Bundle savedInstanceState) {
…
mZQ110 = new ZQ110(this, mHandler, null);
mZQ110.connect(null);
Rev. 1.00
- 62 -
Mobile Printer
Android SDK API Reference Guide