GitXplorerGitXplorer
f

rx-receivers

public
367 stars
26 forks
2 issues

Commits

List of commits on branch master.
Unverified
e40340709d9cb1a3c22ebdd668819b2656033a8a

Prepare next development version.

ff2prateek committed 8 years ago
Unverified
0de0da3a15ef30e5b82a362d60f7fe74ffa2f042

Prepare for release 0.1.0.

ff2prateek committed 8 years ago
Unverified
4014e123aac5855c41bf3e7ca6b7d75b5df17b4e

Merge pull request #12 from f2prateek/battery

ff2prateek committed 8 years ago
Unverified
915395d9f7eb65d196269011c50af25cd257b7c1

disable java 7

ff2prateek committed 8 years ago
Unverified
6b6187af34fe36a2d00f619cedac3e1f2bcab189

bump

ff2prateek committed 8 years ago
Unverified
bb52259a814a473995656d8f12d9746e184f4299

Add Battery Manager API

ff2prateek committed 8 years ago

README

The README file for this repository.

Rx Receivers

Reactive BroadcastReceiver implementations for Android.

Note: work in progress

Usage

Register a BroadcastReceiver with the given IntentFilter, which emits Intent values:

RxBroadcastReceiver.create(context, new IntentFilter(WifiManager.WIFI_STATE_CHANGED_ACTION))
  .subscribe((Action1) (intent) -> { textView.setText(intent.toString()); });

Or use the pre-defined factory methods.

RxTelephonyManager.phoneStateChanges(context).subscribe();
RxWifiManager.wifiStateChanges(context).subscribe();
RxWifiManager.networkStateChanges(context).subscribe();
RxWifiManager.supplicantConnectionChanges(context).subscribe();
RxWifiManager.supplicantStateChanges(context).subscribe();

Download

compile 'com.f2prateek.rx.receivers:rx-receivers:0.1.0'

License

Copyright 2015 Prateek Srivastava

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.