Skip to main content
CometChatGroupMembers renders a scrollable list of members in a specific group with real-time updates, scope indicators (owner/admin/moderator/participant), search, and member management actions (kick, ban, change scope).

Where It Fits

CometChatGroupMembers is a list component that requires a Group object. It renders group members and supports actions like kick, ban, and scope change based on the logged-in user’s permissions.

Quick Start

Using Navigator:
Embedding as a widget:
Prerequisites: CometChat SDK initialized, a user logged in, and a valid Group object.

Filtering Members

Pass a GroupMembersRequestBuilder to control what loads:

Filter Recipes


Actions and Events

Callback Methods

onItemTap

Fires when a member row is tapped.

onItemLongPress

Fires when a member row is long-pressed. By default shows the member action menu (kick/ban/scope change).

onBack

Fires when the user presses the back button.

onSelection

Fires when members are selected/deselected in multi-select mode.

onError

Fires on internal errors.

onLoad

Fires when the list is successfully fetched.

onEmpty

Fires when the list is empty after loading.

Global Events

The component emits events via CometChatGroupEvents:

SDK Events (Real-Time, Automatic)


Functionality


Custom View Slots

Leading View

Title View

Subtitle View

Trailing View

List Item View

State Views



Advanced

BLoC Access

Provide a custom GroupMembersBloc:

Public BLoC Events

For ListBase override hooks (onItemAdded, onItemRemoved, onItemUpdated, onListCleared, onListReplaced), see BLoC & Data — ListBase Hooks.

Public BLoC Methods

Permission-Based Actions

Member actions (kick, ban, scope change) are permission-aware based on the logged-in user’s scope:

Style

Style Properties


Next Steps

Groups

Browse available groups

Group Chat Guide

Complete group chat implementation

Component Styling

Detailed styling reference

Conversations

Browse recent conversations