TIMSetMsgElemUploadProgressCallback

Introduction

Set message element uploading progress callback

Set message element uploading progress callback. When message element contains image, audio, file and video, the progress is notified via this callback

Parameter details

Parameter name Parameter type Required Description
params TIMMsgElemUploadProgressCallbackParams yes Param of setting message element uploading progress callback

Returned template

void

Return value details

This function has no return value

Code example

import TimRender from "im_electron_sdk/dist/renderer";
const timRenderInstance = new TimRender();
import { TIMMsgElemUploadProgressCallbackParams } from "im_electron_sdk/dist/interfaces";

let param:TIMMsgElemUploadProgressCallbackParams = {
    callback: (data)=>{},
    user_data: ""
}
timRenderInstance.TIMSetMsgElemUploadProgressCallback(param);

results matching ""

    No results matching ""