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

abstract void addCommunityListener (V2TIMCommunityListener listener)
 
abstract void removeCommunityListener (V2TIMCommunityListener listener)
 
abstract void createCommunity (V2TIMGroupInfo info, List< V2TIMCreateGroupMemberInfo > memberList, V2TIMValueCallback< String > callback)
 
abstract void getJoinedCommunityList (V2TIMValueCallback< List< V2TIMGroupInfo >> callback)
 
abstract void createTopicInCommunity (String groupID, V2TIMTopicInfo topicInfo, V2TIMValueCallback< String > callback)
 
abstract void deleteTopicFromCommunity (String groupID, List< String > topicIDList, V2TIMValueCallback< List< V2TIMTopicOperationResult >> callback)
 
abstract void setTopicInfo (V2TIMTopicInfo topicInfo, V2TIMCallback callback)
 
abstract void getTopicInfoList (String groupID, List< String > topicIDList, V2TIMValueCallback< List< V2TIMTopicInfoResult >> callback)
 
abstract void createPermissionGroupInCommunity (V2TIMPermissionGroupInfo info, V2TIMValueCallback< String > callback)
 
abstract void deletePermissionGroupFromCommunity (String groupID, List< String > permissionGroupIDList, V2TIMValueCallback< List< V2TIMPermissionGroupOperationResult >> callback)
 
abstract void modifyPermissionGroupInfoInCommunity (V2TIMPermissionGroupInfo info, V2TIMCallback callback)
 
abstract void getJoinedPermissionGroupListInCommunity (String groupID, V2TIMValueCallback< List< V2TIMPermissionGroupInfoResult >> callback)
 
abstract void getPermissionGroupListInCommunity (String groupID, List< String > permissionGroupIDList, V2TIMValueCallback< List< V2TIMPermissionGroupInfoResult >> callback)
 
abstract void addCommunityMembersToPermissionGroup (String groupID, String permissionGroupID, List< String > memberList, V2TIMValueCallback< List< V2TIMPermissionGroupMemberOperationResult >> callback)
 
abstract void removeCommunityMembersFromPermissionGroup (String groupID, String permissionGroupID, List< String > memberList, V2TIMValueCallback< List< V2TIMPermissionGroupMemberOperationResult >> callback)
 
abstract void getCommunityMemberListInPermissionGroup (String groupID, String permissionGroupID, String nextCursor, V2TIMValueCallback< V2TIMPermissionGroupMemberInfoResult > callback)
 
abstract void addTopicPermissionToPermissionGroup (String groupID, String permissionGroupID, HashMap< String, Long > topicPermissionMap, V2TIMValueCallback< List< V2TIMTopicOperationResult >> callback)
 
abstract void deleteTopicPermissionFromPermissionGroup (String groupID, String permissionGroupID, List< String > topicIDList, V2TIMValueCallback< List< V2TIMTopicOperationResult >> callback)
 
abstract void modifyTopicPermissionInPermissionGroup (String groupID, String permissionGroupID, HashMap< String, Long > topicPermissionMap, V2TIMValueCallback< List< V2TIMTopicOperationResult >> callback)
 
abstract void getTopicPermissionInPermissionGroup (String groupID, String permissionGroupID, List< String > topicIDList, V2TIMValueCallback< List< V2TIMTopicPermissionResult >> callback)
 

Member Function Documentation

◆ addCommunityListener()

abstract void addCommunityListener ( V2TIMCommunityListener  listener)
abstract

1.1 Add the community listener

◆ removeCommunityListener()

abstract void removeCommunityListener ( V2TIMCommunityListener  listener)
abstract

1.2 Remove the community listener

◆ createCommunity()

abstract void createCommunity ( V2TIMGroupInfo  info,
List< V2TIMCreateGroupMemberInfo memberList,
V2TIMValueCallback< String >  callback 
)
abstract

2.1 Create a community that supports topics

