LiveData - kroegerama/retrofit-kaiteki GitHub Wiki
Usage
- Create listing by invoking
createListing()
on any retrofit call - Use the LiveData objects to monitor network failures and the actual result
- Use the listing to retry the call ()
val listing = api.getPost(1).createListing()
val networkStateLiveData = listing.networkState
val resultLiveData = listing.result
listing.retry()