PosPaymentSdkPrinterManager

Interface for managing printing operations through the POS External Payment SDK.

This interface provides methods for printing various types of content, such as text, barcodes, QR codes, and images, as well as for feeding paper. Each method returns a Result which can either be a Result.Success containing an SdkSuccessAnswer.SuccessPrint if the print operation is successful, or a Result.Error indicating failure.

Functions

Link copied to clipboard
abstract suspend fun feedPaper(lines: Int): Result<SdkSuccessAnswer.SuccessPrint>

Feeds the printer paper by the specified number of lines.

Link copied to clipboard
abstract suspend fun printBarcode(barCode: String, config: BarcodeConfig): Result<SdkSuccessAnswer.SuccessPrint>

Prints a barcode with the specified configuration.

Link copied to clipboard
abstract suspend fun printBitmap(bitmap: Bitmap): Result<SdkSuccessAnswer.SuccessPrint>

Prints a bitmap image.

Link copied to clipboard
abstract suspend fun printQrcode(qrCode: String): Result<SdkSuccessAnswer.SuccessPrint>

Prints a QR code.

Link copied to clipboard
abstract suspend fun printText(lineText: String, config: TextConfig, rightText: String? = null): Result<SdkSuccessAnswer.SuccessPrint>

Prints a line of text with the specified configuration.