Skip to content
Advertisement

Tag: android-livedata

Merging multiple LiveData sources?

To make it easier to visualize my problem I drew the following: I am using a RoomDatabase, a Repository, a Viewmodel and Livedata. Areas have a 1 to n relationship with Gateways and Gateways a 1 to n relationship with Items. I created both an AreaWithGateways entity and a GatewayWithItems entity. Items can move from a gateway to another, which

Advertisement