printText

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

Prints a line of text with the specified configuration.

Return

Result with SdkSuccessAnswer.SuccessPrint if printing succeeds, or Result.Error if it fails.

Parameters

lineText

The main text to print.

config

Configuration TextConfig for text, including font size, alignment, and auto-feed.

rightText

Optional text to print on the right side of the same line.