Chat SDK for Unity and Windows v1.3.0
Public Member Functions | List of all members
AgoraChat.GroupManager Class Reference
Inheritance diagram for AgoraChat.GroupManager:

Public Member Functions

void applyJoinToGroup (string groupId, string reason="", CallBack callback=null)
 
void AcceptGroupInvitation (string groupId, ValueCallBack< Group > callback=null)
 
void AcceptGroupJoinApplication (string groupId, string userId, CallBack callback=null)
 
void AddGroupAdmin (string groupId, string memberId, CallBack callback=null)
 
void AddGroupMembers (string groupId, List< string > newmembers, CallBack callback=null)
 
void AddGroupAllowList (string groupId, List< string > members, CallBack callback=null)
 
void BlockGroup (string groupId, CallBack callback=null)
 
void BlockGroupMembers (string groupId, List< string > members, CallBack callback=null)
 
void ChangeGroupDescription (string groupId, string desc, CallBack callback=null)
 
void ChangeGroupName (string groupId, string name, CallBack callback=null)
 
void ChangeGroupOwner (string groupId, string newOwner, CallBack callback=null)
 
void CheckIfInGroupAllowList (string groupId, ValueCallBack< bool > callback=null)
 
void CreateGroup (string groupName, GroupOptions options, string desc=null, List< string > inviteMembers=null, string inviteReason=null, ValueCallBack< Group > callback=null)
 
void DeclineGroupInvitation (string groupId, string reason=null, CallBack callback=null)
 
void DeclineGroupJoinApplication (string groupId, string userId, string reason=null, CallBack callback=null)
 
void DestroyGroup (string groupId, CallBack callback=null)
 
void DownloadGroupSharedFile (string groupId, string fileId, string savePath, CallBack callback=null)
 
void GetGroupAnnouncementFromServer (string groupId, ValueCallBack< string > callback=null)
 
void GetGroupBlockListFromServer (string groupId, int pageNum=1, int pageSize=200, ValueCallBack< List< string > > callback=null)
 
void GetGroupFileListFromServer (string groupId, int pageNum=1, int pageSize=200, ValueCallBack< List< GroupSharedFile > > callback=null)
 
void GetGroupMemberListFromServer (string groupId, int pageSize=200, string cursor="", ValueCallBack< CursorResult< string > > callback=null)
 
void GetGroupMuteListFromServer (string groupId, int pageNum=1, int pageSize=200, ValueCallBack< Dictionary< string, long > > callback=null)
 
void GetGroupSpecificationFromServer (string groupId, ValueCallBack< Group > callback=null)
 
void GetGroupAllowListFromServer (string groupId, ValueCallBack< List< string > > callback=null)
 
Group GetGroupWithId (string groupId)
 
List< GroupGetJoinedGroups ()
 
void FetchJoinedGroupsFromServer (int pageNum=0, int pageSize=20, bool needAffiliations=false, bool needRole=false, ValueCallBack< List< Group > > callback=null)
 
void FetchJoinedGroupsFromServer (int pageNum=0, int pageSize=20, ValueCallBack< List< Group > > callback=null)
 
void FetchPublicGroupsFromServer (int pageSize=200, string cursor="", ValueCallBack< CursorResult< GroupInfo > > callback=null)
 
void JoinPublicGroup (string groupId, CallBack callback=null)
 
void LeaveGroup (string groupId, CallBack callback=null)
 
void MuteGroupAllMembers (string groupId, CallBack callback=null)
 
void MuteGroupMembers (string groupId, List< string > members, long muteMilliseconds=-1, CallBack callback=null)
 
void RemoveGroupAdmin (string groupId, string memberId, CallBack callback=null)
 
void DeleteGroupSharedFile (string groupId, string fileId, CallBack callback=null)
 
void DeleteGroupMembers (string groupId, List< string > members, CallBack callback=null)
 
void RemoveGroupAllowList (string groupId, List< string > members, CallBack callback=null)
 
void UnBlockGroup (string groupId, CallBack callback=null)
 
void UnBlockGroupMembers (string groupId, List< string > members, CallBack callback=null)
 
void UnMuteGroupAllMembers (string groupId, CallBack callback=null)
 
void UnMuteGroupMembers (string groupId, List< string > members, CallBack callback=null)
 
void UpdateGroupAnnouncement (string groupId, string announcement, CallBack callback=null)
 
void UpdateGroupExt (string groupId, string ext, CallBack callback=null)
 
