OnRecvMessageExtensionsChanged
Introduction
The callback of message extensions been modified.
Returned template
OnRecvMessageExtensionsChanged = void Function(
String msgID,
List<V2TimMessageExtension> extensions,
)
Return value details
name | type | description |
---|---|---|
msgID | String | Message id. |
extensions | List< V2TimMessageExtension > | The modified extensions. |
Code example
V2TimAdvancedMsgListener listener = V2TimAdvancedMsgListener(
onRecvMessageExtensionsChanged:
(String msgID, List<V2TimMessageExtension> extensions) {
for (V2TimMessageExtension element in extensions) {
element.extensionKey;
element.extensionValue;
}
},
);
TencentImSDKPlugin.v2TIMManager
.getMessageManager()
.addAdvancedMsgListener(listener: listener);