All Projects → kmdupr33 → Rxloader

kmdupr33 / Rxloader

Licence: apache-2.0
DEPRECATED data loading solution for android to load data with no memory leaks, no boiler-plate, and no method count bloat

Projects that are alternatives of or similar to Rxloader

Ticons Server Php
⛔️ REPLACED BY NODE.JS VERSION:
Stars: ✭ 127 (-27.01%)
Mutual labels:  deprecated
Jquery Simulate Ext
jQuery simulate extended
Stars: ✭ 144 (-17.24%)
Mutual labels:  deprecated
Ofxlibwebsockets
[Deprecated] openFrameworks wrapper of libwebsockets for WebSocket client and server functionality
Stars: ✭ 171 (-1.72%)
Mutual labels:  deprecated
Bselect
DEPRECATED - The select decorator component that was missing for Twitter Bootstrap.
Stars: ✭ 129 (-25.86%)
Mutual labels:  deprecated
Httpserver.jl
DEPRECATED! Basic, non-blocking HTTP server in Julia.
Stars: ✭ 138 (-20.69%)
Mutual labels:  deprecated
Sphero Android Sdk
🚫 DEPRECATED REPO: Sphero™ is the amazing robotic ball ( gosphero.com ), this is the repository for the Android SDK for Sphero™. Visit dev site for more information:
Stars: ✭ 160 (-8.05%)
Mutual labels:  deprecated
Go Web3
Ethereum Go Client [obsolete]
Stars: ✭ 120 (-31.03%)
Mutual labels:  deprecated
Gulp Traceur
Traceur is a JavaScript.next to JavaScript-of-today compiler
Stars: ✭ 172 (-1.15%)
Mutual labels:  deprecated
Vip Scanner
Deprecated: Scan all sorts of themes and files and things! Use PHPCS and the VIP coding standards instead
Stars: ✭ 143 (-17.82%)
Mutual labels:  deprecated
Cudlr
⛔️ [DEPRECATED] Console for Unity Debugging and Logging Remotely
Stars: ✭ 167 (-4.02%)
Mutual labels:  deprecated
Cmsplugin Filer
DEPRECATED, this project is no longer maintained, see README for more information.
Stars: ✭ 129 (-25.86%)
Mutual labels:  deprecated
Gh
(DEPRECATED) GitHub CLI made with NodeJS
Stars: ✭ 1,701 (+877.59%)
Mutual labels:  deprecated
Elasto
DEPRECATED: Simple library to query Elasticsearch
Stars: ✭ 163 (-6.32%)
Mutual labels:  deprecated
React Panels
React.js panel widget with support for tabs, toolbars, buttons and customizable themes
Stars: ✭ 128 (-26.44%)
Mutual labels:  deprecated
Venator
[⛔️ Deprecated] Venator is a python tool used to gather data for proactive detection of malicious activity on macOS devices.
Stars: ✭ 172 (-1.15%)
Mutual labels:  deprecated
Intern Only Dojo
DEPRECATED - See dojo/meta for the latest on Dojo 2
Stars: ✭ 123 (-29.31%)
Mutual labels:  deprecated
Redditkit.rb
[Deprecated] A Ruby wrapper for the reddit API
Stars: ✭ 156 (-10.34%)
Mutual labels:  deprecated
Django Mailchimp
DEPRECATED, this project is no longer maintained, see README for more information.
Stars: ✭ 172 (-1.15%)
Mutual labels:  deprecated
Retour
DEPRECATED Retour allows you to intelligently redirect legacy URLs, so that you don't lose SEO value when rebuilding & restructuring a website.
Stars: ✭ 172 (-1.15%)
Mutual labels:  deprecated
Keras Metrics
Metrics for Keras. DEPRECATED since Keras 2.3.0
Stars: ✭ 164 (-5.75%)
Mutual labels:  deprecated

Deprecated

The newer live data offers a better solution to this problem. If you're interested in using rx with live data, you can checkout the live data from reactive streams api

Download

RxLoader

compose() your Observables and Singles into ones that load data that's cached across activity orientation changes without leaking your Activity and without you having to worry about unsubscribing.

RxLoader accomplishes this by building on top of Android Loaders, so the library is super lightweight (only defines 47 methods).

There's a lot of data loading solutions already for Android. I detail why I felt we needed another one here

Code

Github repo is here. Note that it contains some rough sample code.

Javadoc

Here

Basic Usage

build.gradle

dependencies {
  compile 'com.philosophicalhacker.rxloader:rxloader:0.4.0'
}  

FooActivity

@Override
protected void onCreate(Bundle savedInstanceState) {
    final RxLoader rxLoader = new RxLoader(this, getSupportLoaderManager());
    storyApiService
        .getAskStories()
        .compose(rxLoader.<List<Integer>>makeSingleTransformer())
        .subscribe(new Consumer<List<Integer>>() {
          @Override public void accept(List<Integer> integers) {
            Log.d(TAG, "call() called with: integers = [" + integers + "]");
          }
        });
}

Notice that you don't have worry about calling subscribeOn or observeOn either. That's handled by RxLoader.

License

Copyright 2017 Kevin Matthew Dupree

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].