getMessageExtensions

Introduction

Get 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 Message id.

Returned template

V2TimValueCallback<List<V2TimMessageExtension>>

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

Return value details

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

Code example


    V2TimValueCallback<List<V2TimMessageExtension>> getMessageExtensionsRes =
        await TencentImSDKPlugin.v2TIMManager
            .getMessageManager()
            .getMessageExtensions(
              msgID: '', 
            );
    if (getMessageExtensionsRes.code == 0) {
      getMessageExtensionsRes.data?.forEach((element) {
        element.extensionKey; 
        element.extensionValue; 
      });
    }

results matching ""

    No results matching ""