Skip to content
This repository was archived by the owner on Aug 17, 2020. It is now read-only.

Commit acaf469

Browse files
committed
Add note about skipping initial notification emission.
1 parent 67e9645 commit acaf469

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

sqlbrite/src/main/java/com/squareup/sqlbrite/BriteContentResolver.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,9 @@ public void setLoggingEnabled(boolean enabled) {
6565
* notifications for when the supplied {@code uri}'s data changes. Unsubscribe when you no longer
6666
* want updates to a query.
6767
* <p>
68+
* Note: To skip the immediate notification and only receive subsequent notifications when data
69+
* has changed call {@code skip(1)} on the returned observable.
70+
* <p>
6871
* <b>Warning:</b> this method does not perform the query! Only by subscribing to the returned
6972
* {@link Observable} will the operation occur.
7073
*

sqlbrite/src/main/java/com/squareup/sqlbrite/BriteDatabase.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,9 @@ public Transaction newTransaction() {
219219
* {@code update}, and {@code delete} methods of this class. Unsubscribe when you no longer want
220220
* updates to a query.
221221
* <p>
222+
* Note: To skip the immediate notification and only receive subsequent notifications when data
223+
* has changed call {@code skip(1)} on the returned observable.
224+
* <p>
222225
* <b>Warning:</b> this method does not perform the query! Only by subscribing to the returned
223226
* {@link Observable} will the operation occur.
224227
*

0 commit comments

Comments
 (0)