Skip to content

yongjhih/content-observables

Repository files navigation

ContentObservables

JitPack javadoc Build Status

Usage

ContentObservables.from(context).with(handler).on(uri).subscribe(changed -> changed ? button.on() : button.off());
ContentObservables.from(context).with(handler).on(uri).subscribe((changed, uri) -> changed ? button.on() : button.off());
ContentObservables.from(context).on(uri).subscribe(new LambdaContentObserver(handler).onChange((changed, uri) -> changed ? button.on() : button.off());
ContentObservables.from(context).on(uri).subscribe(new LambdaContentObserver(handler).onChange(changed -> changed ? button.on() : button.off());

Installation

via jitpack:

repositories {
    jcenter()
    maven { url "https://jitpack.io" }
}

dependencies {
    compile 'com.github.yongjhih:content-observables:-SNAPSHOT'
    //compile 'com.github.yongjhih:content-observables:0.0.1'
}

License

Copyright 2016 Andrew Chen

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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages