getC2CReceiveMessageOpt
Introduction
Query the message receiving options for other users.
Do not works on Web.
Parameter details
Parameter name | Parameter type | Required | Platform | Description |
---|---|---|---|---|
userIDList | List< String > | yes | All | The user ID list for query. |
Returned template
V2TimValueCallback<List<V2TimReceiveMessageOptInfo>>
{
code : int
desc : String
data : List<V2TimReceiveMessageOptInfo>
}
Return value details
name | type | description |
---|---|---|
code | int | Request result: Error codes. 0 means success. |
desc | String | The description of the failure. |
data | List< V2TimReceiveMessageOptInfo > | The list of results. |
Code example
V2TimValueCallback<List<V2TimReceiveMessageOptInfo>>
getC2CReceiveMessageOptRes = await TencentImSDKPlugin.v2TIMManager
.getMessageManager()
.getC2CReceiveMessageOpt(userIDList: ['user1', 'user2']);
if (getC2CReceiveMessageOptRes.code == 0) {
getC2CReceiveMessageOptRes.data?.forEach((element) {
element.c2CReceiveMessageOpt;
element.userID;
});
}