CometChatReceipt
is a custom view, it can be added directly in the layout file or you can use it in Java. CometChatReceipt
includes various attributes and methods to customize its UI.
CometChatMessageReceipt
, you can use the available parameters or methods.
Attributes | Description |
---|---|
app:messageProgressIcon | It is use to pass user defined image in to the MessageReceipt, to change the icon While sending the message. |
app:messageSentIcon | It is use to pass user defined image in to the MessageReceipt, to change the icon When Message is sent. |
app:messageDeliveredIcon | It is use to pass user defined image in to the MessageReceipt, to change the icon When Message is delivered. |
app:messageReadIcon | It is use to pass user defined image in to the MessageReceipt, to change the icon When Message is read. |
app:messageErrorIcon | It is use to pass user defined image in to the MessageReceipt, to change the icon While error occurs. |
Methods | Type | Description |
---|---|---|
setReceipt | Receipt | This method is used to set receipt |
setWaitIcon | Drawable | It is use to pass user defined image in to the MessageReceipt, to change the icon While sending the message. |
setSentIcon | Drawable | It is use to pass user defined image in to the MessageReceipt, to change the icon When Message is sent. |
setDeliveredIcon | Drawable | It is use to pass user defined image in to the MessageReceipt, to change the icon When Message is delivered. |
setReadIcon | Drawable | It is use to pass user defined image in to the MessageReceipt, to change the icon When Message is read. |
setErrorIcon | Drawable | It is use to pass user defined image in to the MessageReceipt, to change the icon While error occurs. |