Skip to content

Latest commit

 

History

History
28 lines (25 loc) · 1.47 KB

module.md

File metadata and controls

28 lines (25 loc) · 1.47 KB

Module base

A reactive data loading for Android based on RxJava. The library follows the guidelines recommended in official Android guide to app architecture to load data and report an operation state (Loading/Content/Error).

Features

  • Widely used design with Loading/Content/Error states.
  • Uses cache as a 'source of truth' with CacheThenNetLceModel.
  • Checks data is valid (up-to-date or whatever).
  • Falls back to invalid cache data if failed to refresh which allows offline application use.
  • Supports data refresh or update to implement reload or server data update operations.
  • Cache may be invalidated separately from loading to allow lazy data updates and complex data linking.
  • Extendable architecture on every level.
  • Thoroughly tested.

Please see a github project for detailed description.

Package com.motorro.rxlcemodel.rx

Basic LceModel classes

Package com.motorro.rxlcemodel.rx.entity

Contains tools to maintain data validity

Package com.motorro.rxlcemodel.rx.service

Contains tools to load and store data

Package com.motorro.rxlcemodel.disklrucache

Jake Wharton's DiskLruCache cache delegate for RxLceModel

Package com.motorro.rxlcemodel.kserializer

DiskLruCache serialization delegate using Kotlin serialization