0.0.10 • Published 3 years ago

printer-plugin v0.0.10

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

printer-plugin

printer

Install

npm install printer-plugin
npx cap sync

API

export interface collection

OpenCashBox()

OpenCashBox() => Promise<void>

PrintText(...)

PrintText(textToPrint: IPrintFormattedText) => Promise<void>
ParamType
textToPrintIPrintFormattedText

ShutDown()

ShutDown() => Promise<void>

StartKiosk()

StartKiosk() => Promise<void>

StopKiosk()

StopKiosk() => Promise<void>

LockUninstall(...)

LockUninstall(ops: { setUninstall: boolean; }) => Promise<boolean>
ParamType
ops{ setUninstall: boolean; }

Returns: Promise<boolean>


GetDeviceInfo()

GetDeviceInfo() => Promise<IDeviceInfo>

Returns: Promise<IDeviceInfo>


Interfaces

IPrintFormattedText

PropType
printerTypeCC_PRINTER_TYPE
textstring
mmFeedPapernumber
dotsFeedPapernumber
printerDpinumber
printerWidthMMnumber
printerNbrCharactersPerLinenumber
charsetEncoding{ charsetName: string; charsetId: number; }

IDeviceInfo

PropType
serialNumberstring

Enums

CC_PRINTER_TYPE

MembersValue
BLUETOOTH0
TCP1
USB2
0.0.10

3 years ago

0.0.9

3 years ago

0.0.8

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.7

3 years ago

0.0.6

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago