|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface GPSEventListener
Interface to provide a listener for GPS Events.
Zero or more listeners can be added to a IGPSWatcher
. Any exception thrown by the
implementation methods will be directed to standard out and the process will continue as normal.
Method Summary | |
---|---|
void |
onNMEASentenceReceived(String newSentence)
This method is invoked whenever the IGPSWatcher has receives a NMEA sentence
from the GPS receiver. |
void |
onPositionChanged(GeoPosition newPosition)
This method is invoked whenever there is a change in GeoPosition . |
void |
onSatellitesInViewChanged(Map<Integer,Satellite> sattellitesInView)
This method is invoked whenever the satellites in view have changed. |
void |
onStatusChanged(GPSStatus newStatus)
This method is invoked whenever there is a change in status of the IGPSWatcher . |
Method Detail |
---|
void onStatusChanged(GPSStatus newStatus)
IGPSWatcher
.
Note that the status of a IGPSWatcher
reflects the status of its GPS source.
newStatus
- the current status of the IGPSWatcher
.void onPositionChanged(GeoPosition newPosition)
GeoPosition
. The change
in GeoPosition
could include change in GeoCoordinate
and/or time.
newPosition
- new position of the GPS device.void onNMEASentenceReceived(String newSentence)
IGPSWatcher
has receives a NMEA sentence
from the GPS receiver.
newSentence
- new NMEA sentence received from GPS receiver.void onSatellitesInViewChanged(Map<Integer,Satellite> sattellitesInView)
sattellitesInView
- set of satellites currently in view, returned as a map,
indexed by satellite-id.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |