Package-level declarations

Types

Link copied to clipboard
annotation class ByteFormatValue

Valid channel config

Link copied to clipboard
annotation class ChannelConfigValue

Valid channel config

Link copied to clipboard
class ChunkedFileOutputStream(val filesDir: File, chunkSize: Int, chunkNameGenerator: (Int) -> String = { id -> "chunk_$id" }) : OutputStream

A class that allows to write into multiple files. It is useful when you want to upload a file to a server but you don't want to wait for the record to finish before.

Link copied to clipboard

Job util class that will cancel the previous job if a new one is set.

Link copied to clipboard
class DerivedStateFlow<T>(getValue: () -> T, flow: Flow<T>) : StateFlow<T>
Link copied to clipboard
object ListUtils
Link copied to clipboard
Link copied to clipboard
annotation class RotationValue

Valid integer rotation values.

Link copied to clipboard
class Scheduler(delayTimeInMs: Long, coroutineScope: CoroutineScope = CoroutineScope(Dispatchers.Default), action: suspend CoroutineScope.() -> Unit)
Link copied to clipboard
object TimeUtils
Link copied to clipboard

Functions

Link copied to clipboard
inline fun <T, R> combineStates(vararg stateFlows: StateFlow<T>, crossinline transform: (Array<T>) -> R): StateFlow<R>

Combines all stateFlows and transforms them into another StateFlow with transform

Link copied to clipboard
fun <T1, R> StateFlow<T1>.mapState(transform: (a: T1) -> R): StateFlow<R>
Link copied to clipboard
fun <T> stateFlow(getValue: () -> T, flow: Flow<T>): StateFlow<T>

Returns StateFlow from flow having initial value from calculation of getValue