Is there an idiomatic way to expose state from a Service to the UI?
My use case is in a live streaming app with some complex, stateful, and tightly coupled signalling running in a Service. Some of this state needs to be exposed to the user. However, attempting to do so (e.g. through a ViewModel) leads to a lot of boilerplate, mapping Flows and such, and duplicating default/initial state. Any advice?
😶 1
u
Umar Ata
01/26/2022, 11:23 PM
You mean your service syncing data in background and you want to show something to the user based on data being synced?