igpslistener.java

来自「A Java Framework for connecting to and e」· Java 代码 · 共 20 行

JAVA
20
字号
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 + =
减小字号Ctrl + -
显示快捷键?