0.0.10 • Published 2 years ago

printer-plugin v0.0.10

Weekly downloads
-
License
MIT
Repository
-
Last release
2 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

2 years ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago