public interface GeoQueryEventListener
Modifier and Type | Method and Description |
---|---|
void |
onGeoQueryError(com.firebase.client.FirebaseError error)
Called in case an error occurred while retrieving locations for a query, e.g.
|
void |
onGeoQueryReady()
Called once all initial GeoFire data has been loaded and the relevant events have been fired for this query.
|
void |
onKeyEntered(String key,
GeoLocation location)
Called if a key entered the search area of the GeoQuery.
|
void |
onKeyExited(String key)
Called if a key exited the search area of the GeoQuery.
|
void |
onKeyMoved(String key,
GeoLocation location)
Called if a key moved within the search area.
|
void onKeyEntered(String key, GeoLocation location)
key
- The key that entered the search arealocation
- The location for this key as a GeoLocation objectvoid onKeyExited(String key)
key
- The key that exited the search areavoid onKeyMoved(String key, GeoLocation location)
key
- The key that moved within the search arealocation
- The location for this key as a GeoLocation objectvoid onGeoQueryReady()
void onGeoQueryError(com.firebase.client.FirebaseError error)
error
- The error that occurred while retrieving the queryCopyright © 2015 Firebase. All rights reserved.