print Text
abstract suspend fun printText(lineText: String, config: TextConfig, rightText: String? = null): Result<SdkSuccessAnswer.SuccessPrint>
Prints a line of text with the specified configuration.
- If rightText is null, only lineText will be printed. - If rightText is provided, lineText will be printed on the left, and rightText on the right.
Return
Result with SdkSuccessAnswer.SuccessPrint if printing succeeds, or Result.Error on failure.
Parameters
line Text
The main text to print.
config
Configuration TextConfig for text, including font size, alignment, and auto-feed.
right Text
Optional text to print on the right side of the same line.