B4A Library ThermalPrinterHelper

https://github.com/barisatalay/thermalprinterhelper
My aim is to use the simplest way to print from a Bluetooth printer.

I don't have a thermal printer , I am just wrapping blindly :D
refer to this link to know more about how to use this library

bluetoothhelper

Author: SMM
Version: 0.01
  • BluetoothProvider
    • Events:
      • _onbegin
      • _onerror (errorMessage As String)
      • _onerrorimportant (errorMessage As String)
      • _onsuccessful
    • Fields:
      • DEFAULT_SETTINGS As Byte()
      • FEED_LINE As Byte()
      • FEED_LINE_2 As Byte()
    • Functions:
      • connect
      • Initialize (EventName As String)
      • IsInitialized As Boolean
      • prepareTestData As String
      • printByteArray (data As Byte())
      • printImageText (base64image As String)
      • printText (text As String)
      • showPrinterListActivity (arg As Boolean)
    • Properties:
      • DeviceAddress As String [write only]


add these lines to your manifest file

B4X:
AddApplicationText(<activity android:name="com.atalay.bluetoothhelper.View.PrinterList.PrinterListActivity"/>)
AddApplicationText(<activity android:name="com.karumi.dexter.DexterActivity"/>)
AddPermission(android.permission.ACCESS_FINE_LOCATION)
AddPermission(android.permission.BLUETOOTH)
AddPermission(android.permission.BLUETOOTH_ADMIN)


sorry no screenshots
If you enjoyed this wrap , please consider a donation :)
 

Attachments

  • bluetoothhelper.zip
    111.5 KB · Views: 410
Top