observe
fun <T> ComponentActivity.observe(key: Preferences.Key<T>, default: T, @WorkerThread callback: suspend (value: T) -> Unit): Job
Observes the values sent to key while the Activity is started. Will pause onPause, and restart after onStart.
Author
Arnau Mora
Since
20220829