Skip to main content
Version: v4

Receipt

This component is of class UIImageView and is customizable to display CometChatReceipt.


Methods

Progress Icon

This method is used to set Progress Icon for Receipt.

MethodsDescription
set(messageInProgressIcon: UIImage)Used to set In Progress Icon for Receipt.
// Syntax for  set(messageInProgressIcon: UIImage)
receipt.set(messageInProgressIcon: "progress-icon.png")

Sent Icon

This method is used to set sent Icon for Receipt.

set(messageSentIcon: UIImage)Used to set In sent Icon for Receipt.
//Syntax for  set(messageSentIcon: UIImage)
receipt.set(messageSentIcon: "sent-icon.png")

Delivered Icon

This method is used to set delivered Icon for Receipt

set(messageDeliveredIcon: UIImage)Used to set In delivered Icon for Message Receipt.
// Syntax for  set(messageDeliveredIcon: UIImage)
receipt.set(messageDeliveredIcon: "delivered-icon.png")

Read Icon

This method is used to set read Icon for Receipt

set(messageReadIcon: UIImage)Used to set In read Icon for Receipt.
// Syntax for  set(messageReadIcon: UIImage)
receipt.set(messageReadIcon: "read-icon.png")

Error Icon

This method is used to set error Icon for Receipt

set(messageErrorIcon: UIImage)This method is used to set error Icon for Receipt
// Syntax for  set(messageErrorIcon: UIImage)
messageReceipt.set(messageErrorIcon: "error-icon.png")