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(java.lang.String 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(java.lang.String from,
java.lang.String packetID,
MessageEventManager messageEventManager)
Called when a request for message delivered notification is received.
|
void |
displayedNotificationRequested(java.lang.String from,
java.lang.String packetID,
MessageEventManager messageEventManager)
Called when a request for message displayed notification is received.
|
void |
offlineNotificationRequested(java.lang.String from,
java.lang.String packetID,
MessageEventManager messageEventManager)
Called when a request that the receiver of the message is offline is received.
|
public void deliveredNotificationRequested(java.lang.String from,
java.lang.String packetID,
MessageEventManager messageEventManager)
throws org.jivesoftware.smack.SmackException.NotConnectedException
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.org.jivesoftware.smack.SmackException.NotConnectedExceptionpublic void displayedNotificationRequested(java.lang.String 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(java.lang.String 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(java.lang.String 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.