Class DeliveryReceiptManager


  • public final class DeliveryReceiptManager
    extends Manager
    Manager for XEP-0184: Message Delivery Receipts. This class implements the manager for DeliveryReceipt support, enabling and disabling of automatic DeliveryReceipt transmission.

    You can send delivery receipt requests and listen for incoming delivery receipts as shown in this example:

     deliveryReceiptManager.addReceiptReceivedListener(new ReceiptReceivedListener() {
       void onReceiptReceived(String fromJid, String toJid, String receiptId, Stanza receipt) {
         // If the receiving entity does not support delivery receipts,
         // then the receipt received listener may not get invoked.
       }
     });
     Message message = …
     DeliveryReceiptRequest.addTo(message);
     connection.sendStanza(message);
     
    DeliveryReceiptManager can be configured to automatically add delivery receipt requests to every message with autoAddDeliveryReceiptRequests().
    See Also:
    XEP-0184: Message Delivery Receipts