LifecycleCollector
This library provides you convenience extension functions to easier collect Kotlin Flows lifecycle-aware from Activities or Fragments. It gives you a more convenient way to collect Flows in LiveData-fashion. (by sebschaef)
Kotlin_Flow_To_The_View
PoC using Flow completely on an Android Projet with MVVM architecture. No LiveData. The advantage over simply using the viewModelScope is the fact that 5 seconds after leaving the application (not killing it !), the coroutine is cancelled, avoid possibly unnecessary work. (by NinoDLC)
LifecycleCollector | Kotlin_Flow_To_The_View | |
---|---|---|
1 | 2 | |
4 | 11 | |
- | - | |
0.0 | 0.0 | |
over 2 years ago | over 1 year ago | |
Kotlin | Kotlin | |
Apache License 2.0 | - |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
LifecycleCollector
Posts with mentions or reviews of LifecycleCollector.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2021-10-08.
-
LiveData is superior to StateFlow for UI and ViewModel layer.
You can have a look at my little library, which is gives you three extension functions on flows: LifecycleCollector. However, it uses the experimental repeatOnLifecycle() under the hood.
Kotlin_Flow_To_The_View
Posts with mentions or reviews of Kotlin_Flow_To_The_View.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2021-10-08.
-
LiveData is superior to StateFlow for UI and ViewModel layer.
I'll let you see for yourself : https://github.com/NinoDLC/Kotlin_Flow_To_The_View
-
StateFlow & SharedFlow, What are the disadvantages ?
I made a very simple "demo" in MVVM full Flow if you want to see the differences (in the Activity or in unit test) : https://github.com/NinoDLC/Kotlin_Flow_To_The_View
What are some alternatives?
When comparing LifecycleCollector and Kotlin_Flow_To_The_View you can also consider the following projects:
loco - 🚀 launch on & cancel on lifecycle events
androidx - Development environment for Android Jetpack extension libraries under the androidx namespace. Synchronized with Android Jetpack's primary development branch on AOSP.
event-emitter - [ACTIVE] The event emitter allows you to register multiple observers, but enqueue events while there are no observers.