//Android/br.com.arch.toolkit.android.util
| Name | Summary |
|---|---|
| ConfigValue | [android] data class ConfigValue<T : Any>(name: String, default: T, storage: () -> KeyValueStorage) A wrapper class that provides a way to observe and manage a configuration value stored in KeyValueStorage. |
| ContextProvider | [android] object ContextProvider Lightweight global Context accessor backed by WeakReference. |
| ObservableValue | [android] class ObservableValue<T>(initialValue: T, getter: () -> T?, setter: (T?) -> Unit? = null) Observable wrapper for a value persisted by external getter/setter functions. |
| ThresholdData | [android] class ThresholdData<T>(duration: Duration) Keeps a single value in memory and automatically invalidates it after duration. |
| ToolkitUtilInitialization | [android] class ToolkitUtilInitialization : Initializer<Unit> An Initializer for the toolkitβs utility module, ensuring ContextProvider is initialized with the application context. |
| Name | Summary |
|---|---|
| edit | [android] fun ERROR CLASS: Symbol not found for SharedPreferences.edit(func: ERROR CLASS: Symbol not found for SharedPreferences.Editor.() -> Unit) Extension function to simplify SharedPreferences editing with automatic SharedPreferences.Editor.apply. |
| get | [android] operator fun <T : Any> ERROR CLASS: Symbol not found for SharedPreferences.get(key: String): T? Retrieves a value from SharedPreferences using operator overloading. |
| set | [android] operator fun <T> ERROR CLASS: Symbol not found for SharedPreferences.set(key: String, value: T) Stores a value in SharedPreferences using operator overloading. |