public class LocationAdapter extends Object implements LocationObserver
LocationObserver| Constructor and Description |
|---|
LocationAdapter() |
| Modifier and Type | Method and Description |
|---|---|
void |
locationChangeFailed(int placeId,
String reason)
This is called on all location observers when a location change
request is rejected by the server or fails for some other reason.
|
void |
locationDidChange(PlaceObject place)
Called when we have switched to a new location.
|
boolean |
locationMayChange(int placeId)
Called when someone has requested that we switch to a new location.
|
public boolean locationMayChange(int placeId)
LocationObserverlocationMayChange in interface LocationObserverpublic void locationDidChange(PlaceObject place)
LocationObserverlocationDidChange in interface LocationObserverplace - the place object that represents the new location or
null if we have switched to no location.public void locationChangeFailed(int placeId,
String reason)
LocationObserverlocationChangeFailed in interface LocationObserverplaceId - the place id to which we attempted to relocate, but
failed.reason - the reason code that explains why the location change
request was rejected or otherwise failed.Copyright © 2015. All rights reserved.