0.0.4 • Published 1 year ago

capacitor-plugin-sunmi-inner-v2 v0.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

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; }>
ParamType
options{ value: string; }

Returns: Promise<{ value: string; }>


printString(...)

printString(options: { contents: string; is_bold: boolean; is_underline: boolean; }) => Promise<{ results: boolean; }>
ParamType
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; }>
ParamType
options{ barcode: string; width: number; height: number; }

Returns: Promise<{ results: boolean; }>


printQrcode(...)

printQrcode(options: { qrcode: string; size: number; }) => Promise<{ results: boolean; }>
ParamType
options{ qrcode: string; size: number; }

Returns: Promise<{ results: boolean; }>


printCommand(...)

printCommand(options: { command: string; }) => Promise<{ results: boolean; }>
ParamType
options{ command: string; }

Returns: Promise<{ results: boolean; }>


openCashRegister()

openCashRegister() => Promise<{ results: boolean; }>

Returns: Promise<{ results: boolean; }>


printLcdString(...)

printLcdString(options: { contents: string; }) => Promise<{ results: boolean; }>
ParamType
options{ contents: string; }

Returns: Promise<{ results: boolean; }>


printLcdDoubleString(...)

printLcdDoubleString(options: { contents1: string; contents2: string; }) => Promise<{ results: boolean; }>
ParamType
options{ contents1: string; contents2: string; }

Returns: Promise<{ results: boolean; }>


clearLcd(...)

clearLcd(options: {}) => Promise<{ results: boolean; }>
ParamType
options{}

Returns: Promise<{ results: boolean; }>


0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago