peasee
07/17/2017, 9:55 AMbachhuberdesign
07/17/2017, 5:07 PMbachhuberdesign
07/17/2017, 5:08 PMbachhuberdesign
07/17/2017, 5:09 PMjw
07/17/2017, 5:11 PMjw
07/17/2017, 5:12 PMzak.taccardi
07/17/2017, 5:12 PMLiveData<T>
has little value if you are already using Rxbachhuberdesign
07/17/2017, 5:12 PMzak.taccardi
07/17/2017, 5:13 PMViewModel
is still useful though for scoping a Relay<T>
to the full lifecycle of the current UI (and surviving config changes)zak.taccardi
07/17/2017, 6:05 PMViewModel
. begin observing in onStart()
zak.taccardi
07/17/2017, 6:06 PMRelay<T>
which houses your ViewState
pojo will survive config changesbachhuberdesign
07/17/2017, 6:36 PMbachhuberdesign
07/17/2017, 6:40 PMReplayRelay
and then just replaying all events after a configuration change?bachhuberdesign
07/17/2017, 6:40 PMzak.taccardi
07/17/2017, 7:31 PMBehaviorRelay<T>
zak.taccardi
07/17/2017, 7:32 PMReplayRelay<T>
replays ALL events ever sent to it to new subscriberszak.taccardi
07/17/2017, 7:32 PMBehaviorRelay<T>
will emit the most recent eventtulio
07/17/2017, 9:20 PMbachhuberdesign
07/17/2017, 9:22 PMbachhuberdesign
07/17/2017, 9:23 PMtulio
07/17/2017, 9:41 PMtulio
07/17/2017, 9:42 PMSingle.fromCallable { database.itemDao().insertAll(items) }
zak.taccardi
07/17/2017, 9:42 PMzak.taccardi
07/17/2017, 9:42 PMzak.taccardi
07/17/2017, 9:42 PMtulio
07/17/2017, 9:43 PMSingle<List<Long>>
zak.taccardi
07/17/2017, 9:43 PMonNext()
callszak.taccardi
07/17/2017, 9:43 PMzak.taccardi
07/17/2017, 9:44 PMtulio
07/17/2017, 9:44 PM