Comprehensive Sunmi POS printer SDK wrapper supporting text, barcodes, QR codes, bitmaps, cash drawer, LCD display, label printing, and cutter control.
package com.onereva.simpos.manager
import android.content.Context
import android.graphics.Bitmap
import android.os.RemoteException
import android.widget.Toast
import com.onereva.simpos.util.ESCUtil
import com.sunmi.peripheral.printer.*
/**
* <pre>
* This class is used to demonstrate various printing effects
* Developers need to repackage themselves, for details please refer to
* http://sunmi-ota.oss-cn-hangzhou.aliyuncs.com/DOC/resource/re_cn/Sunmiprinter%E5%BC%80%E5%8F%91%E8%80%85%E6%96%87%E6%A1%A31.1.191128.pdf
</pre> *
*
* @author kaltin
* @since create at 2020-02-14
*/
class SunmiPrintManager private constructor() {
/**
* sunmiPrinter means checking the printer connection status
*/
var sunmiPrinter = CheckSunmiPrinter
/**
* SunmiPrinterService for
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search 40K more like it.
Get a free API key