Skip to content

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

dev
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
app
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

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.

About

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

Topics

Resources

Packages

No packages published

Languages

You can’t perform that action at this time.