OnRecvMessageExtensionsDeleted

Introduction

The callback of message extensions been deleted.

Returned template

OnRecvMessageExtensionsDeleted = void Function(
String msgID,
List<String> extensionKeys,
)

Return value details

name type description
msgID String Message id.
extensionKeys List< String > The keys of the deleted extensions.

Code example


    V2TimAdvancedMsgListener listener = V2TimAdvancedMsgListener(
      onRecvMessageExtensionsChanged:
          (String msgID, List<V2TimMessageExtension> extensions) {

        for (V2TimMessageExtension element in extensions) {
          element.extensionKey; 
          element.extensionValue; 
        }
      },
      onRecvMessageExtensionsDeleted: (msgID, extensionKeys) {

      },
    );

    TencentImSDKPlugin.v2TIMManager
        .getMessageManager()
        .addAdvancedMsgListener(listener: listener);

results matching ""

    No results matching ""