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
MessageEventRequestListener
deliveredNotificationRequested
in interface MessageEventRequestListener
from
- the user that sent the notification.packetID
- the id of the message that was sent.messageEventManager
- the messageEventManager that fired the listener.SmackException.NotConnectedException
java.lang.InterruptedException
public void displayedNotificationRequested(Jid from, java.lang.String packetID, MessageEventManager messageEventManager)
MessageEventRequestListener
displayedNotificationRequested
in interface MessageEventRequestListener
from
- 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)
MessageEventRequestListener
composingNotificationRequested
in interface MessageEventRequestListener
from
- 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)
MessageEventRequestListener
offlineNotificationRequested
in interface MessageEventRequestListener
from
- the user that sent the notification.packetID
- the id of the message that was sent.messageEventManager
- the messageEventManager that fired the listener.