setReaderDisplay

suspend fun Terminal.setReaderDisplay(cart: Cart)

Parameters

cart

The cart information to display on the reader

See also

Sets the reader display to show cart information.

This suspend function integrates with Kotlin's structured concurrency.

Example usage:

val job = coroutineScope.launch {
try {
terminal.setReaderDisplay(cart)
// Handle successful display update
} catch (e: TerminalException) {
// Handle display update failure
}
}

Throws

if the operation fails