com.unipro.smlib
Interface ACKListener
- public interface ACKListener
Interface for ACK listeners.
To create ACK listener class implement this interface. ACKListener instances can be
registered in SmsManager by calling addACKListener() method of SmsManager.
Each in ACK will be processed in processACKReport method of ACKListener interface.
Only one ACK listener can be added to the SmsManager, otherwise java.util.TooManyListenersException
occurs.
To request ACK report for outgoing message from SMS center set ACK report flag to true using
setACKRequest(true) method of OutMessage class.
If no listener is registered in the SmsManager, then SmsManager will save input
ACKs in the ACKs pool.
After ACK listener is registered, SmsManager process all ACKs from the pool using this listener.
Method Summary |
void |
processACKReport(ACKReport rep)
This method should be implemented to realize logic of new ACK processing. |
processACKReport
public void processACKReport(ACKReport rep)
- This method should be implemented to realize logic of new ACK processing.
SmsManager calls this method when new acknowledgment is received.
- Parameters:
rep
- new received acknowledgment