You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
||[`RxJava1.x`](https://github.com/pwittchen/ReactiveSensors/tree/RxJava1.x)|`reactivesensors`|[](https://travis-ci.org/pwittchen/ReactiveSensors)|[](https://codecov.io/gh/pwittchen/ReactiveSensors/branch/RxJava1.x)||
9
+
|:ballot_box_with_check:|[`RxJava2.x`](https://github.com/pwittchen/ReactiveSensors/tree/RxJava2.x)|`reactivesensors-rx2`|[](https://travis-ci.org/pwittchen/ReactiveSensors)|[](https://codecov.io/gh/pwittchen/ReactiveSensors/branch/RxJava2.x)||
10
+
11
+
This is **RxJava2.x** branch. To see documentation for RxJava1.x, switch to [RxJava1.x](https://github.com/pwittchen/ReactiveSensors/tree/RxJava1.x) branch.
-[Subscribing and unsubscribing observables](#subscribing-and-unsubscribing-observables)
25
+
-[Subscribing and disposing flowables](#subscribing-and-disposing-flowables)
21
26
-[Filtering stream](#filtering-stream)
22
27
-[Other practices](#other-practices)
23
28
-[Download](#download)
@@ -32,14 +37,14 @@ Usage
32
37
33
38
Code sample below demonstrates how to observe Gyroscope sensor.
34
39
35
-
Please note that we are filtering events occuring when sensor readings change with `ReactiveSensorFilter.filterSensorChanged()` method. There's also event describing change of sensor's accuracy, which can be filtered with `ReactiveSensorFilter.filterAccuracyChanged()` method. When we don't apply any filter, we will be notified both about sensor readings and accuracy changes.
40
+
Please note that we are filtering events occurring when sensor readings change with `ReactiveSensorFilter.filterSensorChanged()` method. There's also event describing change of sensor's accuracy, which can be filtered with `ReactiveSensorFilter.filterAccuracyChanged()` method. When we don't apply any filter, we will be notified both about sensor readings and accuracy changes.
Exemplary application, which gets readings of various sensors is located in `app` directory of this repository. You can easily change `SENSOR_TYPE` variable to read values from a different sensor in a given samples.
87
101
88
-
If you are interested in library usage with Kotlin, check sample in `app-kotlin` directory.
89
-
90
102
Good practices
91
103
--------------
92
104
@@ -113,28 +125,22 @@ new ReactiveSensors(context).observeSensor(Sensor.TYPE_GYROSCOPE)
0 commit comments