deleteMessageExtensions

Introduction

Delete message extension

This method only works with Ultimate Edition, you can find the pricing plan here.

Parameter details

Parameter name Parameter type Required Description
msgID String yes The message ID of the message, that extension to be deleted.
keys String[] yes The keys of the extensions to be deleted.

Returned template

V2TimValueCallback<V2TimMessageExtensionResult[]>

{
    code : int
    desc : String
    data : V2TimMessageExtensionResult[]
}

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.
data V2TimMessageExtensionResult[] Result list of deleting message extension operation.

Code example


V2TimValueCallback<V2TimMessageExtensionResult[]>
deleteMessageExtensionsRes = await TencentImSDKPlugin.v2TIMManager
  .getMessageManager()
  .deleteMessageExtensions(msgID: '',
    keys: []);
if (deleteMessageExtensionsRes.code == 0) {

  deleteMessageExtensionsRes.data?.forEach((element) {
    element.extension;
    element.resultCode;
    element.resultInfo;
  });
}

results matching ""

    No results matching ""