|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IGPSWatcher

The purpose of the watcher are
GPSEventListener, if any, based on the GPS message received and the status
of its source.
#start()}, {@link #stop()},
GPSEventListener,
GPSStatus| Method Summary | |
|---|---|
void |
addListener(GPSEventListener gpsEventListener)
Adds a GPS event listener to the watcher. |
GPSStatus |
getStatus()
Gets the current status of the watcher. |
int |
getTimeout()
Returns the timeout. |
void |
setTimeout(int timeout)
Sets the timeout period to receive GPS messages from the GPS device. |
void |
start()
Starts the GPS Watcher. |
void |
stop()
Stops the GPS Watcher. |
| Method Detail |
|---|
void addListener(GPSEventListener gpsEventListener)
throws GPSException
gpsEventListener - GPS event listener.
GPSException - if trying to add a listener when the status is
GPSStatus.RUNNING.GPSStatus getStatus()
void start()
throws GPSException
GPSStatus.RUNNING state if this is successful.GPSStatus.RUNNING.
GPSException - on any error while starting the watcher.
void stop()
throws GPSException
GPSStatus.STOPPED state if this is successful.GPSStatus.STOPPED.
GPSException - on any error while stopping the watcher.
void setTimeout(int timeout)
throws GPSException
GPSStatus.TIMEOUT state.
timeout - interval, in milliseconds.
GPSException - on error, such as if timeout is not more than 0.int getTimeout()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||