capacitor-plugin-sunmi-inner-v2
v0.0.4
Published
This is a capacitor plugin for sunmi inner printer
Downloads
4
Readme
capacitor-plugin-sunmi-inner-v2
This is a capacitor plugin for sunmi inner printer
Install
npm install capacitor-plugin-sunmi-inner-v2
npx cap sync
API
echo(...)
printString(...)
printBarcode(...)
printQrcode(...)
printCommand(...)
openCashRegister()
printLcdString(...)
printLcdDoubleString(...)
clearLcd(...)
echo(...)
echo(options: { value: string; }) => Promise<{ value: string; }>
| Param | Type |
| ------------- | ------------------------------- |
| options
| { value: string; } |
Returns: Promise<{ value: string; }>
printString(...)
printString(options: { contents: string; is_bold: boolean; is_underline: boolean; }) => Promise<{ results: boolean; }>
| Param | Type |
| ------------- | --------------------------------------------------------------------------- |
| options
| { contents: string; is_bold: boolean; is_underline: boolean; } |
Returns: Promise<{ results: boolean; }>
printBarcode(...)
printBarcode(options: { barcode: string; width: number; height: number; }) => Promise<{ results: boolean; }>
| Param | Type |
| ------------- | ---------------------------------------------------------------- |
| options
| { barcode: string; width: number; height: number; } |
Returns: Promise<{ results: boolean; }>
printQrcode(...)
printQrcode(options: { qrcode: string; size: number; }) => Promise<{ results: boolean; }>
| Param | Type |
| ------------- | ---------------------------------------------- |
| options
| { qrcode: string; size: number; } |
Returns: Promise<{ results: boolean; }>
printCommand(...)
printCommand(options: { command: string; }) => Promise<{ results: boolean; }>
| Param | Type |
| ------------- | --------------------------------- |
| options
| { command: string; } |
Returns: Promise<{ results: boolean; }>
openCashRegister()
openCashRegister() => Promise<{ results: boolean; }>
Returns: Promise<{ results: boolean; }>
printLcdString(...)
printLcdString(options: { contents: string; }) => Promise<{ results: boolean; }>
| Param | Type |
| ------------- | ---------------------------------- |
| options
| { contents: string; } |
Returns: Promise<{ results: boolean; }>
printLcdDoubleString(...)
printLcdDoubleString(options: { contents1: string; contents2: string; }) => Promise<{ results: boolean; }>
| Param | Type |
| ------------- | ------------------------------------------------------ |
| options
| { contents1: string; contents2: string; } |
Returns: Promise<{ results: boolean; }>
clearLcd(...)
clearLcd(options: {}) => Promise<{ results: boolean; }>
| Param | Type |
| ------------- | --------------- |
| options
| {} |
Returns: Promise<{ results: boolean; }>