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(...)
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; }>
Returns: Promise<{ results: boolean; }>