navigator
A small navigation library for Android to ease the use of fragment transactions & handling backstack (also available for Jetpack Compose). (by KaustubhPatange)
event-emitter
[ACTIVE] The event emitter allows you to register multiple observers, but enqueue events while there are no observers. (by Zhuinden)
navigator | event-emitter | |
---|---|---|
6 | 9 | |
98 | 77 | |
- | - | |
3.1 | 0.0 | |
8 months ago | about 1 year ago | |
Kotlin | Java | |
Apache License 2.0 | 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.
navigator
Posts with mentions or reviews of navigator.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-12-21.
-
ViewModel: for UI business, not UI operations 😮
Navigator compose
-
Kotlin 1.6.0 generates public members in bytecode when marked internal
For eg: consider this Kotlin file & the corresponding diff commit that tells exactly what is added.
-
Navigator Compose - A navigation library for Jetpack Compose
Check out Tutorials & Sample app for more info: https://github.com/KaustubhPatange/navigator/tree/master/navigator-compose
-
[Library] Made a small/simple navigation library
I tested it on the basic sample & it worked.
event-emitter
Posts with mentions or reviews of event-emitter.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-12-21.
-
ViewModel: for UI business, not UI operations 😮
If you mean UI events like the events from the Model to the UI, then you can use a sealed class and a Channel or EventEmitter
-
Kotlin Flow implementation of SingleLiveEvent
I can also comment https://github.com/Zhuinden/event-emitter 😛
-
Sending View Model Events to the UI (is this how people are handling Navigation and Snackbars now?)
For events, I use https://github.com/Zhuinden/event-emitter with https://github.com/Zhuinden/live-event
-
What's the proper way of accessing a Composable function from a non-composable one?
I use https://github.com/Zhuinden/event-emitter for this sort of thing via DisposableEffect(Unit) {
-
MVVM and one shot operations
If there isn't multiple screen switches involved, I use https://github.com/Zhuinden/event-emitter
-
LiveData is superior to StateFlow for UI and ViewModel layer.
That's why I wrote EventEmitter and never had a problem.
-
What is your currently configured SharedFlow implementation ?
I use BehaviorRelay in place of MutableStateFlow/MutableLiveData, and I use EventEmitter in place of uh, SingleLiveEvent I guess.
-
LiveData vs SharedFlow and StateFlow in MVVM and MVI Architecture
Well I've been using this which is merely a lifecycle-aware wrapper over this, if you're in Kotlin and you are using coroutine stuff then you can also use Channel(UNLIMITED) with receiveAsFlow()
What are some alternatives?
When comparing navigator and event-emitter you can also consider the following projects:
Cicerone - 🚦 Cicerone is a lightweight library that makes the navigation in an Android app easy.
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.
compose-router - [DEPRECATED] Routing functionality for Jetpack Compose with back stack
androidx - Development environment for Android Jetpack extension libraries under the androidx namespace. Synchronized with Android Jetpack's primary development branch on AOSP.