void UploadGroupSharedFile (string groupId, string filePath, CallBack callback=null)
 
void SetMemberAttributes (string groupId, string userId, Dictionary< string, string > attrs, CallBack callback=null)
 
void FetchMemberAttributes (string groupId, List< string > userIds, List< string > attrs, ValueCallBack< Dictionary< string, Dictionary< string, string > > > callback=null)
 
void FetchMyGroupsCount (ValueCallBack< int > callback=null)
 
void AddGroupManagerDelegate (IGroupManagerDelegate groupManagerDelegate)
 
void RemoveGroupManagerDelegate (IGroupManagerDelegate groupManagerDelegate)
 

Detailed Description

The abstract class for the group manager.

Member Function Documentation

◆ applyJoinToGroup()

void AgoraChat.GroupManager.applyJoinToGroup ( string  groupId,
string  reason = "",
CallBack  callback = null 
)

Requests to join a group.

This is an asynchronous method.

Parameters
groupIdThe group ID.
reasonThe reason for requesting to join the group.
callbackThe callback of application. See CallBack.

◆ AcceptGroupInvitation()

void AgoraChat.GroupManager.AcceptGroupInvitation ( string  groupId,
ValueCallBack< Group callback = null 
)

Accepts a group invitation.

This is an asynchronous method.

Parameters
groupIdThe group ID.
callbackThe callback of acceptance. Returns the group instance which the user has accepted the invitation to join. See ValueCallBack.

◆ AcceptGroupJoinApplication()

void AgoraChat.GroupManager.AcceptGroupJoinApplication ( string  groupId,
string  userId,
CallBack  callback = null 
)

Approves a group request.

Only the group owner or admin can call this method.

This is an asynchronous method.

Parameters
groupIdThe group ID.
userIdThe ID of the user who sends the request to join the group.
callbackThe callback of approval. See CallBack.

◆ AddGroupAdmin()

void AgoraChat.GroupManager.AddGroupAdmin ( string  groupId,
string  memberId,
CallBack  callback = null 
)

Adds a group admin. Only the group owner, not the group admin, can call this method.

This is an asynchronous method.

Parameters
groupIdThe group ID.
memberIdThe new admin ID.
callbackThe callback of addition. See CallBack.

◆ AddGroupMembers()

void AgoraChat.GroupManager.AddGroupMembers ( string  groupId,
List< string >  newmembers,
CallBack  callback = null 
)

Adds users to the group.

Only the group owner or admin can call this method.

This is an asynchronous method.

Parameters
groupIdThe group ID.
newmembersThe list of new members to add.
callbackThe operation callback. See CallBack.

◆ AddGroupAllowList()

void AgoraChat.GroupManager.AddGroupAllowList ( string  groupId,
List< string >  members,
CallBack  callback = null 
)

Adds members to the allow list.

Only the group owner or admin can call this method.

This is an asynchronous method.

Parameters
groupIdThe group ID.
membersThe members to be added to the allow list.
callbackThe operation callback. See CallBack.

◆ BlockGroup()

void AgoraChat.GroupManager.BlockGroup ( string  groupId,
CallBack  callback = null 
)

Blocks group messages.

The user that blocks group messages is still a group member. They just cannot receive group messages.

This is an asynchronous method.

Parameters
groupIdThe group ID.
callbackThe operation callback. See CallBack.

◆ BlockGroupMembers()

void AgoraChat.GroupManager.BlockGroupMembers ( string  groupId,
List< string >  members,
CallBack  callback = null 
)

Adds the user to the group block list.

After this method call succeeds, the user is first removed from the chat group, and then added to the group block list. Users on the chat group block list cannot send or receive group messages, nor can they re-join the chat group.

Only the group owner or admin can call this method.

This is an asynchronous method.

Parameters
groupIdThe group ID.
membersThe users to be added to the block list.
callbackThe operation callback. See CallBack.

◆ ChangeGroupDescription()

void AgoraChat.GroupManager.ChangeGroupDescription ( string  groupId,
string  desc,
CallBack  callback = null 
)

Changes the group description.

Only the group owner or admin can call this method.

This is an asynchronous method.

Parameters
groupIdThe group ID.
descThe new group description.
callbackThe operation callback. See CallBack.

◆ ChangeGroupName()

void AgoraChat.GroupManager.ChangeGroupName ( string  groupId,
string  name,
CallBack  callback = null 
)

Changes the group name.

Only the group owner or admin can call this method.

