public class DefaultMessageEventRequestListener extends 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(String from,
String packetID,
MessageEventManager messageEventManager)
Called when a request that the receiver of the message is composing a reply notification is
received.
|
void |
deliveredNotificationRequested(String from,
String packetID,
MessageEventManager messageEventManager)
Called when a request for message delivered notification is received.
|
void |
displayedNotificationRequested(String from,
String packetID,
MessageEventManager messageEventManager)
Called when a request for message displayed notification is received.
|
void |
offlineNotificationRequested(String from,
String packetID,
MessageEventManager messageEventManager)
Called when a request that the receiver of the message is offline is received.
|
public DefaultMessageEventRequestListener()
public void deliveredNotificationRequested(String from, String packetID, MessageEventManager messageEventManager) throws SmackException.NotConnectedException
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
public void displayedNotificationRequested(String from, 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(String from, 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(String from, 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.