sendTransientMessage()
method to send a transient message to a user or in a group. The receiver will receive this information in the onTransientMessageReceived()
method of the MessageListener
class. In order to send the transient message, you need to use the TransientMessage
class.
CometChatMessageDelegate
as Shown Below :
TransientMessage
class consists of the below parameters:
Parameter | Information |
---|---|
sender | An object of the User class holding all the information. related to the sender of the transient message. |
receiverId | Unique Id of the receiver. This can be the Id of the group or the user the transient message is sent to. |
receiverType | This parameter indicates if the transient message is to be sent to a user or a group. The possible values are: 1. .user 2..group |
data | A Dictionary to provide data. |