◆ getJoinedCommunityList()

abstract void getJoinedCommunityList ( V2TIMValueCallback< List< V2TIMGroupInfo >>  callback)
abstract

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

◆ createTopicInCommunity()

abstract void createTopicInCommunity ( String  groupID,
V2TIMTopicInfo  topicInfo,
V2TIMValueCallback< String >  callback 
)
abstract

2.3 Create topic.

Parameters
groupIDThe community ID must start with @TGS_.

◆ deleteTopicFromCommunity()

abstract void deleteTopicFromCommunity ( String  groupID,
List< String >  topicIDList,
V2TIMValueCallback< List< V2TIMTopicOperationResult >>  callback 
)
abstract

2.4 Delete topic.

◆ setTopicInfo()

abstract void setTopicInfo ( V2TIMTopicInfo  topicInfo,
V2TIMCallback  callback 
)
abstract

2.5 Modify topic information.

◆ getTopicInfoList()

abstract void getTopicInfoList ( String  groupID,
List< String >  topicIDList,
V2TIMValueCallback< List< V2TIMTopicInfoResult >>  callback 
)
abstract

2.6 Get topic list.

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

◆ createPermissionGroupInCommunity()

abstract void createPermissionGroupInCommunity ( V2TIMPermissionGroupInfo  info,
V2TIMValueCallback< String >  callback 
)
abstract

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()

abstract void deletePermissionGroupFromCommunity ( String  groupID,
List< String >  permissionGroupIDList,
V2TIMValueCallback< List< V2TIMPermissionGroupOperationResult >>  callback 
)
abstract

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()

abstract void modifyPermissionGroupInfoInCommunity ( V2TIMPermissionGroupInfo  info,
V2TIMCallback  callback 
)
abstract

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()

abstract void getJoinedPermissionGroupListInCommunity ( String  groupID,
V2TIMValueCallback< List< V2TIMPermissionGroupInfoResult >>  callback 
)
abstract

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()

abstract void getPermissionGroupListInCommunity ( String  groupID,
List< String >  permissionGroupIDList,
V2TIMValueCallback< List< V2TIMPermissionGroupInfoResult >>  callback 
)
abstract

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()

abstract void addCommunityMembersToPermissionGroup ( String  groupID,
String  permissionGroupID,
List< String >  memberList,
V2TIMValueCallback< List< V2TIMPermissionGroupMemberOperationResult >>  callback 
)
abstract

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()

abstract void removeCommunityMembersFromPermissionGroup ( String  groupID,
String  permissionGroupID,
List< String >  memberList,
V2TIMValueCallback< List< V2TIMPermissionGroupMemberOperationResult >>  callback 
)
abstract

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()

abstract void getCommunityMemberListInPermissionGroup ( String  groupID,
String  permissionGroupID,
String  nextCursor,
V2TIMValueCallback< V2TIMPermissionGroupMemberInfoResult callback 
)
abstract

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()

abstract void addTopicPermissionToPermissionGroup ( String  groupID,
String  permissionGroupID,
HashMap< String, Long >  topicPermissionMap,
V2TIMValueCallback< List< V2TIMTopicOperationResult >>  callback 
)
abstract

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()

abstract void deleteTopicPermissionFromPermissionGroup ( String  groupID,
String  permissionGroupID,
List< String >  topicIDList,
V2TIMValueCallback< List< V2TIMTopicOperationResult >>  callback 
)
abstract

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()

abstract void modifyTopicPermissionInPermissionGroup ( String  groupID,
String  permissionGroupID,
HashMap< String, Long >  topicPermissionMap,
V2TIMValueCallback< List< V2TIMTopicOperationResult >>  callback 
)
abstract

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()

abstract void getTopicPermissionInPermissionGroup ( String  groupID,
String  permissionGroupID,
List< String >  topicIDList,
V2TIMValueCallback< List< V2TIMTopicPermissionResult >>  callback 
)
abstract

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.