SetMsgUpdateCallback
introduction
Set message updated on the cloud callback
After you modify a message, ImSDK informs you by this callback
You can intercept messages on your own server Callback Before Sending a One-to-One Message
If you intercept messages, the IM server will transmit all the message to your server
Your server may modify the message (eg. content moderation), if your server modifies the message, ImSDK will notify you via this callback
Parameter details
Parameter name | Parameter type | Required | Description |
---|---|---|---|
callback | MsgUpdateCallback | no | MsgUpdateCallback |
stringCallback | MsgUpdateStringCallback | no | MsgUpdateStringCallback |
Returned template
TIMResult
The parameters of the callback function after successfully calling the API:
code:int
desc:string
json_param:'' // json_ Params is an empty string ""
user_data:string
Return value details
name | type | description |
---|---|---|
TIMResult | TIMResult | Return value of calling API |
code | int | Result error code: Error Codes |
desc | string | The description of the error. |
json_param | string | Json string. Calling different API will get different Json strings. |
user_data | string | User-defined data transfered by ImSDK without any processing |