HI team i am using Interface for call back, is the...
# android
n
HI team i am using Interface for call back, is there any alternative of interface which i can use in kotlin, as i don't have a lifecyclerowner so i can't use LiveData and coroutines
m
Hello. you can use EventBus https://github.com/greenrobot/EventBus
n
actually i don;t have activity,fragment: My use Case is i have 3 module and one product app all modules are independent, so once the module 1 work is finish callback will got to product app that my work is finish do your next task and i achive this by interface
now i am looking for alternate of interface to do callback
h
Just use Coroutines and Flow. (not LiveData)
j
image.png