OnReceiveRESTCustomDataCallback
Introduction
The callback of receiving the system messages, sent by the RESTful API from your server, event.
Returned template
OnReceiveRESTCustomDataCallback = void Function(
String groupID,
String customData
)
Return value details
name | type | description |
---|---|---|
groupID | String | The group ID. |
customData | String | The custom data carried. |
Code example
V2TimGroupListener listener = V2TimGroupListener(
onReceiveRESTCustomData: (String groupID, String customData) async {
}
);
TencentImSDKPlugin.v2TIMManager.addGroupListener(listener: listener);