0.0.1 • Published 9 months ago
nexgsdknew v0.0.1
nexgsdknew
Capacitor plugin for Nexgo SDK
Install
npm install nexgsdknew
npx cap sync
API
echo(...)
echo(options: { value: string; }) => Promise<{ value: string; }>
Param | Type |
---|---|
options | { value: string; } |
Returns: Promise<{ value: string; }>
beep(...)
beep(options: { duration: number; }) => Promise<{ status: string; }>
Param | Type |
---|---|
options | { duration: number; } |
Returns: Promise<{ status: string; }>
initializePrinter()
initializePrinter() => Promise<{ status: string; message: string; }>
Returns: Promise<{ status: string; message: string; }>
printText(...)
printText(options: { text: string; fontSize?: number; alignment?: string; bold?: boolean; }) => Promise<void>
Param | Type |
---|---|
options | { text: string; fontSize?: number; alignment?: string; bold?: boolean; } |
printImage(...)
printImage(options: { base64Image: string; }) => Promise<void>
Param | Type |
---|---|
options | { base64Image: string; } |
printBarcode(...)
printBarcode(options: { text: string; height?: number; spacing?: number; textHeight?: number; format?: string; alignment?: string; }) => Promise<void>
Param | Type |
---|---|
options | { text: string; height?: number; spacing?: number; textHeight?: number; format?: string; alignment?: string; } |
startPrint()
startPrint() => Promise<void>
0.0.1
9 months ago