Giter Site home page Giter Site logo

android-basekotlinmvvm's Introduction

BaseKotlinMVVM

Under link say about MVVM but I think it is MVP :

https://medium.com/@manuelvicnt/rxjava2-android-mvvm-lifecycle-app-structure-with-retrofit-2-cf903849f49e

  • If you use Flowable, you must use subscribeWith() to dispose() it

  • If you use Maybe, we’re not going to unsubscribe from it.

  • if you're multi result:

_ Observable: Emits 0 or n items and terminates with an success or an error event.

_ Flowable: is observable + backpressure: Emits 0 or n items and terminates with an success or an error event. Supports backpressure, which allows to control how fast a source emits items.

  • if you’re only expecting a single result:

_ Single: Emits either a single item or an error event. The reactive version of a method call.

_ Completable: Either completes with an success or with an error event. It never emits items. The reactive version of a Runnable.

_ Maybe: Single + Completable: Succeeds with an item, or no item, or errors. The reactive version of an Optional.

  • Observable, Flowable subcribe a Subscriber
  • Maybe, Single, Completable subscribe a Observer

android-basekotlinmvvm's People

Contributors

nguyenkhiemit avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.