public interface MessageEventRequestListener
<x xmlns='jabber:x:event'> <offline/> <delivered/> <composing/> </x>In this example you can see that the sender of the message requests to be notified when the user couldn't receive the message because he/she is offline, the message was delivered or when the receiver of the message is composing a reply.
Modifier and Type | Method and Description |
---|---|
void |
composingNotificationRequested(Jid from,
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,
String packetID,
MessageEventManager messageEventManager)
Called when a request for message delivered notification is received.
|
void |
displayedNotificationRequested(Jid from,
String packetID,
MessageEventManager messageEventManager)
Called when a request for message displayed notification is received.
|
void |
offlineNotificationRequested(Jid from,
String packetID,
MessageEventManager messageEventManager)
Called when a request that the receiver of the message is offline is received.
|
void deliveredNotificationRequested(Jid from, String packetID, MessageEventManager messageEventManager) throws SmackException.NotConnectedException, InterruptedException
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
InterruptedException
void displayedNotificationRequested(Jid from, String packetID, MessageEventManager messageEventManager)
from
- the user that sent the notification.packetID
- the id of the message that was sent.messageEventManager
- the messageEventManager that fired the listener.void composingNotificationRequested(Jid from, String packetID, MessageEventManager messageEventManager)
from
- the user that sent the notification.packetID
- the id of the message that was sent.messageEventManager
- the messageEventManager that fired the listener.void offlineNotificationRequested(Jid from, String packetID, MessageEventManager messageEventManager)
from
- the user that sent the notification.packetID
- the id of the message that was sent.messageEventManager
- the messageEventManager that fired the listener.