public interface GeoQueryDataEventListener
| Modifier and Type | Method and Description |
|---|---|
void |
onDataChanged(com.google.firebase.database.DataSnapshot dataSnapshot,
GeoLocation location)
Called if a dataSnapshot changed within the search area.
|
void |
onDataEntered(com.google.firebase.database.DataSnapshot dataSnapshot,
GeoLocation location)
Called if a dataSnapshot entered the search area of the GeoQuery.
|
void |
onDataExited(com.google.firebase.database.DataSnapshot dataSnapshot)
Called if a datasnapshot exited the search area of the GeoQuery.
|
void |
onDataMoved(com.google.firebase.database.DataSnapshot dataSnapshot,
GeoLocation location)
Called if a dataSnapshot moved within the search area.
|
void |
onGeoQueryError(com.google.firebase.database.DatabaseError 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 onDataEntered(com.google.firebase.database.DataSnapshot dataSnapshot,
GeoLocation location)
dataSnapshot - The associated dataSnapshot that entered the search arealocation - The location for this dataSnapshot as a GeoLocation objectvoid onDataExited(com.google.firebase.database.DataSnapshot dataSnapshot)
dataSnapshot - The associated dataSnapshot that exited the search areavoid onDataMoved(com.google.firebase.database.DataSnapshot dataSnapshot,
GeoLocation location)
dataSnapshot - The associated dataSnapshot that moved within the search arealocation - The location for this dataSnapshot as a GeoLocation objectvoid onDataChanged(com.google.firebase.database.DataSnapshot dataSnapshot,
GeoLocation location)
dataSnapshot - The associated dataSnapshot that moved within the search arealocation - The location for this dataSnapshot as a GeoLocation objectvoid onGeoQueryReady()
void onGeoQueryError(com.google.firebase.database.DatabaseError error)
error - The error that occurred while retrieving the queryCopyright © 2017 Firebase. All rights reserved.