File tree Expand file tree Collapse file tree 2 files changed +15
-6
lines changed Expand file tree Collapse file tree 2 files changed +15
-6
lines changed Original file line number Diff line number Diff line change
1
+ :information_source : This library will receive no new features.
2
+ Development will continue with the [ RxJava 3 APIs for ObjectBox] ( /objectbox-rxjava3 ) .
3
+
1
4
RxJava 2 APIs for ObjectBox
2
5
===========================
3
6
While ObjectBox has [ data observers and reactive extensions] ( https://docs.objectbox.io/data-observers-and-rx ) built-in,
@@ -13,7 +16,7 @@ For general object changes, you can use `RxBoxStore` to create an `Observable`.
13
16
For example to get query results and subscribe to future updates (Object changes will automatically emmit new data):
14
17
15
18
``` java
16
- Query query = box. query(). build();
19
+ Query< User > query = box. query(). build();
17
20
RxQuery . observable(query). subscribe(this );
18
21
```
19
22
@@ -27,5 +30,3 @@ implementation "io.objectbox:objectbox-rxjava:$objectboxVersion"
27
30
Links
28
31
-----
29
32
[ Data Observers and Rx Documentation] ( https://docs.objectbox.io/data-observers-and-rx )
30
-
31
- [ Note App example] ( https://github.com/objectbox/objectbox-examples/blob/master/objectbox-example/src/main/java/io/objectbox/example/ReactiveNoteActivity.java )
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ For general object changes, you can use `RxBoxStore` to create an `Observable`.
13
13
For example to get query results and subscribe to future updates (Object changes will automatically emmit new data):
14
14
15
15
``` java
16
- Query query = box. query(). build();
16
+ Query< User > query = box. query(). build();
17
17
RxQuery . observable(query). subscribe(this );
18
18
```
19
19
@@ -24,8 +24,16 @@ Grab via Gradle:
24
24
implementation "io.objectbox:objectbox-rxjava3:$objectboxVersion"
25
25
```
26
26
27
+ Migrating from RxJava 2
28
+ -----------------------
29
+
30
+ If you have previously used the ObjectBox RxJava library note the following changes:
31
+
32
+ - The location of the dependency has changed to ` objectbox-rxjava3 ` (see above).
33
+ - The package name has changed to ` io.objectbox.rx3 ` (from ` io.objectbox.rx ` ).
34
+
35
+ This should allow using both versions side-by-side while you migrate your code to RxJava 3.
36
+
27
37
Links
28
38
-----
29
39
[ Data Observers and Rx Documentation] ( https://docs.objectbox.io/data-observers-and-rx )
30
-
31
- [ Note App example] ( https://github.com/objectbox/objectbox-examples/blob/master/objectbox-example/src/main/java/io/objectbox/example/ReactiveNoteActivity.java )
You can’t perform that action at this time.
0 commit comments