Package io.kvision.types

Multiplatform type definitions.

Multiplatform type definitions.

Multiplatform type definitions.

Types

Link copied to clipboard
expect class Decimal
actual typealias Decimal = Double
actual typealias Decimal = BigDecimal
Link copied to clipboard
data class KFile(    val name: String,     val size: Int,     val content: String? = null)

A serializable class for a fullstack File type.

Link copied to clipboard
expect class LocalDate
actual typealias LocalDate = <ERROR CLASS>
actual typealias LocalDate = LocalDate
Link copied to clipboard
expect class LocalDateTime
actual typealias LocalDateTime = <ERROR CLASS>
actual typealias LocalDateTime = LocalDateTime
Link copied to clipboard
expect class LocalTime
actual typealias LocalTime = <ERROR CLASS>
actual typealias LocalTime = LocalTime
Link copied to clipboard
expect class OffsetDateTime
actual typealias OffsetDateTime = <ERROR CLASS>
actual typealias OffsetDateTime = OffsetDateTime
Link copied to clipboard
expect class OffsetTime
actual typealias OffsetTime = <ERROR CLASS>
actual typealias OffsetTime = OffsetTime
Link copied to clipboard
expect class ZonedDateTime
actual typealias ZonedDateTime = <ERROR CLASS>
actual typealias ZonedDateTime = ZonedDateTime

Functions

Link copied to clipboard
fun <ERROR CLASS>.decoded(): <ERROR CLASS><String?, ByteArray?>

Decode the content from the data uri string contained in the KFile object.

Link copied to clipboard
fun String.toDateF(): LocalDate
Link copied to clipboard
fun String.toDateTimeF(): LocalDateTime
Link copied to clipboard
fun String.toOffsetDateTimeF(): OffsetDateTime
Link copied to clipboard
fun String.toOffsetTimeF(): OffsetTime
Link copied to clipboard
fun LocalDate.toStringF(): String
fun LocalDateTime.toStringF(): String
fun LocalTime.toStringF(): String
fun OffsetDateTime.toStringF(): String
fun OffsetTime.toStringF(): String
fun ZonedDateTime.toStringF(): String
Link copied to clipboard
fun String.toTimeF(): LocalTime
Link copied to clipboard
fun String.toZonedDateTimeF(): ZonedDateTime

Properties

Link copied to clipboard
val KFile.base64Encoded: String?

Decode the Base64 encoded content from the data uri string contained in the KFile object.

Link copied to clipboard
val <ERROR CLASS>.byteArray: ByteArray?

Decode the byte array from the data uri string contained in the KFile object.

Link copied to clipboard
val KFile.contentType: String?

Decode the content-type from the data uri string contained in the KFile object.

Link copied to clipboard
val <ERROR CLASS>.inputStream: InputStream?

Decode the input stream from the data uri string contained in the KFile object.

Link copied to clipboard
const val KV_DEFAULT_DATE_FORMAT: String