Regular
class Regular<T : Any>(name: String, serializer: KSerializer<T>, stateHandle: SavedStateHandle, scope: CoroutineScope, json: Json = Json, default: T? = null, workerDispatcher: CoroutineDispatcher = Dispatchers.Default) : ViewModelState<T> (source)
Plain values from one-shot or continuous sources.
Constructors
Link copied to clipboard
constructor(name: String, serializer: KSerializer<T>, stateHandle: SavedStateHandle, scope: CoroutineScope, json: Json = Json, default: T? = null, workerDispatcher: CoroutineDispatcher = Dispatchers.Default)
Properties
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Clears the payload without disconnecting observers.
Link copied to clipboard
Synchronous projection for cheap work. Use selectAsync for expensive computations.
Link copied to clipboard
Computes an expensive derived state asynchronously; reads reuse its last completed value.
Link copied to clipboard