nexgsdknew
v0.0.1
Published
Capacitor plugin for Nexgo SDK
Downloads
3
Readme
nexgsdknew
Capacitor plugin for Nexgo SDK
Install
npm install nexgsdknew
npx cap syncAPI
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>