capacitor-aria-print
v2.0.7
Published
Aria Point of Sale Print Plugin
Readme
capacitor-aria-print
Aria Point of Sale Print Plugin
Install
npm install capacitor-aria-print
npx cap syncAPI
print(...)feedPaper(...)detectPrinters()scanBarcode(...)enableBluetooth()enableLocation()checkPermissions()requestPermissions()- Interfaces
print(...)
print(options: PrintOptions) => void| Param | Type |
| ------------- | ----------------------------------------------------- |
| options | PrintOptions |
feedPaper(...)
feedPaper(options: PrinterOptions) => void| Param | Type |
| ------------- | --------------------------------------------------------- |
| options | PrinterOptions |
detectPrinters()
detectPrinters() => anyReturns: any
scanBarcode(...)
scanBarcode(options: ScanBarcodeOptions) => any| Param | Type |
| ------------- | ----------------------------------------------------------------- |
| options | ScanBarcodeOptions |
Returns: any
enableBluetooth()
enableBluetooth() => anyReturns: any
enableLocation()
enableLocation() => anyReturns: any
checkPermissions()
checkPermissions() => anyReturns: any
requestPermissions()
requestPermissions() => anyReturns: any
Interfaces
PrintOptions
| Prop | Type |
| ------------------ | ------------------- |
| width | number |
| charsPerLine | number |
| dpi | number |
| ipAddress | string |
| qrCodeSize | number |
| text | string |
| qrCode | string |
PrinterOptions
| Prop | Type |
| ------------------ | ------------------- |
| width | number |
| charsPerLine | number |
| dpi | number |
| ipAddress | string |
| qrCodeSize | number |
DetectPrintersResult
| Prop | Type |
| ------------- | --------------- |
| devices | {} |
BluetoothDevice
| Prop | Type |
| ------------- | ------------------- |
| name | string |
| id | string |
| address | string |
| class | number |
| uuid | string |
| rssi | number |
ScanBarcodeOptions
| Prop | Type |
| ------------- | ------------------- |
| message | string |
ScanBarcodeResult
| Prop | Type |
| ------------- | ------------------- |
| barcode | string |
PermissionStatus
| Prop | Type |
| --------------- | ------------------------------------------------------------------------- |
| bluetooth | "prompt" | "prompt-with-rationale" | "granted" | "denied" |
| location | "prompt" | "prompt-with-rationale" | "granted" | "denied" |
| barcode | "prompt" | "prompt-with-rationale" | "granted" | "denied" |
