| Modifier and Type | Method and Description |
|---|---|
GeoLocation |
GeoQuery.getCenter()
Returns the current center of this query.
|
static GeoLocation |
GeoFire.getLocationValue(com.google.firebase.database.DataSnapshot dataSnapshot) |
| Modifier and Type | Method and Description |
|---|---|
void |
GeoQueryDataEventListener.onDataChanged(com.google.firebase.database.DataSnapshot dataSnapshot,
GeoLocation location)
Called if a dataSnapshot changed within the search area.
|
void |
GeoQueryDataEventListener.onDataEntered(com.google.firebase.database.DataSnapshot dataSnapshot,
GeoLocation location)
Called if a dataSnapshot entered the search area of the GeoQuery.
|
void |
GeoQueryDataEventListener.onDataMoved(com.google.firebase.database.DataSnapshot dataSnapshot,
GeoLocation location)
Called if a dataSnapshot moved within the search area.
|
void |
GeoQueryEventListener.onKeyEntered(String key,
GeoLocation location)
Called if a key entered the search area of the GeoQuery.
|
void |
GeoQueryEventListener.onKeyMoved(String key,
GeoLocation location)
Called if a key moved within the search area.
|
void |
LocationCallback.onLocationResult(String key,
GeoLocation location)
This method is called with the current location of the key.
|
GeoQuery |
GeoFire.queryAtLocation(GeoLocation center,
double radius)
Returns a new Query object centered at the given location and with the given radius.
|
void |
GeoQuery.setCenter(GeoLocation center)
Sets the new center of this query and triggers new events if necessary.
|
void |
GeoQuery.setLocation(GeoLocation center,
double radius)
Sets the center and radius (in kilometers) of this query, and triggers new events if necessary.
|
void |
GeoFire.setLocation(String key,
GeoLocation location)
Sets the location for a given key.
|
void |
GeoFire.setLocation(String key,
GeoLocation location,
GeoFire.CompletionListener completionListener)
Sets the location for a given key.
|
Copyright © 2017 Firebase. All rights reserved.