SetConvEventCallback

introduction

Set conversation event callback

Includes:

New conversation

Delete conversation

Delete conversation

Start conversation

End conversation

Every new conversation event will trigger new conversation event, eg. receive the first message from unknown conversation and etc.

Every event on the exist conversation will cause update conversatin event, eg. receiving new message from conversation, message revoked, message read reported

Use ConvDelete to delete conversation will trigger delete conversation event

Parameter details

Parameter name Parameter type Required Description
callback ConvEventCallback no ConvEventCallback
stringCallback ConvEventStringCallback no ConvEventStringCallback

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

results matching ""

    No results matching ""