setReaderDisplay
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. If the coroutine calling this function is cancelled, the underlying operation will be cancelled as well.
Example usage:
val job = coroutineScope.launch {
try {
terminal.setReaderDisplay(cart)
// Handle successful display update
} catch (e: TerminalException) {
// Handle display update failure
}
}
// Cancelling the job will cancel the display update operation
job.cancel()Content copied to clipboard
Throws
if the operation fails