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+
14RxJava 2 APIs for ObjectBox
25===========================
36While 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`.
1316For example to get query results and subscribe to future updates (Object changes will automatically emmit new data):
1417
1518``` java
16- Query query = box. query(). build();
19+ Query< User > query = box. query(). build();
1720RxQuery . observable(query). subscribe(this );
1821```
1922
@@ -27,5 +30,3 @@ implementation "io.objectbox:objectbox-rxjava:$objectboxVersion"
2730Links
2831-----
2932[ 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`.
1313For example to get query results and subscribe to future updates (Object changes will automatically emmit new data):
1414
1515``` java
16- Query query = box. query(). build();
16+ Query< User > query = box. query(). build();
1717RxQuery . observable(query). subscribe(this );
1818```
1919
@@ -24,8 +24,16 @@ Grab via Gradle:
2424implementation "io.objectbox:objectbox-rxjava3:$objectboxVersion"
2525```
2626
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+
2737Links
2838-----
2939[ 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