Jorge R
12/15/2020, 10:44 PMMarcin Środa
12/16/2020, 7:53 AMJorge R
12/16/2020, 10:52 AMMarcin Środa
12/16/2020, 10:58 AMIn the current implementation, only the user can trigger data fetching. But you can easily implement logic that schedules and updates the database every three hours, for example. By doing this, you make sure your UI is up to date with the latest data. You'll use Kotlin Flow to get notified of every change in the table.
To understand it you can take a look at generated files (check for insert method f.e.)Jorge R
12/16/2020, 11:59 AMJorge R
12/16/2020, 11:59 AMJorge R
12/16/2020, 11:59 AMJorge R
12/16/2020, 11:59 AMMarcin Środa
12/16/2020, 1:53 PMJorge R
12/16/2020, 8:21 PMJorge R
12/16/2020, 8:21 PM