downloadMessage

Introduction

Download media messages

All acquired multimedia messages (pictures, videos, voice, files) SDKs will not be actively downloaded, and users need to call this API to store the files in the black box directory.

Parameter details

Parameter name Parameter type Required Description
msgID string yes message id
messageType number yes message type
imageType number yes Picture type, only work on picture message
isSnapshot boolean yes Whether it is a snapshot, only work on video message

Returned template

V2TimCallback

{
    code : int
    desc : String
}

Return value details

name type description
code number Request result: Error codes. 0 means success.
desc string The description of the error. It will be empty if success.

Code example



    V2TimCallback downloadMessageRes = await TencentImSDKPlugin.v2TIMManager
  .getMessageManager()
  .downloadMessage(
    msgID: '',
    messageType: 3,
    imageType: 0,
    isSnapshot: false
  );
if (downloadMessageRes.code == 0) {

}

results matching ""

    No results matching ""