{"repo":"mazenrashed/Printooth","free":true,"listed":false,"github":"https://github.com/mazenrashed/Printooth","clone":"git clone https://github.com/mazenrashed/Printooth.git","description":"A well documented, high-level Android interface that makes printing via bluetooth printers easier","language":"Kotlin","stars":424,"topics":["android","bluetooth","printer","printing","bluetooth-printer","woosim","sewoo","library","kotlin","kotlin-android"],"license":"MPL-2.0","category":"mobile-apps","readme_excerpt":"Printooth Printooth aim is to provide a simple abstraction for use the Bluetooth printers regardless of its brand. Add the JitPack repository to your build file Add dependency Add permissions to manifest Initialize Printooth Should be initialized once in Application.onCreate() : Scan and pair printer Printooth is providing a scanning activity to make pairing process easy. Just start ScanningActivity and you will skip the process of pairing and saving printer. When the printer is being ready: If you want to make your own user interface, you can pass your paired printer to Printooth like this: Check if Printooth has saved printer: To get the current saved printer: To remove the current saved printer: Usage in Jetpack Compose can be accomplished using ScanningView with AndroidView composable. Printing Printooth provides a simple builder to design your paper. To print Hello World simply, write this code: Use all builder functionalities: Listen to your printing order state: Use more than printer in the same time: If you have a printer with deferent commands Create a class from type Printer and override the initializers method, then return your printer commands from the printers command sheet ( You can find it on the Internet ), let's take an example: If you have issues with printing images, you can implement the process of transfaring image from bitmap to ByteArray manually by extends PrintingImagesHelper class and implement getBitmapAsByteArray, then you shold return an object fr","default_branch":null,"files":null,"tree":[],"storefront":"/r/mazenrashed","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/mazenrashed/Printooth/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}