This is an asynchronous method.

Parameters
groupIdThe ID of group whose name is to be changed.
nameThe new group name.
callbackThe operation callback. See CallBack.

◆ ChangeGroupOwner()

void AgoraChat.GroupManager.ChangeGroupOwner ( string  groupId,
string  newOwner,
CallBack  callback = null 
)

Transfers the group ownership.

Only the group owner can call this method.

This is an asynchronous method.

Parameters
groupIdThe group ID.
newOwnerThe user ID of the new owner.
callbackThe operation callback. See CallBack.

◆ CheckIfInGroupAllowList()

void AgoraChat.GroupManager.CheckIfInGroupAllowList ( string  groupId,
ValueCallBack< bool >  callback = null 
)

Gets whether the current user is on the allow list of the group.

This is an asynchronous method.

Parameters
groupIdThe group ID.
callbackThe operation callback. See CallBack.

◆ CreateGroup()

void AgoraChat.GroupManager.CreateGroup ( string  groupName,
GroupOptions  options,
string  desc = null,
List< string >  inviteMembers = null,
string  inviteReason = null,
ValueCallBack< Group callback = null 
)

Creates a group instance.

After the group is created, the data in the memory and database will be updated and multiple devices will receive the notification event and update the group to the memory and database.

You can set IMultiDeviceDelegate to listen for the event.

