|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface LocationObserver
The location observer interface makes it possible for entities to be notified when the client moves to a new location. It also provides a means for an entity to participate in the ratification process of a new location. Observers may opt to reject a request to change to a new location, probably because something is going on in the previous location that should not be abandoned.
Note that these location callbacks occur on the main thread and should execute quickly and not block under any circumstance.
| Method Summary | |
|---|---|
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. |
| Method Detail |
|---|
boolean locationMayChange(int placeId)
void locationDidChange(PlaceObject place)
place - the place object that represents the new location or
null if we have switched to no location.
void locationChangeFailed(int placeId,
String reason)
placeId - 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.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||