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.
- Host: GitHub
- URL: https://github.com/jpardogo/lce-rxjava-extension
- Owner: jpardogo
- Created: 2019-09-16T11:24:49.000Z (over 6 years ago)
- Default Branch: dev
- Last Pushed: 2020-03-03T10:45:38.000Z (almost 6 years ago)
- Last Synced: 2025-01-12T05:26:08.788Z (12 months ago)
- Topics: android, architecture, library, patterns, rxjava, rxjava-android
- Language: Kotlin
- Homepage:
- Size: 286 KB
- Stars: 1
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.