forked from parse-community/ParseLiveQuery-Android
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add callbacks to be notified of connect/disconnect/error events
This enables a partial fix/workaround for parse-community#6, which otherwise wouldn't even be possible in its current state. Future changes will allow the client to automatically reconnect when the connection has been broken for any reason other than explicit disconnect().
- Loading branch information
Joe Hansche
committed
Mar 27, 2017
1 parent
e299789
commit 89e3809
Showing
4 changed files
with
128 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
ParseLiveQuery/src/main/java/com/parse/ParseLiveQueryClientCallbacks.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package com.parse; | ||
|
||
public interface ParseLiveQueryClientCallbacks { | ||
void onLiveQueryClientConnected(ParseLiveQueryClient client); | ||
|
||
void onLiveQueryClientDisconnected(ParseLiveQueryClient client); | ||
|
||
void onLiveQueryError(ParseLiveQueryClient client, LiveQueryException reason); | ||
|
||
void onSocketError(ParseLiveQueryClient client, Throwable reason); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters