Socket
Socket
Sign inDemoInstall

capacitor-plugin-print-bluetooth

Package Overview
Dependencies
2
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    capacitor-plugin-print-bluetooth

This plugin was created with the purpose of being able to print invoices using the mobile device


Version published
Weekly downloads
4
decreased by-60%
Maintainers
1
Install size
25.2 kB
Created
Weekly downloads
 

Readme

Source

capacitor-plugin-print-bluetooth

Printer Blueetooth

Install

npm install capacitor-plugin-print-bluetooth
npx cap sync

How to Use

**The printer must be connected to the device via Bluetooth **

you must import the library where you want:

import { PrintBluetooth } from 'capacitor-plugin-print-bluetooth'

Definitions

"\n it's a line break"

"[L] It is used to position the text to the left"

"[C] It is used to position the text in the center"

"[R] Used to position the text to the right"

Example

           let textToPrint=   "[L]\n" +

           "[L] <b>bold text</b>\n\n" +
           
            "[C] <b>I am a text in the center</b>\n" +
            
            "[R] I am a text to the right\n" +     
            
            "[L] I am a text to the left\n" +
            
            "[L] <b>inserting text</b>\n" ,
            
            let dataPrinter = textToPrint;

" Information is sent to the printer"

PrintBluetooth.blPrint({ value: dataPrinter });

API

  • echo(...)
  • blPrint(...)
  • testingMessage()
  • getNotifications()

echo(...)

echo(options: { value: string; }) => Promise<{ value: string; }>
ParamType
options{ value: string; }

Returns: Promise<{ value: string; }>


blPrint(...)

blPrint(options: { value: string; }) => boolean
ParamType
options{ value: string; }

Returns: boolean


testingMessage()

testingMessage() => boolean

Returns: boolean


getNotifications()

getNotifications() => any

Returns: any


Keywords

FAQs

Last updated on 29 Feb 2024

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc