sarmad sohaib
10/20/2022, 8:49 PMBroadcastReciever() somewhere else, which can be viewModel, repository, or fragment. I am not sure where to send data from receiver because i am newbie to MVVM architecture. I have three questions:
1. Where to send data from receiver? ViewModel or repository?
2. How to send data by not breaking the best practices and MVVM.
3. Should i use Coroutines in receiver? If yes, how?
I am a beginner so please tell me if question is unclear. Code examples will help me a lot. I have tried almost everything from Internet and not a single solution was easy to understand.
Thank you!Pablichjenkov
10/20/2022, 9:25 PMsarmad sohaib
10/21/2022, 7:42 AMPablichjenkov
10/21/2022, 9:52 PMsarmad sohaib
10/22/2022, 2:39 PM