| Package | com.myflashlab.air.extensions.rongta |
| Class | public class Cmd |
| Inheritance | Cmd Object |
Cmd object is used to send print commands to the printer. You must initialize a Cmd object for every
print command you are sending to the printer. Use Rongta.createCmd(); to init.
| Method | Defined By | ||
|---|---|---|---|
append($bytes:String):void
Append cmds
| Cmd | ||
clear():void
Clear all cmds
| Cmd | ||
getAllCutCmd():String
All cut
| Cmd | ||
getAppendCmds():String
Get All Cmds
| Cmd | ||
getBarcodeCmd($type:int, $setting:BarcodeSetting, $content:String):String
Get Barcode Printing command
| Cmd | ||
getBeepCmd():String
Beep
| Cmd | ||
getBitmapCmd($bitmapSetting:BitmapSetting, $bitmap:BitmapData):String
Get Bitmap printing command
| Cmd | ||
getChartName():String
Get current charset name. | Cmd | ||
getCRCmd():String
Enter
| Cmd | ||
getEndCmd():String
End command
| Cmd | ||
getHalfCutCmd():String
Half cut
| Cmd | ||
getHeaderCmd():String
Get header commands
| Cmd | ||
getLFCmd():String
Wrap
| Cmd | ||
getLFCRCmd():String
Wrap + Enter
| Cmd | ||
getSelfTestCmd():String
Test page print
| Cmd | ||
getTextCmd($textSettings:TextSettings, $text:String):String
Print text command
| Cmd | ||
setChartName(a:String):void
charset name setting
| Cmd | ||
| append | () | method |
public function append($bytes:String):voidAppend cmds
Parameters
$bytes:String — Base64 String bytes
|
| clear | () | method |
public function clear():voidClear all cmds
| getAllCutCmd | () | method |
public function getAllCutCmd():StringAll cut
ReturnsString — Base64 String representative of the bytes.
|
| getAppendCmds | () | method |
public function getAppendCmds():StringGet All Cmds
ReturnsString — Base64 String representative of the bytes.
|
| getBarcodeCmd | () | method |
public function getBarcodeCmd($type:int, $setting:BarcodeSetting, $content:String):StringGet Barcode Printing command
Parameters
$type:int — barcodeType, BarcodeSetting.QR_CODE for example.
| |
$setting:BarcodeSetting | |
$content:String |
String — Base64 String representative of the bytes.
|
| getBeepCmd | () | method |
public function getBeepCmd():StringBeep
ReturnsString — Base64 String representative of the bytes.
|
| getBitmapCmd | () | method |
public function getBitmapCmd($bitmapSetting:BitmapSetting, $bitmap:BitmapData):StringGet Bitmap printing command
Parameters
$bitmapSetting:BitmapSetting — Bitmap setting (width limit)
| |
$bitmap:BitmapData — the bitmap which to print
|
String — Base64 String representative of the bytes.
|
| getChartName | () | method |
public function getChartName():StringGet current charset name.
ReturnsString — |
| getCRCmd | () | method |
public function getCRCmd():StringEnter
ReturnsString — Base64 String representative of the bytes.
|
| getEndCmd | () | method |
public function getEndCmd():StringEnd command
ReturnsString — Base64 String representative of the bytes.
|
| getHalfCutCmd | () | method |
public function getHalfCutCmd():StringHalf cut
ReturnsString — Base64 String representative of the bytes.
|
| getHeaderCmd | () | method |
public function getHeaderCmd():StringGet header commands
ReturnsString — Base64 String representative of the bytes.
|
| getLFCmd | () | method |
public function getLFCmd():StringWrap
ReturnsString — Base64 String representative of the bytes.
|
| getLFCRCmd | () | method |
public function getLFCRCmd():StringWrap + Enter
ReturnsString — Base64 String representative of the bytes.
|
| getSelfTestCmd | () | method |
public function getSelfTestCmd():StringTest page print
ReturnsString — Base64 String representative of the bytes.
|
| getTextCmd | () | method |
public function getTextCmd($textSettings:TextSettings, $text:String):StringPrint text command
Parameters
$textSettings:TextSettings | |
$text:String |
String — Base64 String representative of the bytes.
|
| setChartName | () | method |
public function setChartName(a:String):voidcharset name setting
Parameters
a:String |