An open API service indexing awesome lists of open source software.

https://github.com/jpardogo/lce-rxjava-extension

Loading, Content & Error pattern to create a consistent way of communication between ViewModel or Presenters and the View(Activities/Fragment/CustomViews) using SingleLiveEvent's.
https://github.com/jpardogo/lce-rxjava-extension

android architecture library patterns rxjava rxjava-android

Last synced: 29 days ago
JSON representation

Loading, Content & Error pattern to create a consistent way of communication between ViewModel or Presenters and the View(Activities/Fragment/CustomViews) using SingleLiveEvent's.

Awesome Lists containing this project

README

          

# Android Library providing and RxJava extension to follow Loading, Content & Error pattern

Loading, Content & Error pattern to create a consistent way of communication between ViewModel or Presenters and the View(Activities/Fragment/CustomViews) using SingleLiveEvent's.

It converts to observables the upstream type return from domain to provide:

- Boolean onLoading call twice on the begging of the process (true) and the end (false)
- Content of the type defined
- Error in case the process is not successful. `LceErrorViewEntity` is provided as an optional wrapper for the throwable and extra info (Any model and message)

It detach domain and view layer types for the communication, so in case the domain layer return type changes, view layer is not affected.