com.esri.core.gps
Interface GPSEventListener


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

onStatusChanged

void onStatusChanged(GPSStatus newStatus)
This method is invoked whenever there is a change in status of the IGPSWatcher. Note that the status of a IGPSWatcher reflects the status of its GPS source.

Parameters:
newStatus - the current status of the IGPSWatcher.

onPositionChanged

void onPositionChanged(GeoPosition newPosition)
This method is invoked whenever there is a change in GeoPosition. The change in GeoPosition could include change in GeoCoordinate and/or time.

Parameters:
newPosition - new position of the GPS device.

onNMEASentenceReceived

void onNMEASentenceReceived(String newSentence)
This method is invoked whenever the IGPSWatcher has receives a NMEA sentence from the GPS receiver.

Parameters:
newSentence - new NMEA sentence received from GPS receiver.

onSatellitesInViewChanged

void onSatellitesInViewChanged(Map<Integer,Satellite> sattellitesInView)
This method is invoked whenever the satellites in view have changed.

Parameters:
sattellitesInView - set of satellites currently in view, returned as a map, indexed by satellite-id.


Copyright © 2012. All Rights Reserved.