Package-level declarations
Types
Link copied to clipboard
open class DefaultStatesManager<T : State>(repo: DefaultStatesManagerRepo<T> = InMemoryDefaultStatesManagerRepo(), onStartContextsConflictResolver: suspend (current: T, new: T) -> Boolean = { _, _ -> false }, onUpdateContextsConflictResolver: suspend (old: T, new: T, currentNew: T) -> Boolean = { _, _, _ -> false }) : StatesManager<T>
Link copied to clipboard
Implement this repo if you want to use some custom repo for DefaultStatesManager
Link copied to clipboard
class InMemoryDefaultStatesManagerRepo<T : State>(map: MutableMap<Any, T> = mutableMapOf()) : DefaultStatesManagerRepo<T>
Simple DefaultStatesManagerRepo for DefaultStatesManager which will store data in map and use primitive functionality