getJoinedCommunityList
Introduction
Load the list of community that is joined.
Community group only works with Ultimate Edition, you can see the pricing plan here.
Parameter details
This API has no parameters
Returned template
V2TimValueCallback<V2TimGroupInfo[]>
{
code : number
desc : string
data : V2TimGroupInfo[]
}
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 | V2TimGroupInfo[] | The list of joined community. |
Code example
import { TencentImSDKPlugin } from 'react-native-tim-js';
const getJoinedCommunityListRes = await TencentImSDKPlugin.v2TIMManager
.getGroupManager()
.getJoinedCommunityList();
if (getJoinedCommunityListRes.code === 0) {
getJoinedCommunityListRes.data?.forEach((element) => {
element.createTime;
element.customInfo;
element.faceUrl;
element.groupAddOpt;
element.groupID;
element.groupName;
element.groupType;
element.introduction;
element.isAllMuted;
element.isSupportTopic;
element.joinTime;
element.lastInfoTime;
element.lastMessageTime;
element.memberCount;
element.notification;
element.onlineCount;
element.owner;
element.recvOpt;
element.role;
});
}