public class DefaultMessageEventRequestListener extends java.lang.Object implements MessageEventRequestListener
This class automatically sends a delivered notification to the sender of the message if the sender has requested to be notified when the message is delivered.
| Constructor and Description |
|---|
DefaultMessageEventRequestListener() |
| Modifier and Type | Method and Description |
|---|---|
void |
composingNotificationRequested(Jid from,
java.lang.String packetID,
MessageEventManager messageEventManager)
Called when a request that the receiver of the message is composing a reply notification is
received.
|
void |
deliveredNotificationRequested(Jid from,
java.lang.String packetID,
MessageEventManager messageEventManager)
Called when a request for message delivered notification is received.
|
void |
displayedNotificationRequested(Jid from,
java.lang.String packetID,
MessageEventManager messageEventManager)
Called when a request for message displayed notification is received.
|
void |
offlineNotificationRequested(Jid from,
java.lang.String packetID,
MessageEventManager messageEventManager)
Called when a request that the receiver of the message is offline is received.
|
public DefaultMessageEventRequestListener()
public void deliveredNotificationRequested(Jid from, java.lang.String packetID, MessageEventManager messageEventManager) throws SmackException.NotConnectedException, java.lang.InterruptedException
MessageEventRequestListenerdeliveredNotificationRequested in interface MessageEventRequestListenerfrom - the user that sent the notification.packetID - the id of the message that was sent.messageEventManager - the messageEventManager that fired the listener.SmackException.NotConnectedExceptionjava.lang.InterruptedExceptionpublic void displayedNotificationRequested(Jid from, java.lang.String packetID, MessageEventManager messageEventManager)
MessageEventRequestListenerdisplayedNotificationRequested in interface MessageEventRequestListenerfrom - the user that sent the notification.packetID - the id of the message that was sent.messageEventManager - the messageEventManager that fired the listener.public void composingNotificationRequested(Jid from, java.lang.String packetID, MessageEventManager messageEventManager)
MessageEventRequestListenercomposingNotificationRequested in interface MessageEventRequestListenerfrom - the user that sent the notification.packetID - the id of the message that was sent.messageEventManager - the messageEventManager that fired the listener.public void offlineNotificationRequested(Jid from, java.lang.String packetID, MessageEventManager messageEventManager)
MessageEventRequestListenerofflineNotificationRequested in interface MessageEventRequestListenerfrom - the user that sent the notification.packetID - the id of the message that was sent.messageEventManager - the messageEventManager that fired the listener.