📄 igpslistener.java
字号:
package com.libGPS4j2me;
/**
* This interface is used to receive notification each time the GPS transmits one of the common data, ie. position, time and date.
* <ul>
* <li> The GPS does not necessarily transmit these things periodially by itself! Some GPS-units needs a request before
* transmitting anything. Use the method GPS.setAutoTransmission(true) if you want the GPS to periodically send this data.
* <li> Don't perform any long calculations or big operations in these methods. They're called by a dispatching thread, and putting
* it to too much work will slow performance on the communication with the GPS.
* </ul>
*/
public interface IGPSlistener {
/** Invoked when the GPS transmits time-data. */
public void timeReceived(ITime t);
/** Invoked when the GPS transmits date-data. */
public void dateReceived(IDate d);
/** Invoked when the GPS transmits position-data. */
public void positionReceived(IPosition pos);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -