IMSDK
IM features a comprehensive suite of solutions including global access, one-to-one chat, group chat, message push, profile and relationship chain hosting, and account authentication. It also provides complete app access and backend management APIs.
V2TIMCommunityManagerabstract

Public Member Functions

virtual ~V2TIMCommunityManager ()
 
virtual void AddCommunityListener (V2TIMCommunityListener *listener)=0
 
virtual void RemoveCommunityListener (V2TIMCommunityListener *listener)=0
 
virtual void CreateCommunity (const V2TIMGroupInfo &info, const V2TIMCreateGroupMemberInfoVector &memberList, V2TIMValueCallback< V2TIMString > *callback)=0
 
virtual void GetJoinedCommunityList (V2TIMValueCallback< V2TIMGroupInfoVector > *callback)=0
 
virtual void CreateTopicInCommunity (const V2TIMString &groupID, const V2TIMTopicInfo &topicInfo, V2TIMValueCallback< V2TIMString > *callback)=0
 
virtual void DeleteTopicFromCommunity (const V2TIMString &groupID, const V2TIMStringVector &topicIDList, V2TIMValueCallback< V2TIMTopicOperationResultVector > *callback)=0
 
virtual void SetTopicInfo (const V2TIMTopicInfo &topicInfo, V2TIMCallback *callback)=0
 
virtual void GetTopicInfoList (const V2TIMString &groupID, const V2TIMStringVector &topicIDList, V2TIMValueCallback< V2TIMTopicInfoResultVector > *callback)=0
 
virtual void CreatePermissionGroupInCommunity (const V2TIMPermissionGroupInfo &info, V2TIMValueCallback< V2TIMString > *callback)=0
 
virtual void DeletePermissionGroupFromCommunity (const V2TIMString &groupID, const V2TIMStringVector &permissionGroupIDList, V2TIMValueCallback< V2TIMPermissionGroupOperationResultVector > *callback)=0
 
virtual void ModifyPermissionGroupInfoInCommunity (const V2TIMPermissionGroupInfo &info, V2TIMCallback *callback)=0
 
virtual void GetJoinedPermissionGroupListInCommunity (const V2TIMString &groupID, V2TIMValueCallback< V2TIMPermissionGroupInfoResultVector > *callback)=0
 
virtual void GetPermissionGroupListInCommunity (const V2TIMString &groupID, const V2TIMStringVector &permissionGroupIDList, V2TIMValueCallback< V2TIMPermissionGroupInfoResultVector > *callback)=0
 
virtual void AddCommunityMembersToPermissionGroup (const V2TIMString &groupID, const V2TIMString &permissionGroupID, const V2TIMStringVector &memberList, V2TIMValueCallback< V2TIMPermissionGroupMemberOperationResultVector > *callback)=0
 
virtual void RemoveCommunityMembersFromPermissionGroup (const V2TIMString &groupID, const V2TIMString &permissionGroupID, const V2TIMStringVector &memberList, V2TIMValueCallback< V2TIMPermissionGroupMemberOperationResultVector > *callback)=0
 
virtual void GetCommunityMemberListInPermissionGroup (const V2TIMString &groupID, const V2TIMString &permissionGroupID, const V2TIMString &nextCursor, V2TIMValueCallback< V2TIMPermissionGroupMemberInfoResult > *callback)=0
 
virtual void AddTopicPermissionToPermissionGroup (const V2TIMString &groupID, const V2TIMString &permissionGroupID, const V2TIMStringToUint64Map &topicPermissionMap, V2TIMValueCallback< V2TIMTopicOperationResultVector > *callback)=0
 
virtual void DeleteTopicPermissionFromPermissionGroup (const V2TIMString &groupID, const V2TIMString &permissionGroupID, const V2TIMStringVector &topicIDList, V2TIMValueCallback< V2TIMTopicOperationResultVector > *callback)=0
 
virtual void ModifyTopicPermissionInPermissionGroup (const V2TIMString &groupID, const V2TIMString &permissionGroupID, const V2TIMStringToUint64Map &topicPermissionMap, V2TIMValueCallback< V2TIMTopicOperationResultVector > *callback)=0
 
virtual void GetTopicPermissionInPermissionGroup (const V2TIMString &groupID, const V2TIMString &permissionGroupID, const V2TIMStringVector &topicIDList, V2TIMValueCallback< V2TIMTopicPermissionResultVector > *callback)=0
 

Constructor & Destructor Documentation

◆ ~V2TIMCommunityManager()

virtual ~V2TIMCommunityManager ( )
inlinevirtual

Member Function Documentation

◆ AddCommunityListener()

virtual void AddCommunityListener ( V2TIMCommunityListener listener)
pure virtual

1.1 Add the community listener

◆ RemoveCommunityListener()

virtual void RemoveCommunityListener ( V2TIMCommunityListener listener)
pure virtual

1.2 Remove the community listener

◆ CreateCommunity()

virtual void CreateCommunity ( const V2TIMGroupInfo info,
const V2TIMCreateGroupMemberInfoVector memberList,
V2TIMValueCallback< V2TIMString > *  callback 
)
pure virtual

2.1 Create a community that supports topics

◆ GetJoinedCommunityList()

virtual void GetJoinedCommunityList ( V2TIMValueCallback< V2TIMGroupInfoVector > *  callback)
pure virtual

2.2 Get the list of Community-groups that the current user has joined

◆ CreateTopicInCommunity()

virtual void CreateTopicInCommunity ( const V2TIMString groupID,
const V2TIMTopicInfo topicInfo,
V2TIMValueCallback< V2TIMString > *  callback 
)
pure virtual

2.3 Create topic

Parameters
groupIDThe community ID must start with @TGS_.

◆ DeleteTopicFromCommunity()

virtual void DeleteTopicFromCommunity ( const V2TIMString groupID,
const V2TIMStringVector topicIDList,
V2TIMValueCallback< V2TIMTopicOperationResultVector > *  callback 
)
pure virtual

2.4 Delete topic

◆ SetTopicInfo()

virtual void SetTopicInfo ( const V2TIMTopicInfo topicInfo,
V2TIMCallback callback 
)
pure virtual

2.5 Modify topic information

◆ GetTopicInfoList()

virtual void GetTopicInfoList ( const V2TIMString groupID,
const V2TIMStringVector topicIDList,
V2TIMValueCallback< V2TIMTopicInfoResultVector > *  callback 
)
pure virtual

2.6 Get topic list

Attention
: When the topicIDList is empty,it means to get the list of all topics in this Community.

◆ CreatePermissionGroupInCommunity()

virtual void CreatePermissionGroupInCommunity ( const V2TIMPermissionGroupInfo info,
V2TIMValueCallback< V2TIMString > *  callback 
)
pure virtual

3.1 Create community permission group(supported only in 7.8 and later versions)

Attention
  • You need to buy Premium Edition to use this feature.

◆ DeletePermissionGroupFromCommunity()

virtual void DeletePermissionGroupFromCommunity ( const V2TIMString groupID,
const V2TIMStringVector permissionGroupIDList,
V2TIMValueCallback< V2TIMPermissionGroupOperationResultVector > *  callback 
)
pure virtual

3.2 Delete community permission group(supported only in 7.8 and later versions)

Attention
  • You need to buy Premium Edition to use this feature.

◆ ModifyPermissionGroupInfoInCommunity()

virtual void ModifyPermissionGroupInfoInCommunity ( const V2TIMPermissionGroupInfo info,
V2TIMCallback callback 
)
pure virtual

3.3 Modify community permission group(supported only in 7.8 and later versions)

Attention
  • You need to buy Premium Edition to use this feature.

◆ GetJoinedPermissionGroupListInCommunity()

virtual void GetJoinedPermissionGroupListInCommunity ( const V2TIMString groupID,
V2TIMValueCallback< V2TIMPermissionGroupInfoResultVector > *  callback 
)
pure virtual

3.4 Get joined community permission group list(supported only in 7.8 and later versions)

Attention
  • You need to buy Premium Edition to use this feature.

◆ GetPermissionGroupListInCommunity()

virtual void GetPermissionGroupListInCommunity ( const V2TIMString groupID,
const V2TIMStringVector permissionGroupIDList,
V2TIMValueCallback< V2TIMPermissionGroupInfoResultVector > *  callback 
)
pure virtual

3.5 Get community permission group list(supported only in 7.8 and later versions)

Attention
  • You need to buy Premium Edition to use this feature.
  • When permissionGroupIDList is empty, get all the permission groups; when it is not empty, get the specified permission groups.

◆ AddCommunityMembersToPermissionGroup()

virtual void AddCommunityMembersToPermissionGroup ( const V2TIMString groupID,
const V2TIMString permissionGroupID,
const V2TIMStringVector memberList,
V2TIMValueCallback< V2TIMPermissionGroupMemberOperationResultVector > *  callback 
)
pure virtual

3.6 Add members to community permission group(supported only in 7.8 and later versions)

Attention
  • You need to buy Premium Edition to use this feature.

◆ RemoveCommunityMembersFromPermissionGroup()

virtual void RemoveCommunityMembersFromPermissionGroup ( const V2TIMString groupID,
const V2TIMString permissionGroupID,
const V2TIMStringVector memberList,
V2TIMValueCallback< V2TIMPermissionGroupMemberOperationResultVector > *  callback 
)
pure virtual

3.7 Remove members from community permission group(supported only in 7.8 and later versions)

Attention
  • You need to buy Premium Edition to use this feature.

◆ GetCommunityMemberListInPermissionGroup()

virtual void GetCommunityMemberListInPermissionGroup ( const V2TIMString groupID,
const V2TIMString permissionGroupID,
const V2TIMString nextCursor,
V2TIMValueCallback< V2TIMPermissionGroupMemberInfoResult > *  callback 
)
pure virtual

3.8 Get community permission group member list(supported only in 7.8 and later versions)

Attention
  • You need to buy Premium Edition to use this feature.

◆ AddTopicPermissionToPermissionGroup()

virtual void AddTopicPermissionToPermissionGroup ( const V2TIMString groupID,
const V2TIMString permissionGroupID,
const V2TIMStringToUint64Map topicPermissionMap,
V2TIMValueCallback< V2TIMTopicOperationResultVector > *  callback 
)
pure virtual

3.9 Add topic permissions to the permission group(supported only in 7.8 and later versions)

Attention
  • You need to buy Premium Edition to use this feature.

◆ DeleteTopicPermissionFromPermissionGroup()

virtual void DeleteTopicPermissionFromPermissionGroup ( const V2TIMString groupID,
const V2TIMString permissionGroupID,
const V2TIMStringVector topicIDList,
V2TIMValueCallback< V2TIMTopicOperationResultVector > *  callback 
)
pure virtual

3.10 Delete topic permissions from the permission group(supported only in 7.8 and later versions)

Attention
  • You need to buy Premium Edition to use this feature.

◆ ModifyTopicPermissionInPermissionGroup()

virtual void ModifyTopicPermissionInPermissionGroup ( const V2TIMString groupID,
const V2TIMString permissionGroupID,
const V2TIMStringToUint64Map topicPermissionMap,
V2TIMValueCallback< V2TIMTopicOperationResultVector > *  callback 
)
pure virtual

3.11 Modify the topic permissions in the permission group(supported only in 7.8 and later versions)

Attention
  • You need to buy Premium Edition to use this feature.

◆ GetTopicPermissionInPermissionGroup()

virtual void GetTopicPermissionInPermissionGroup ( const V2TIMString groupID,
const V2TIMString permissionGroupID,
const V2TIMStringVector topicIDList,
V2TIMValueCallback< V2TIMTopicPermissionResultVector > *  callback 
)
pure virtual

3.12 Get the topic permissions in the permission group(supported only in 7.8 and later versions)

Attention
  • You need to buy Premium Edition to use this feature.