cookpad/RxT4A

Name: RxT4A

Owner: Cookpad Inc.

Description: DEPRECATED

Created: 2015-07-11 07:02:45.0

Updated: 2018-04-02 03:57:18.0

Pushed: 2016-01-31 14:43:40.0

Homepage: https://bintray.com/cookpad/maven/RxT4A/view

Size: 105

Language: Java

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

NAME

RxT4A - RxJava Toolbox for Android

Download

SYNOPSIS

ndroidSchedulers

duler scheduler = AndroidSchedulers.mainThread();
duler scheduler = AndroidSchedulers.from(new Handler());

ndroidCompositeSubscription

l AndroidCompositeSubscription s = new AndroidCompositeSubscription();

d(subscription1);
d(subscription2);

subscribe(); // unsubscribe 1 and 2

t is reusable!
d(subscription3);
d(subscription4);

subscribe(); // unsubscribe 3 and 4, too!

peratorAddToCompositeSubscription

rvable.just("foo")
    .lift(new OperatorAddToCompositeSubscription<String>(s))
    .delay(5, TimeUnit.MILLISECONDS)
    .subscribe(...);

subscribe(); // unsubscribe the above subscription

DESCRIPTION

This is a fork of RxAndroid.

AndroidSchedulers

This is almost the same as RxAndroid's AndroidSchedulers.

AndroidCompositeSubscription

This is a variation of CompositeSubscription but can be reused multiple times.

OperatorAddToCompositeSubscription

Add a subscription to AndroidCompositeSubscription in operator chains.

AndroidSubscriptions

This class provides a way to create subscriptions for Android applications.

cription subscription = observable.subscribe(subscriber);

ike Subscriptions.create(Action0), but the action is called on the main thread.
cription.add(AndroidSubscriptions.unsubscribeOnMainThread(new Action0() {
@Override
public void call() {
    // You can touch touch views.
}

INSTALL

ndencies {
compile 'com.cookpad.android.rxt4a:rxt4a:1.0.0'

LICENSE

The MIT License

AUTHOR

Cookpad Inc.


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.