• Stars
    star
    368
  • Rank 115,958 (Top 3 %)
  • Language
    Java
  • License
    Apache License 2.0
  • Created over 9 years ago
  • Updated over 7 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Reactive Bindings for BroadcastReceivers β€” WIP

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.

More Repositories

1

rx-preferences

Reactive SharedPreferences for Android
Java
1,537
star
2

dart

Extras binding and intent builders for Android apps.
Java
1,186
star
3

progressbutton

A custom progress indicator with a tiny footprint.
Java
631
star
4

device-frame-generator

Wrap your app screenshots in real device artwork.
Java
234
star
5

gradle-android-javafmt-plugin

Augomagically format Java files (deprecated)
Groovy
58
star
6

android-bee

Kotlin
45
star
7

android-checkstyle-plugin

Configures the checkstyle plugin for Android projects
Groovy
39
star
8

train

Chainable HTTP client middleware.
Go
31
star
9

bundler

Bundler is small fluent API on top top of android.os.Bundle
Java
20
star
10

cloak

Library to Bootstrap Dagger on Android
Java
16
star
11

android-couchpotato

WIP
Java
9
star
12

clearbit-go

Golang API for the Clearbit API.
Go
8
star
13

android-xkcd

XKCD Comic Viewer
Java
5
star
14

segment-android

Java
4
star
15

hn2instapaper

Save the top articles on Hacker News to your Instapaper account.
Go
3
star
16

shush-wifi

Java
3
star
17

Square-OctoCash

Send cash to developers on Github with Square Cash
JavaScript
3
star
18

ln

[deprecated] Ln, a more natural Log.
Java
3
star
19

go-pointers

Go
3
star
20

pvt

Java
2
star
21

rxjava-reject

Sample reject operator for RxJava
Java
2
star
22

cron

Cron library for Go.
Go
2
star
23

vogar

Unofficial mirror of Vogar from AOSP
Java
2
star
24

Stopwatch

simple android timer
Java
2
star
25

robin

Schedulers with Android specific functionality.
Java
2
star
26

IFTTW

Repo for If This Then What, built at the Startup Edmonton Hackathon
Shell
2
star
27

go-instapaper

Instapaper API Client for Go.
Go
2
star
28

interfeys

Go
1
star
29

DiLaurentis

Pretty print JSON documents.
Go
1
star
30

bee

Print the spelling alphabet of a word.
Go
1
star
31

go-github-utils

Go
1
star
32

DrinkBot

WIP
Java
1
star
33

hickson

Go
1
star
34

polygot

Count your Github activity by language.
Go
1
star
35

go-executor

Go
1
star
36

DashTimer

Java
1
star
37

github-webhook-server

Go
1
star
38

titan

Time Units for Swift
Swift
1
star
39

clock

Go
1
star
40

github-gender-stats

Print gender stats for any github org
Go
1
star
41

palette-previewer

Quickly preview colors generated by Palette
Java
1
star