LiveData - kroegerama/retrofit-kaiteki GitHub Wiki

Usage

  1. Create listing by invoking createListing() on any retrofit call
  2. Use the LiveData objects to monitor network failures and the actual result
  3. Use the listing to retry the call ()
val listing = api.getPost(1).createListing()

val networkStateLiveData = listing.networkState
val resultLiveData = listing.result

listing.retry()