renderValue
fun renderValue(value: DataItem, timeZone: TimeZone = TimeZone.currentSystemDefault(), trueFalseStrings: Pair<String, String> = Pair("false", "true")): String
Renders the value of this data element as a string.
The returned value is suitable for displaying in an user interface.
This method never throws an exception, if an error happens it falls back to returning the CBOR rendered as diagnostics using Cbor.toDiagnostics using the flag DiagnosticOption.BSTR_PRINT_LENGTH.
Return
a string representing the value.
Parameters
value
the value, as a CBOR data item
timeZone
the time zone to use, for rendering date-time. It is never used for rendering a full-date.
trueFalseStrings
a pair with the strings to use for false and true.