How it works ?
Here you can find a detailed explanation of how Livebox works and how you can customize it.
Let's go through a working example to better understand how it works.
Let's go through this code line by line:
Line 6, use LiveboxBuilder class to create instances of Livebox you should specify the input type and output type. In this case we are excepting to receive UsersRes from fetcher and return an instance of Users class.
Line 7, every Livebox instance should have a unique key, this will be used internally to save and read data from cache among other things.
Line 13, builds Livebox instance.
Line 16, scope this request using Ubers AutoDispose library. This returns an observable that's bounded to the provided lifecycle.
Flow diagram
Last updated