If an event occurs, the callback function onGroupMultiDevicesEvent((MultiDevicesOperation, string, List<string>) will be triggered.

This is an asynchronous method.

Parameters
groupNameThe group name. It is optional. Pass null if you do not want to set this parameter.
optionsThe options for creating a group. They are optional and cannot be null. See GroupOptions. The options are as follows:
  • The maximum number of members allowed in the group. The default value is 200.
  • The group style. See GroupStyle.
  • Whether to ask for permission when inviting a user to join the group. The default value is false, indicating that invitees are automaticall added to the group without their permission.
  • The extension of group details.
descThe group description. It is optional. Pass null if you do not want to set this parameter.
inviteMembersThe group member array. The group owner ID is optional. This parameter cannot be null.
inviteReasonThe group joining invitation. It is optional. Pass null if you do not want to set this parameter.
callbackThe operation callback. See CallBack.

◆ DeclineGroupInvitation()

void AgoraChat.GroupManager.DeclineGroupInvitation ( string  groupId,
string  reason = null,
CallBack  callback = null 
)

Declines a group invitation.

This is an asynchronous method.

Parameters
groupIdThe group ID.
reasonThe reason for declining the group invitation.
callbackThe operation callback. See CallBack.

◆ DeclineGroupJoinApplication()

void AgoraChat.GroupManager.DeclineGroupJoinApplication ( string  groupId,
string  userId,
string  reason = null,
CallBack  callback = null 
)

Declines a group request.

Only the group owner or admin can call this method.

This is an asynchronous method.

Parameters
groupIdThe group ID.
userIdThe ID of the user who sends the request to join the group.
reasonThe reason for declining the group request.
callbackThe operation callback. See CallBack.

◆ DestroyGroup()

void AgoraChat.GroupManager.DestroyGroup ( string  groupId,
CallBack  callback = null 
)

Destroys the group instance.

Only the group owner can call this method.

This is an asynchronous method.

Parameters
groupIdThe group ID.
callbackThe operation callback. See CallBack.

◆ DownloadGroupSharedFile()

void AgoraChat.GroupManager.DownloadGroupSharedFile ( string  groupId,
string  fileId,
string  savePath,
CallBack  callback = null 
)

Downloads the shared file of the group.

This is an asynchronous method.

Parameters
groupIdThe group ID.
fileIdThe ID of the shared file.
savePathThe path to save the downloaded file.
callbackThe operation callback. See CallBack.

◆ GetGroupAnnouncementFromServer()

void AgoraChat.GroupManager.GetGroupAnnouncementFromServer ( string  groupId,
ValueCallBack< string >  callback = null 
)

Gets the group announcement from the server.

Group members can call this method.

This is an asynchronous method.

Parameters
groupIdThe group ID.
callbackThe operation callback. See ValueCallBack.

◆ GetGroupBlockListFromServer()

void AgoraChat.GroupManager.GetGroupBlockListFromServer ( string  groupId,
int  pageNum = 1,
int  pageSize = 200,
ValueCallBack< List< string > >  callback = null 
)

Gets the group block list from the server with pagination.

Only the group owner or admin can call this method.

This is an asynchronous method.

Parameters
groupIdThe group ID.
pageNumThe page number, starting from 1.
pageSizeThe number of members on the block list that you expect to get on each page.
callbackThe operation callback. If success, the obtained block list will be returned; otherwise, an error will be returned. See ValueCallBack.

◆ GetGroupFileListFromServer()

void AgoraChat.GroupManager.GetGroupFileListFromServer ( string  groupId,
int  pageNum = 1,
int  pageSize = 200,
ValueCallBack< List< GroupSharedFile > >  callback = null 
)

Gets the shared files of the group from the server.

For a large but unknown quantity of data, the server will return data with pagination as specified by pageSize and pageNum.

This is an asynchronous method.

Parameters
groupIdThe group ID.
pageNumThe page number, starting from 1. For the last page, the actual number of returned shared files is less than the value of pageSize.
pageSizeThe number of shared files that you expect to get on each page.
callbackThe operation callback. If success, the SDK returns the list of shared files; otherwise, an error will be returned. See ValueCallBack.

◆ GetGroupMemberListFromServer()

void AgoraChat.GroupManager.GetGroupMemberListFromServer ( string  groupId,
int  pageSize = 200,
string  cursor = "",
ValueCallBack< CursorResult< string > >  callback = null 
)

Gets the group member list from the server.

This is an asynchronous method.

Parameters
groupIdThe group ID.
pageSizeThe number of members that you expect to get on each page.
cursorThe position from which to start getting data. At the first method call, if you set cursor as null, the SDK gets the data in the reverse chronological order of when users joined the group.
callbackThe operation callback. If success, the SDK returns the obtained group member list and the cursor for the next query; otherwise, an error will be returned. See ValueCallBack.

◆ GetGroupMuteListFromServer()

void AgoraChat.GroupManager.GetGroupMuteListFromServer ( string  groupId,
int  pageNum = 1,
int  pageSize = 200,
ValueCallBack< Dictionary< string, long > >  callback = null 
)

Gets the mute list of the group from the server.

Only the group owner or admin can call this method.

This is an asynchronous method.

Parameters
groupIdThe group ID.
pageNumThe page number, starting from 1.
pageSizeThe number of muted members that you expect to get on each page.
callbackThe operation callback. If success, the SDK returns the obtained mute list; otherwise, an error will be returned. See ValueCallBack.

◆ GetGroupSpecificationFromServer()

void AgoraChat.GroupManager.GetGroupSpecificationFromServer ( string  groupId,
ValueCallBack< Group callback = null 
)

Gets group details.

This is an asynchronous method.

Parameters
groupIdThe group ID.
callbackThe operation callback. If success, the SDK returns the group instance; otherwise, an error will be returned. See ValueCallBack.

◆ GetGroupAllowListFromServer()

void AgoraChat.GroupManager.GetGroupAllowListFromServer ( string  groupId,
ValueCallBack< List< string > >  callback = null 
)

Gets the allow list of the group from the server.

Only the group owner or admin can call this method.

This is an asynchronous method.

Parameters
groupIdThe group ID.
callbackThe operation callback. If success, the SDK returns the obtained allow list; otherwise, an error will be returned. See ValueCallBack.

◆ GetGroupWithId()

Group AgoraChat.GroupManager.GetGroupWithId ( string  groupId)

Gets the group instance from the memory by group ID.

Parameters
groupIdThe group ID.
Returns
The group instance. Returns null if the group does not exist.

◆ GetJoinedGroups()

List< Group > AgoraChat.GroupManager.GetJoinedGroups ( )

Gets the list of groups that the user has joined.

This method gets the groups from the local memory and database.

Returns
The group list.

◆ FetchJoinedGroupsFromServer() [1/2]

void AgoraChat.GroupManager.FetchJoinedGroupsFromServer ( int  pageNum = 0,
int  pageSize = 20,
bool  needAffiliations = false,
bool  needRole = false,
ValueCallBack< List< Group > >  callback = null 
)

Gets the list of groups with pagination.

This method gets a group list from the server, which does not contain member information.

This is an asynchronous method and blocks the current thread.

Parameters
pageNumThe page number, starting from 0.
pageSizeThe number of groups that you expect to get on each page. The value range is [1,20].
needAffiliationsGet member count or not.
needRoleGet role or current user in joined groups.
callbackThe operation callback. If success, the SDK returns the obtained group list; otherwise, an error will be returned. See ValueCallBack.

◆ FetchJoinedGroupsFromServer() [2/2]

void AgoraChat.GroupManager.FetchJoinedGroupsFromServer ( int  pageNum = 0,
int  pageSize = 20,
ValueCallBack< List< Group > >  callback = null 
)

Gets the list of groups with pagination.

This method gets a group list from the server, which does not contain member information.

This is an asynchronous method and blocks the current thread.

Parameters
pageNumThe page number, starting from 0.
pageSizeThe number of groups that you expect to get on each page. Default num is 20.
callbackThe operation callback. If success, the SDK returns the obtained group list; otherwise, an error will be returned. See ValueCallBack.

◆ FetchPublicGroupsFromServer()

void AgoraChat.GroupManager.FetchPublicGroupsFromServer ( int  pageSize = 200,
string  cursor = "",
ValueCallBack< CursorResult< GroupInfo > >  callback = null 
)

Gets public groups from the server with pagination.

This is an asynchronous method.

Parameters
pageSizeThe number of public groups that you expect to get on each page.
cursorThe position from which to start getting data. During the first call to this method, if null is passed to cursor, the SDK will get data in the reverse chronological order.
callbackThe operation callback. If success, the SDK returns the obtained public group list and the cursor used for the next query; otherwise, an error will be returned. See ValueCallBack.

◆ JoinPublicGroup()

void AgoraChat.GroupManager.JoinPublicGroup ( string  groupId,
CallBack  callback = null 
)

Joins a public group.

This is an asynchronous method.

Parameters
groupIdThe ID of the public group.
callbackThe operation callback. See CallBack.

◆ LeaveGroup()

void AgoraChat.GroupManager.LeaveGroup ( string  groupId,
CallBack  callback = null 
)

Leaves a group.

This is an asynchronous method.

Parameters
groupIdThe group ID.
callbackThe operation callback. See CallBack.

◆ MuteGroupAllMembers()

void AgoraChat.GroupManager.MuteGroupAllMembers ( string  groupId,
CallBack  callback = null 
)

Mutes all members in the group.

Only the group owner or admin can call this method.

This is an asynchronous method.

Parameters
groupIdThe group ID.
callbackThe operation callback. See CallBack.

◆ MuteGroupMembers()

void AgoraChat.GroupManager.MuteGroupMembers ( string  groupId,
List< string >  members,
long  muteMilliseconds = -1,
CallBack  callback = null 
)

Mutes the specified group members. Only the group owner or admin can call this method.

This is an asynchronous method.

Parameters
groupIdThe group ID.
membersThe list of members to be muted.
muteMillisecondsMuted time duration in millisecond, -1 stand for eternity.
callbackThe operation callback. See CallBack.

◆ RemoveGroupAdmin()

void AgoraChat.GroupManager.RemoveGroupAdmin ( string  groupId,
string  memberId,
CallBack  callback = null 
)

Removes a group admin. Only the group owner can call this method.

This is an asynchronous method.

Parameters
groupIdThe group ID.
memberIdThe ID of the admin to remove.
callbackThe operation callback. See CallBack.

◆ DeleteGroupSharedFile()

void AgoraChat.GroupManager.DeleteGroupSharedFile ( string  groupId,
string  fileId,
CallBack  callback = null 
)

Removes the shared file of the group.

Group members can only delete the shared files uploaded by themselves. The group owner and admins can delete all the shared files.

This is an asynchronous method.

Parameters
groupIdThe group ID.
fileIdThe ID of the shared file.
callbackThe operation callback. See CallBack.

◆ DeleteGroupMembers()

void AgoraChat.GroupManager.DeleteGroupMembers ( string  groupId,
List< string >  members,
CallBack  callback = null 
)

Removes members from the group.

Only the group owner or admin can call this method.

This is an asynchronous method.

Parameters
groupIdThe group ID.
membersThe members to remove.
callbackThe operation callback. See CallBack.

◆ RemoveGroupAllowList()

void AgoraChat.GroupManager.RemoveGroupAllowList ( string  groupId,
List< string >  members,
CallBack  callback = null 
)

Removes members from the group allow list.

Only the group owner or admin can call this method.

This is an asynchronous method.

Parameters
groupIdThe group ID.
membersThe list of members to be removed from the group allow list.
callbackThe operation callback. See CallBack.

◆ UnBlockGroup()

void AgoraChat.GroupManager.UnBlockGroup ( string  groupId,
CallBack  callback = null 
)

Unblocks group messages.

This is an asynchronous method.

Parameters
groupIdThe group ID
callbackThe operation callback. See CallBack.

◆ UnBlockGroupMembers()

void AgoraChat.GroupManager.UnBlockGroupMembers ( string  groupId,
List< string >  members,
CallBack  callback = null 
)

Removes users from the group block list.

Only the group owner or admin can call this method.

This is an asynchronous method.

Parameters
groupIdThe group ID.
membersThe list of users to be removed from the block list.
callbackThe operation callback. See CallBack.

◆ UnMuteGroupAllMembers()

void AgoraChat.GroupManager.UnMuteGroupAllMembers ( string  groupId,
CallBack  callback = null 
)

Unmutes all members in the group.

Only the group owner or admin can call this method.

This is an asynchronous method.

Parameters
groupIdThe group ID.
callbackThe operation callback. See CallBack.

◆ UnMuteGroupMembers()

void AgoraChat.GroupManager.UnMuteGroupMembers ( string  groupId,
List< string >  members,
CallBack  callback = null 
)

Unmutes the specified group members.

Only the group owner or admin can call this method.

This is an asynchronous method.

Parameters
groupIdThe group ID.
membersThe list of members to be unmuted.
callbackThe operation callback. See CallBack.

◆ UpdateGroupAnnouncement()

void AgoraChat.GroupManager.UpdateGroupAnnouncement ( string  groupId,
string  announcement,
CallBack  callback = null 
)

Updates the group announcement.

Only the group owner or admin can call this method.

This is an asynchronous method.

Parameters
groupIdThe group ID.
announcementThe group announcement.
callbackThe operation callback. See CallBack.

◆ UpdateGroupExt()

void AgoraChat.GroupManager.UpdateGroupExt ( string  groupId,
string  ext,
CallBack  callback = null 
)

Updates the group extension field.

Only the group owner or admin can call this method.

This is an asynchronous method.

Parameters
groupIdThe group ID.
extThe group extension field.
callbackThe operation callback. See CallBack.

◆ UploadGroupSharedFile()

void AgoraChat.GroupManager.UploadGroupSharedFile ( string  groupId,
string  filePath,
CallBack  callback = null 
)

Uploads the shared file to the group.

This is an asynchronous method.

Parameters
groupIdThe group ID.
filePathThe local path of the shared file.
callbackThe operation callback. See CallBack.

◆ SetMemberAttributes()

void AgoraChat.GroupManager.SetMemberAttributes ( string  groupId,
string  userId,
Dictionary< string, string >  attrs,
CallBack  callback = null 
)

Sets custom attributes of a group member.

This is an asynchronous method.

Parameters
groupIdThe group ID.
userIdThe user ID of the group member for whom the custom attributes are set.
callbackThe operation callback. See CallBack.

◆ FetchMemberAttributes()

void AgoraChat.GroupManager.FetchMemberAttributes ( string  groupId,
List< string >  userIds,
List< string >  attrs,
ValueCallBack< Dictionary< string, Dictionary< string, string > > >  callback = null 
)

Gets custom attributes of multiple group members by attribute key.

This is an asynchronous method.

Parameters
groupIdThe group ID.
userIdsThe array of user IDs of group members whose custom attributes are retrieved. You can pass in a maximum of 10 user IDs.
attrsThe array of keys of custom attributes to be retrieved. If this parameter is an empty array or not passed in, the SDK returns all custom attributes of these group members.
callbackThe operation callback. See ValueCallBack.

◆ FetchMyGroupsCount()

void AgoraChat.GroupManager.FetchMyGroupsCount ( ValueCallBack< int >  callback = null)

Gets the number of groups joined by the current user.

This is an asynchronous method.

Parameters
callbackThe operation callback. See ValueCallBack.

◆ AddGroupManagerDelegate()

void AgoraChat.GroupManager.AddGroupManagerDelegate ( IGroupManagerDelegate  groupManagerDelegate)

Adds a group manager listener.

Parameters
groupManagerDelegateThe group manager listener to add. It is inherited from IGroupManagerDelegate.

◆ RemoveGroupManagerDelegate()

void AgoraChat.GroupManager.RemoveGroupManagerDelegate ( IGroupManagerDelegate  groupManagerDelegate)

Removes a group manager listener.

Parameters
groupManagerDelegateThe group manager listener to remove. It is inherited from IGroupManagerDelegate.