getGroupApplicationList
Introduction
Load the group application list.
Parameter details
This API has no parameters
Returned template
V2TimValueCallback<V2TimGroupApplicationResult>
{
code : number
desc : string
data : {
groupApplicationList : V2TimGroupApplication[]
unreadCount : number
}
}
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 | V2TimGroupApplicationResult | The list of deleting operations results. |
Code example
import { TencentImSDKPlugin } from 'react-native-tim-js';
const getGroupApplicationListRes = await TencentImSDKPlugin.v2TIMManager
.getGroupManager()
.getGroupApplicationList();
if (getGroupApplicationListRes.code == 0) {
getGroupApplicationListRes.data?.groupApplicationList?.forEach(
(element) => {
element?.addTime;
element?.fromUser;
element?.fromUserFaceUrl;
element?.fromUserNickName;
element?.groupID;
element?.handleMsg;
element?.handleResult;
element?.handleStatus;
element?.requestMsg;
element?.toUser;
element?.type;
}
);
}