deleteMessageExtensions

Introduction

Delete message extension

Supports since version 4.2.

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

Parameter details

Parameter name Parameter type Required Platform Description
msgID String yes All The message ID of the message, that extension to be deleted.
keys List< String > yes All The keys of the extensions to be deleted.

Returned template

V2TimValueCallback<List<V2TimMessageExtensionResult>>

{
    code : int
    desc : String
    data : List<V2TimMessageExtensionResult>
}

Return value details

name type description
code int Request result: Error codes. 0 means success.
desc String The description of the failure.
data List< V2TimMessageExtensionResult > Result list of deleting message extension operation.

Code example


    V2TimValueCallback<List<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 ""