send Image Message
Sends an image message.
If you are using IMLib, you can use this method to send an image message.
If you are using IMKit, please use the method with the same name in RongIM to send an image message; otherwise, the UI will not be automatically updated.
Since
5.1.1
Parameters
The conversation type.
The conversation ID. Depending on the conversationType, this could be a user ID, discussion group ID, group ID, or chatroom ID.
The business identifier of the conversation to which the message belongs.
The message content, such as TextMessage, .
When sending a remote push notification, this field will be displayed in the notification bar. If you are sending a custom message, this field must be filled in; otherwise, the remote push notification will not be received. If you are sending default message types in the SDK, such as RC:TxtMsg, RC:VcMsg, RC:ImgMsg, this field is not required as it is already specified by default.
Additional information for remote push notifications. If this field is set, users can retrieve it via getPushData when they receive a remote push notification.
The callback for sending the message. Refer to .