Home - kroegerama/retrofit-kaiteki GitHub Wiki

Current components

Retrofit LiveData extension function

Convert any retrofit call to LiveData (Android Architecture Components).

> Documentation

Retrofit DSL

Invoke your retrofit calls using a simple domain specific language.

> Documentation

Debug Interceptor

Allows you to see outgoing requests and the incoming responses in your logcat

Retry Call Annotation

Annotate your retrofit calls and let them automatically be retried. Allows to set the retry count per call.

> Documentation

Cache Call Annotation

Annotate your retrofit calls and let them automatically be cached. Allows to set a debounce time and a maximum age per call.

  • debounce: Load from cache and avoid a network call, if the cached value is younger than specified amount of milliseconds. Set to 0 to disable.
  • maxAge: Load from cache and enqueue a network call, if the cached value is younger than the specified amount of milliseconds. onSuccess() may be called twice. Once with cached data and once with the updated data from network. Set to 0 to disable.

> Documentation