capacitor-aria-print
v2.0.7
Published
Aria Point of Sale Print Plugin
Downloads
3
Readme
capacitor-aria-print
Aria Point of Sale Print Plugin
Install
npm install capacitor-aria-print
npx cap sync
API
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() => any
Returns: any
scanBarcode(...)
scanBarcode(options: ScanBarcodeOptions) => any
| Param | Type |
| ------------- | ----------------------------------------------------------------- |
| options
| ScanBarcodeOptions |
Returns: any
enableBluetooth()
enableBluetooth() => any
Returns: any
enableLocation()
enableLocation() => any
Returns: any
checkPermissions()
checkPermissions() => any
Returns: any
requestPermissions()
requestPermissions() => any
Returns: 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" |