build.gradle
.AndroidManifest.xml
.UIKitSettings
.CometChatUIKit.login()
.MessagesActivity
(or ConversationActivity
) and an optional GroupDetailsActivity
in your flow.Component / Class | Role |
---|---|
FloatingActionButton | Triggers the group-management options dialog. |
GroupMembersRequest | Fetches current group members. |
UsersRequest | Fetches all app users for the “Add Member” list. |
CometChat.createGroup(...) | Creates a new public or private group. |
CometChat.joinGroup(...) | Joins an existing group by GUID. |
CometChat.addMembersToGroup(...) | Adds selected users to the group. |
CometChat.banGroupMember(...) | Bans a member from the group. |
CometChat.updateGroupMemberScope(...) | Changes a member’s role (scope). |
CometChat.transferGroupOwnership(...) | Delegates group ownership to another member. |
activity_messages.xml
MessagesActivity.java
GroupDetailsActivity.java
GroupDetailsActivity.java
GroupDetailsActivity.java
GroupDetailsActivity.java
Step | Action |
---|---|
1 | User taps FAB → showGroupActionsDialog() |
2 | Select operation (e.g., View Members) |
3 | Fetch data via GroupMembersRequest |
4 | Call Core SDK method for chosen operation |
5 | Show success or error feedback |
fetchNext()
in scroll listeners for large groups.Feature | SDK Method | Selection Source |
---|---|---|
Create Group | CometChat.createGroup() | Dialog input |
Join Group | CometChat.joinGroup() | Dialog input |
View Members | GroupMembersRequest.fetchNext() | Group members list |
Add Member | CometChat.addMembersToGroup() | App users list |
Ban Member | CometChat.banGroupMember() | Group members list |
Change Member Scope | CometChat.updateGroupMemberScope() | Group members list |
Transfer Ownership | CometChat.transferGroupOwnership() | Group members list |