Skip to content

Latest commit

 

History

History
37 lines (26 loc) · 615 Bytes

README.md

File metadata and controls

37 lines (26 loc) · 615 Bytes

RxNetwork2-Android

A simple util and example of how to track connectivity changes in Android applications.

About My Fork

Port to RxJava2

How to use

In Android Manifest add

<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>

Call to receive stream

RxNetwork.stream(context)

or

RxNetwork.flow(context)

Download

compile 'com.laimiux.rxnetwork:rxnetwork:0.0.4'
compile 'cn.jingzhuan.lib:rxnetwork:1.0.0'