getMessageExtensions

Introduction

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

Returned template

V2TimValueCallback<V2TimMessageExtension[]>

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

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 V2TimMessageExtension[] Result list of getting message extension operation

Code example


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